python-scripts/scripts/GeoCode API
2022-10-09 23:58:15 +05:30
..
code.py Added Geocoode API program 2022-10-09 23:58:15 +05:30
config.ini Added Geocoode API program 2022-10-09 23:58:15 +05:30
index.html Added Geocoode API program 2022-10-09 23:58:15 +05:30
README.md Added Geocoode API program 2022-10-09 23:58:15 +05:30
requirements.txt Added Geocoode API program 2022-10-09 23:58:15 +05:30
where.js Added Geocoode API program 2022-10-09 23:58:15 +05:30
where.txt Added Geocoode API program 2022-10-09 23:58:15 +05:30

Google Maps API

This code will take the name of places from where.txt and then use forward Geocode API to get the coordinates of that location, then the coordinates are stored in javascript file and the webpage is opened automatically, to show the pin locations on map.

Prerequisites

To install configparser pip install configparser or check here
If you have Google Geocode API, so use that, otherwise you can use Open Cage API (its free, 2500 requests/day).

How to run the script

Enter the API key and service URL in config file (without qoutes) and the places to be marked in where.txt file, then run the script.