How to get country codes of the selected map area (visible map region)?

43 Views Asked by At

I want to get the country codes from the visible map region. Visible map region may contain multiple countries so I want all those country codes.

I've tried with Geocoder and with grid points in the map and it returned me all the country codes but the problem with that it's too slow. Geocoder takes time to return result so I'm looking for the alternate way. Please help.

1

There are 1 best solutions below

0
Lakshitha Wijewardhana On

The Maps JavaScript API provides a Geocoder class for geocoding and reverse geocoding dynamically from user input. If instead you wish to geocode static, known addresses, see the Geocoding web service.