Eva's new timezone feature
From now on you have a way of specifying the end user's timezone with respect to the Coordinated Universal Time (UTC).
The timezone is very helpful in understanding expressions such as “hotel tonight”.
The value is a string representing the offset from UTC in the following format “+/-HH:MM”.
HH represents the hour offset in the range -12 to 14
MM represents the minutes offset
Examples:
“time_zone=+08:00” means the UTC+8 timezone.
“time_zone=-05:30” means the UTC-5:30 timezone
The timezone input can affect the resulting Eva reply. Here is an example:
With Timezone
- {
- "Arrival": {
- "Date": "2013-05-02"
- },
- "Index": 10,
- "Actions": [
- "Get Accommodation"
- ]
- }
Without Timezone
http://freeapi.evature.com/v1.0?site_code=<your_site_code>&api_key=<your_api_key>&input_text=hotel%20tonight
For more details on how to use this feature please read http://www.evature.com/docs/request.html
- {
- "Arrival": {
- "Date": "2013-05-01"
- },
- "Index": 10,
- "Actions": [
- "Get Accommodation"
- ]
- }
For more details on how to use this feature please read http://www.evature.com/docs/request.html
No comments:
Post a Comment