MrMufflon / Leaflet.Elevation

Leaflet plugin to view height profile of GeoJSON- and GPX polylines using d3
http://mrmufflon.github.io/Leaflet.Elevation
MIT License
277 stars 83 forks source link

How did you solve the elevation proxy problem? #38

Open nemesifier opened 9 years ago

nemesifier commented 9 years ago

Hi,

this is a wonderful leaflet plugin.

We are using it in nodeshot but we needed to develop a proxy to the Google Elevation API in order to be able to display elevation profiles on request (the Google Elevation API does not include a CORS header, so it can only be used through a proxy).

After a while we decided it would be useful to separate the geojson elevation proxy to the Google Elevation API in a standalone project so we just released python-geojson-elevation, which is just at version 0.1 but we plan to improve it and add a few easy to use wrappers for popular python web frameworks like django and flask.

We are curious to know how other people solved the same problem.

MrMufflon commented 9 years ago

Hi, thank you. I really like the integration in your application! I don't know about other solutions than either proxying the service or utilize CORS. This plugin was developed with static, locally available data in mind, so using a n elevation service is the next level...

nemesifier commented 9 years ago

Hi @MrMufflon,

glad you like the idea. The library python-geojson-elevation is still pretty basic, but we are planning to improve it and add more features.

These are the features we'd like to have:

Since our tool it's specifically designed to work with Leaflet.Elevation, it could be useful to inform somehow the users of this library to know about the existence of python-geojson-elevation, so they might want to join forces to improve a common tool.

What do you think?

Federico

MrMufflon commented 9 years ago

Sounds great. What do you have in mind? A link on the readme?

nemesifier commented 9 years ago

Yes that would be great! We could add a section at the end of the README that explains the possibility of getting the elevation data from a web service and link the library. :+1: