3
I’m with a route system that captures user data and maps routes on the map:
geocoder.geocode({
'address': endereco + ', Brasil',
'region': 'BR'
}, function (results, status) {}
The problem is that it is returning addresses from all over Brazil and in some cases even outside it.
How to configure the script to search only in a specific city? Ex: Search only locations that are within Belo Horizonte.
I also did not know these properties, I deleted even my comment ;) Excellent!
– Paulo Rodrigues
I get it. And where do I get the code for this administrative property? For example, I want it to be Uberlândia...
– Hitch Leonardo
It’s not code, it’s just the abbreviation of the city name, you can write the full name:
'administrativeArea':'Uberlândia'
@Hitchleonardo– Lucio Rubens