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
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
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
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 [URL="http://stackoverflow.com/questions/5584602/determine-timezone-from-latitude-longitude-without-using-web-services-like-geona"]and traverse it check this post[/URL]
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