On 2010-09-06 13:06, usha madhuri wrote:

Hi all,
How is routing done with openlayers. Please give me the basics of routing in
openlayers.

Basically: You need a routing calculation setup using pgrouting, or another dedicated routing engine with a web frontend. The frontend feeds the route requests to the routing engine, parses the results and sends the result back to OL using KML, geoJSON or whatever other suitable format as a linestring. OL then shows the route result as a line on the map.

So OL doesn't "do routing", it's "just" a framework that shows a map where you can draw features on.

Yournavigation.org uses Gosmore as it's routing engine, a simple PHP page as web frontend and displays routes using OL and an OpenStreetMap background. Source code is in OSM SVN: http://svn.openstreetmap.org/applications/routing/yours/trunk/www/

Note: the web frontend is found in "api/dev/gosmore.php"
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to