Gordon,

Check out the JSON Formatter in OpenLayers as a starting point: 
http://dev.openlayers.org/docs/files/OpenLayers/Format/JSON-js.html. It takes 
in your JSON (that contains coordinates for each segment of the journey and 
coordinates for every turn I presume) and then you can plot it using any of the 
various renderers, depending on the browsers capabilities (VML, SVG, Canvas). 
Taking this approach, the route appears as an overlay on your map and are only 
merged in the client.

Regards,

Edward


> Date: Fri, 25 Nov 2011 00:09:53 -0800
> From: [email protected]
> To: [email protected]
> Subject: [Geoserver-users] Routing web service-geoserver
> 
> Hi, 
> I'm new to openlayers-geoserver-postgresql
> May i know how do i draw my route on openlayers as i have got a routing web
> server online which sends back a json request?
> -Gordon
> 
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/Routing-web-service-geoserver-tp7030334p7030334.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure 
> contains a definitive record of customers, application performance, 
> security threats, fraudulent activity, and more. Splunk takes this 
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
                                          
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to