D
D
Dmitry Bay2016-01-28 08:01:20
JavaScript
Dmitry Bay, 2016-01-28 08:01:20

Hierarchy of answers google maps geocoder?

I can't figure out how the hierarchy of places works in the Google MAPS API?
https://developers.google.com/places/web-service/a...
I understand that each place has a place_id, but the following questions arise:
Given:
Multiple destinations, such as a city or exact address.
It is necessary to set such a search so that the exact place in the search is displayed or, if there are no places, then all places in the city.
Question 1) search in different languages.
For example, we have an address in Russian:
"Novosibirsk region, Novosibirsk, Red Avenue 24"
if we search in English, we get that we can find the address above only by place_id?
Question 2) hierarchy of places
For example, we have an address again
"Novosibirsk region, Novosibirsk, red avenue 24" But in the search
we entered
"Novosibirsk region, Novosibirsk, Lenina st.
Novosibirsk. How to do this?
It seems like, you can make a big crutch for the second question, and store information about the place in the database as:
[width, longitude, country, region, city, street, house]
This is supposed to work, although queries will be heavy and at the end of the application will die.
+ an incomprehensible thing with the search in different languages.
In general, direct on the true path, where to dig =)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question