shukerullah / react-geocode

A React module to transform a description of a location (i.e. street address, town name, etc.) into geographic coordinates (i.e. latitude and longitude) and vice versa.
MIT License
207 stars 35 forks source link

How to set India as region? #40

Closed sumit151199 closed 3 years ago

sumit151199 commented 3 years ago

How to set India region ? using these but didn't work Geocode.setRegion("ind"); Geocode.setRegion("IND"); Geocode.setRegion("INDIA");

ziyaddin commented 3 years ago

Take a look at this docs: https://developers.google.com/maps/documentation/javascript/geocoding#GeocodingRequests

region — The region code, specified as a IANA language region subtag. In most cases, these tags map directly to familiar ccTLD ("top-level domain") two-character values. The region parameter will only influence, not fully restrict, results from the geocoder. See more information about region code biasing below.

IANA subtag for India is "IN". Refer to this document: http://www.iana.org/assignments/language-subtag-registry

ziyaddin commented 3 years ago

@sumit151199 have you solved the issue?