Mike,<br>OpenLayers lets you produce vector drawings on top of raster images, so you could store your routes as lat/lon points on your own server, and overlay them on top of OSM tiles using OpenLayers.<br><br>Is that the sort of thing you are thinking of?<br>
<br>Graham.<br><br><div class="gmail_quote">On 10 March 2010 22:35, Mike Warren <span dir="ltr"><<a href="mailto:spam@mike-warren.com">spam@mike-warren.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello Everyone,<br>
<br>
I have looked into some aspects of OSM, mostly the rendering and some<br>
of the routing code, and I am looking for some guidance before I go<br>
further.<br>
<br>
Background: cycling routes as provided by the City in Calgary suck, so<br>
I would like to provide cyclists here with the opportunity to design<br>
our own (including suggestions for infrastructure). This would be a<br>
two-part thing: providing users the ability to suggest routes<br>
(e.g. draw an overlay on the map, following roads and paths) and<br>
render the "current" route-map like the "cycle map" does. Ultimately,<br>
I would see tagging this information into OSM data itself, but I'm<br>
guessing the in-flux data wouldn't be appropriate...? (i.e. lots of<br>
"potential" routes proposed by users)<br>
<br>
<br>
It doesn't seem that there's a solution to draw an overlay while<br>
following roads + paths, although there does seem to be good routing<br>
code. So I would see one thing that needs to be done is to hook<br>
openlayers together with a routing server to draw routes something<br>
like how google-maps does it in "My Maps" (i.e. click a few points and<br>
the shortest route between them appears as an overlay). Have I missed<br>
something and there's already code for this?<br>
<br>
The other piece would be my own tile-server covering Calgary and<br>
serving bikemap-like rendered tiles with the currently-best routes on<br>
them. I am currently trying to see how best to make this happen, and<br>
since the "cycle map" mapnik files aren't available is the<br>
mapnik-based rendering the way to go, or would osmarender (or<br>
something else?) be better? Spreadnik, maybe? Ultimately, print-ready<br>
output would also be generated.<br>
<br>
I would be thinking along the lines of having my own (up-to-date) copy<br>
of the OSM data on a local DB which also contains the information for<br>
users' routes. Is this going to be a nightmare to sync? Should I keep<br>
users' routes separately? (Bear in mind, ultimately I would see adding<br>
"lcn_ref" sorts of tags "upstream" into OSM as this matured).<br>
<br>
There's also the issue of the underlying OSM data: sometimes users<br>
will find problems with OSM, and of course it would be best to have<br>
any such edits go live to OSM.<br>
<br>
<br>
Am I totally off-base here? Or can I just put tags directly into the<br>
OSM servers (and hence just have a local renderer if I want to change<br>
the look)?<br>
<br>
<br>
Thanks for any thoughts,<br>
<font color="#888888"><br>
--<br>
mike warren<br>
<a href="mailto:mike@mike-warren.com">mike@mike-warren.com</a> + <a href="http://www.mike-warren.com" target="_blank">http://www.mike-warren.com</a><br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Dr. Graham Jones<br>Hartlepool, UK<br>email: <a href="mailto:grahamjones139@gmail.com">grahamjones139@gmail.com</a><br>