I built a simple website that displays the altitude profile for four different example routes. But you can already get the altitude profile for any route in Australia through an XML-RPC request to:
http://bak.sprovoost.nl:8000/
And then call one of the following two functions:
altitude_profile(route) : returns an xml document
altitude_profile_gchart(route) : returns a Google Chart like the one on the left.
The route argument has to look like this:
<route> <point id="1" lat="61.8083953857422" lon="10.8497076034546" /> <point id="2" lat="61.9000000000000" lon="10.8600000000000" /> <point id="3" lat="61.9000000000000" lon="10.8800000000000" /> </route>
Please be nice to my home computer and if you find any security issues, please tell me.
So what shall I focus on next?
There’s the actual profile:
I hope that with these changes the profiles will look a bit more smooth.
There’s performance:
Security:
Looks:
Code:
Last but not least, how can this tool best be integrated with other websites? One scenario that I have in mind would be a third party website that uses both the OpenRouteService and my altitude profile application. A user would enter origin and destination. Then the website sends this origin and destination to OpenRouteService (through xml_rpc?), which sends the route back, both as a map figure and as an xml document. Next the website sends this route to the Altitude Profile service (through xml_rpc), which then returns the Google Chart (or an XML document). The website then displays the map and Google Chart for the user to enjoy.
There’s many ways to go from here and although I have plenty of time left for the project, I probably can’t do everything. So what would you like to see next?
Update: More information about my project can be found here.