I'm using the ThoroughfareName property of google maps api v2 which is very handy to get only the address part.
I didn't see any equivalent to this in api v3. Is there some best practices / recognized algorithm to build it back using address_components ?
So far what I have done is use the route type of address_components + the street_number. This is probably not the correct algorithm but it suits my needs.
Related
When using the Google Translate API, it just returns one translation for a given word. For example, when I let it translate the English word "hide" to Italian, it just responds with "nascondere".
However, Google Translate on the web offers much more: they don't just show one translation (or list of possible translations), but also the frequency as well as the precise meaning of a specific translation:
I'd like to get these results via an API.
Is there a public API that offers the same results?
Of course, I could just use the endpoint /translate_a/single that is used by the Google Translate website. But this endpoint does not include an API key, so if I send too many requests, they will most likely block me.
Also, the endpoint /translate_a/single returns many fields of which I do not know the precise meaning, so its usage would most likely involve some reverse engineering.
How do I use google translate api to do a 'literal' translation instead of a meaningful translation? I am using REST API call for translate provided by google cloud platform.
For e.g.
Text to be translated - 'गुलाब'
Result expected using API - 'gulab'
Currently it gives result as - 'rose'
Trying to mimic the 'what's here' feature of Google Maps in my own website but it seems that items of type 'natural_feature' are excluded from Google Maps 3 API geocoding and places searches, both nearby and radar, and also on text searches unless the EXACT name of the place is provided. This must have been an informed choice by Google to do this - anyone know the rationale, and better, offer a workaround? Seems crazy that I can't get the names of woods, nature reserves etc. any more...
Found out how to do it! If you get a geocoding API key from Google you can get all the data for natural features included in the JSON/XML response from a server request like the following (I was trying to get the data for "Gamsey Wood"):
https://maps.googleapis.com/maps/api/geocode/json?latlng=52.4180698,-0.2029999&result_type=natural_feature&key=YOUR_GOOGLE_GEO_KEY
Happy days!
I'm doing some research on route distance calculation APIs, and I came across this API from Ovi/Nokia: http://api.maps.ovi.com/devguide/getting_started.html#Services
Does anyone know if they have an equivalent REST API that can be used outside of a client browser scenario?
If not, what's the best option for route distance calculation APIs? I've looked into Google, Bing, and MapQuest, but I would like to be able to use it internally without a daily rate limit.
Thanks for your help.
There is the maps image API, if showing the routes as images are sufficient. This page has the complete list if Nokia Maps APIs.
I do not want to repeat what is done, so please refer to the Nokia API reference, but to be more accurate use distance method from nokia.maps.geo.Coordinate. The complete documentation is here
Click here!
I want to show timezones on the map I created using google maps api v3.
I want to show something like this --> http://24timezones.com/
If you don't mind using a deprecated API, you can use API v2 in combination with sample code that is easily found with a Google search.
Otherwise, I think you will need to find a data source that will give you the timezones in some format (perhaps KML?), and draw them on to the map perhaps using Polyline objects.