Skip to main content

I am trying to build an application that will display routes on a map

Ruby • Asked by Luke Bennett

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


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.