-
Notifications
You must be signed in to change notification settings - Fork 230
API Keys For Navigation and Elevation
The navigation system has a priority queue that it goes through to find the next best navigation strategy. If a strategy fails, it will be blacklisted for the next hour.
The navigation strategies we support now are:
- Google - Requires a key, limit of 2500 requests per day per IP address, human-like pathing
- Mapzen - Requires a key, no API limits, human-like pathing
- YOURS - No key required, human-like pathing
- Gpx - Walk between gpx waypoints, in a straight line.
- Default - Walk between waypoints, in a straight line.
- Teleport - Teleport between waypoints.
Google -> Mapzen -> Yours -> Default
Note: Gpx and Teleport do not have fallback strategies.
The elevation system has a priority queue that it goes through to find the next best elevation service. If a service fails, it will be blacklisted for the next hour.
The elevation services we support now are:
- Mapzen - Requires a key, no API limits. This is a different key than Mapzen Turn by Turn key.
- MapQuest - No key required, no API limits
- Google - Requires a key, limit of 2500 requests per day per IP address. This can be the same key as the Google Directions API key for navigation, but you need to enable Elevation API in Google API Console.
- Default - Random elevation value
Mapzen -> MapQuest -> Google -> Default
Note: Mapzen is prioritized because it has no API limits and is fast and reliable. MapQuest requires no key, but is known to return less reliable elevation values. Google has limits per day so it is third in priority.
First, get your Google API keys at:
https://developers.google.com/maps/documentation/directions/get-api-key?authuser=3
Then copy it to your config.json file
Second, enable the services at:
https://console.developers.google.com/apis
Enable key for both Google Maps Directions API and Google Maps Elevation API.
Remember!
You can use the same key for both services, but you need to enable for both first.
Get your Mapzen keys at:
https://mapzen.com/developers/
Get separate keys for Turn by Turn and Elevation
Pick one strategy that suits to you:
"GoogleWalkConfig": {
"UseGoogleWalk": true,
"DefaultStepLength": 1.3,
"GoogleHeuristic": "walking",
"GoogleAPIKey": "your-key-here",
"Cache": true,
"GoogleElevationAPIKey": "your-key-here"
},
"YoursWalkConfig": {
"UseYoursWalk": true,
"YoursWalkHeuristic": "bicycle"
},
"MapzenWalkConfig": {
"UseMapzenWalk": true,
"MapzenTurnByTurnApiKey": "your-key-here",
"MapzenWalkHeuristic": "bicycle",
"MapzenElevationApiKey": "your-key-here"
},
This Website and Project is in no way affiliated with, authorized, maintained, sponsored or endorsed by ANYONE. This is an independent and unofficial project for educational use ONLY. Do not use for any other purpose than education, testing and research.
This is not a public release, just a project with releases for code testers for education and research on any privacy issues for the end user.