Address-to-latlong
A simple program using Google Maps API to search & get the lat, long of location.
Stuff used to make this
- Google Maps API
- Markers
- Info Window
- Autocomplete
Environment setup
- 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
Restrictions
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.
Preview
TODO
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)