- Create the file
static/api_key.json
with this content:
{
"api_key": "YOUR_API_KEY"
}
- Replace
YOUR_API_KEY
with your Google Maps API key (see Get API key if you don't have one). - Install required python packages via:
pip install -r requirements.txt
- Set
HANA_USER
andHANA_PWD
environment variables - Run
python server.py
- Open http://localhost:9001 in a browser.
In order to obtain an API key, follow the instructions below:
- visit https://console.cloud.google.com/google/maps-apis + login with your Google account
- Select a project or create a new one
- Click on APIs in the left column
- Click on Maps JavaScript API -> activate
- Click on credentials -> create credentials -> API key -> Restrict key -> Save