Ask A Question

Notifications

You’re not receiving notifications from this thread.

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

Luke Bennett asked in Ruby

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

Reply

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

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,329+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.