Answer the question
In order to leave comments, you need to log in
How to solve google maps api problem?
How to select streets from the list for a specific city? there were streets of a specific city in the list, and after selection, the street was written without the city and country.
Here is the code:
Answer the question
In order to leave comments, you need to log in
Add "Country, City, +query" to the script before sending a request to Google Maps. Thus, you get "Russia, Voronezh, + query";
Example: https://developers.google.com/maps/documentation/j...
In the example, the country data is taken from the select. In the same way, you can take them from a hidden input, for example, and not only the country but also the city for your case. Next, make a request to get the list.
Detailed information: https://developers.google.com/maps/documentation/j...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question