Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I need to add routing functionality in my application how to add the routing in openlayers.

share|improve this question

closed as unclear what you're asking by underdark May 7 at 9:10

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Do mean by your own database or using web routing API? –  Mapperz Nov 2 '12 at 13:21
Openlayers is just the 'canvas' - Datamodelling, processing has to be done elsewhere... –  Styp Nov 5 '12 at 14:48
Welcome to GIS SE :) Please do improve your accept rate by accepting answers to your previous questions. –  R.K. Nov 8 '12 at 3:17

2 Answers 2

There's an introduction to using pgRouting with OpenLayers here: http://pgrouting.org/docs/foss4g2007/index.html

For further information you may also wish to see this question and answer: http://stackoverflow.com/questions/6794996/openstreetmap-data-with-openlayers-vs-google-maps

share|improve this answer

You can use PostGis database with pgRouting library. Here is a nice tutorial for beginers on how to use pgRouting: http://underdark.wordpress.com/2011/02/07/a-beginners-guide-to-pgrouting/

Here you have some more detailed information on how pgRouting functions work, it might be helpfull: http://www.davidgis.fr/documentation/pgrouting-1.02/

share|improve this answer

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