Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to build a website which needs to perform the following tasks:

  1. Display a web map with topographical details
  2. On the map show a set of selected streets
  3. When a street is selected show a set of points of interest on that street

The constraints are:

  1. Ruby on Rails as a programming language
  2. Everything in the stack must be open source

    I've given an interested look at OpenStreetMap will it work for the needed tasks?


Actually there is a product using Google Earth in this company but they want to change it due to its commercial cost.

share|improve this question
Where does Google Earth come into play? – Mapperz Sep 4 '11 at 17:06
Depends on the region; Depends on what you mean with topographical details – johanvdw Sep 4 '11 at 18:31
Openstreetmap doesn't have any satellite imagery if that's what you are after. – underdark Sep 4 '11 at 19:14
@underdark Although there are the MapQuest Open Aerial tiles at ; they have better coverage in the US than most other places. – mattwigway Sep 5 '11 at 4:37
up vote 4 down vote accepted

If you don't need satellite imagery or 3D stuff it's possible with a combination of:

  • OSM data imported in Postgresql/Postgis (via osm2pgsql)
  • Mapnik used to render map tiles
  • OpenLayers used to display the web map (serving tiles rendered by Mapnik)
  • some Javascript middleware (ExtJS) to facilitate retrieving data as required by vector layers and build UI components
  • some server side component (Ruby on Rails based if required) that queries the Postgis/Postgresql database for features (i.e. geometry of selected streets, nearby POIs).

We have an application built on top of the above at that shows mountain hiking trails from OpenStreetMap (server side is Java based).

Note: You can do some 3D stuff by integrating altitude profiles (NASA srtm) with the OpenStreetMap data.

share|improve this answer

Your first requirement is that you should be able to

Display a web map with topographical details

This won't be that easy with open street maps. With google maps, the 'terrain' view is good enough to show basic topographical details.

With Open street maps, you'll have to have your own server which serves topographical data.

share|improve this answer
Yes, you do need your own tile server, but it's not that difficult to set that up. Here's what I did as an experiment:… . Using OSM data + SRTM for hillshading and contours. – Igor Brejc Sep 6 '11 at 4:31
@Igor Brejc: Very nicely done. Can you share some information on how exactly you got the SRTM to show as contours + the hill-shading in this way? – Devdatta Tengshe Sep 6 '11 at 15:36
I took some time today to write a tutorial on making hiking maps with Maperitive:… – Igor Brejc Sep 7 '11 at 17:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.