Wednesday, May 1, 2013


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

  1.  {
  2.         "Arrival": {
  3.           "Date": "2013-05-02"
  4.         },
  5.         "Index": 10,
  6.         "Actions": [
  7.           "Get Accommodation"
  8.         ]
  9.       }

Without Timezone
http://freeapi.evature.com/v1.0?site_code=<your_site_code>&api_key=<your_api_key>&input_text=hotel%20tonight

  1.  {
  2.         "Arrival": {
  3.           "Date": "2013-05-01"
  4.         },
  5.         "Index": 10,
  6.         "Actions": [
  7.           "Get Accommodation"
  8.         ]
  9.       }


For more details on how to use this feature please read http://www.evature.com/docs/request.html

No comments:

Post a Comment