A simple program using Google Maps API to search & get the lat, long of location.
- Google Maps API
- Markers
- Info Window
- Autocomplete
- You will need to add the
key.json
file injs
folder key.json
will contain following code
var mapsKey = {
"key": "YOUR_GOOGLE_MAP_KEY"
};
- Open the Web browser to
index.html
As Google not allow to use the API keys with referer restrictions for Google geocode API, in preview link (https://bhaskarmac.github.io/addresstolatlong/) the searched location cannot be set in map.
On click of map lat, long should be displayed.Display info message after coping the coords to clipboard.On enter press search results should be displayed.(API Limitation in live demo)