×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    13

    Include timezone in places API response

    Are there any plans to include the timezone that a place is in with the Places API response (whether returned by default with all the other data or with a flag to tell the response to include it)?

    eg time_zone: "Europe/London"

    If not, can I suggest it as a future enhancement?

    Thanks

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: Include timezone in places API response

    Hi

    I think timezone can be calculated from a place geolocation rather straightforward with couple of code lines by checking the point coordinates in each time zone area in a loop -- no need to extend the API with extra field

  3. #3
    Registered User
    Join Date
    Dec 2011
    Posts
    13

    Re: Include timezone in places API response

    Great @izinin. Are you able to offer any code so I can get a better idea about how to do this?

    Thanks

  4. #4
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: Include timezone in places API response

    Hi

    here are steps:
    # obtain from nokia.places.objects.Place.location.position your place coordinates
    # examine the coordinates on timezone database that is stored locally on your host

    For more information how to create local timezone data base and traverse it check this post

    But i believe you can dramatically improve your search if your timezone database is a rectangle set and you will find not nearest point on the whole set as it is suggested in the article but a certain rectangle designates a timezone where your point of interest lies within. For simplicity you can take not rectangle set but a strip set -- such approach will work nice for Americas.

    Regards,
    izinin

Similar Threads

  1. Nokia Places API FAQ
    By Nokia Ron in forum [Archived] Places API
    Replies: 1
    Last Post: 2013-04-25, 13:06
  2. Nokia Places API for Qt
    By vladest in forum Qt
    Replies: 4
    Last Post: 2012-09-08, 01:34
  3. Nokia Places API
    By vladest in forum [Archived] Maps API for Javascript
    Replies: 22
    Last Post: 2012-02-15, 19:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×