google-elevation-api

create elevation chart from markers and a HUB

こ雲淡風輕ζ 提交于 2019-12-13 04:26:30
问题 This Javascript plots a HUB marker with a ployline from the HUB to all surrounding markers. I would like to plot an elevation chart from the HUB to the marker a user clicks. Without the elevation portion the script runs, with the elevation portion nothing display, not the map and not the elevation chart. <html> <head> <title>HUB</title> <script src="https://maps.googleapis.com/maps/api/js"></script> </head> <body> <center> <div id="map" style="width: 900px; height: 600px;"></div> <script type

Inaccurate Google Maps Elevation Service response when splitting a too large path

一个人想着一个人 提交于 2019-12-01 03:52:46
This is a bit of a question with some level of detail to it, so let me first explain the situation, then my implementation and last the question so you understand best. As of April 4 an update is added and the issues are narrowed down to one pending issue, see the bottom of this question for the up to date info. TLDR; I have a long route returned from Google Maps Directions API and want an Elevation chart for that route. Too bad it doesn't work because it's requested via GET and the URL maximum length is 2.048 chars which get exceeded. I splitted the requests; guaranteed the correct processing

Inaccurate Google Maps Elevation Service response when splitting a too large path

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 00:38:01
问题 This is a bit of a question with some level of detail to it, so let me first explain the situation, then my implementation and last the question so you understand best. As of April 4 an update is added and the issues are narrowed down to one pending issue, see the bottom of this question for the up to date info. TLDR; I have a long route returned from Google Maps Directions API and want an Elevation chart for that route. Too bad it doesn't work because it's requested via GET and the URL