anoved / gpxtruder

Make 3D-printable elevation models of GPX tracks.
http://gpxtruder.xyz/
MIT License
71 stars 23 forks source link

Support MapQuest/OSM as alternative to Google basemap #8

Closed anoved closed 10 years ago

anoved commented 10 years ago

http://open.mapquestapi.com/staticmap/ appears roughly compatible with the Google Static Maps API.

The Google basemap URL for the SouthMtn test file is: https://maps.googleapis.com/maps/api/staticmap?center=42.079896,-75.924359&zoom=14&size=640x320&maptype=terrain&scale=2&format=jpg

An equivalent image from MQ: http://open.mapquestapi.com/staticmap/v4/getmap?key=YOUR_KEY_HERE&center=42.079896,-75.924359&zoom=14&size=640,320&type=hyb&imagetype=jpeg

Nice thing about MQ imagery is it includes a scale bar.

The high resolutino scale parameter is not supported, but the size limit is higher, at 3840. You can specify a double-res size and bump up zoom to the next level for equivalent results:

http://open.mapquestapi.com/staticmap/v4/getmap?key=YOUR_KEY_HERE&center=42.079896,-75.924359&zoom=15&size=1280,640&type=hyb&imagetype=jpeg

anoved commented 10 years ago

Alright, the alternate MapQuest URL & API key are there now in the mapquest branch, but I am leaving Google Static Maps as the source for now. Reasons are fairly subjective. I prefer the more pronounced terrain shading and slightly crisper looking labels.