marlove / react-native-geocoding

MIT License
205 stars 54 forks source link

Is there a way to set the region where the geocoding is going to seach? #21

Open JooLuiz opened 4 years ago

JooLuiz commented 4 years ago

Hi, I'm developing an app and I'm using this library to search coordinates by address. in this section of the google documentation they say that if there are two address with the same name the region is the way to get an specific one. you can see the documentation here: https://developers.google.com/maps/documentation/geocoding/intro?hl=pt#RegionCodes

is there a way to set the region? is setting the language equals to set the region?

Thanks for the library, it's really cool.

IjzerenHein commented 4 years ago

Might be useful for you, I've added support for the bounds parameter, making it possible to perform location context specific searches: https://github.com/marlove/react-native-geocoding/pull/28