Why set up a server?
To proxy connections to avoid CORS issues and handle processing while the app's iframe is closed. For background on CORS, see: this link
First clone the example which uses the tornado webserver to query the Google Maps API, available here.
The example uses tornado to send a request to Google Map's API to return the geocoded output of a street address, in the format used by the national postal service of the country concerned. Documentation on the specific outputs and queries for this API is available here
The headers found in the example allow for cross-origin requests to be made from the DroneDeploy plugin to the webserver in the example repository.
Create an account on Heroku, download the Heroku CLI, and run
This will allow you to setup the command line client for Heroku access.
Now use heroku to create your new app server. For the purposes of this tutorial, we will use the example web server (sample-app-server).
heroku create --ssh-git sample-app-servergit clone firstname.lastname@example.org:sample-app-server
For local testing using the example available on git, run
API_KEY=your_google_maps_api_key python nado.py
For testing on Heroku, run:
heroku config:set API_KEY=your_google_maps_api_key