I am trying to build an application that will display routes on a map
Hi there,
I am completely new to Ruby, and am trying to understand a way of building an application to display routes on a map, using this API: http://wiki.itsfactory.fi/index.php/Journeys_API.
I want to use a map such as Google maps/Open maps/Mapbox to display the routes, but not sure how to upload the information I get back from the API, what packages to use, etc.
Any help would be grand! Thankyou,
Luke
RestClient is pretty good for accessing an external API, although sometimes people have built an wrapper around the API to make it easier to work with. You might check rubygems.org to see if you can find an API wrapper gem.
Then once you get the information back from the API, you probably want to save it in your database.
And to render it in Open Street Maps or something similar, you'd use their Javascript APIs to load in the routes.
https://wiki.openstreetmap.org/wiki/Routing