<div dir="ltr">Yes, preprocess if it's not done in gosmore. Inside Gosmore it would be "on the fly".<br><br><div class="gmail_quote">On Fri, Sep 12, 2008 at 12:44 PM, Lambertus <span dir="ltr"><<a href="mailto:osm@na1400.info">osm@na1400.info</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;">This sounds like a lot of work, adding all those extra tags to the (already existing) data in the OSM database. Or do you propose to preprocess the planet data to add those tags with some script just before a Gosmore database rebuild?<br>
<br>
Simplifying this would be to preprocess the planet file to add maxspeed=1 (or something like that) to any road that is not in a cycle relation before sending it to Gosmore. But this and my previous solution work for YOURS only because it doesn't need the Gosmore UI and can easilly use multiple instances to provide task specific routing. Your solution could be a good long-term solution where both the Gosmore routing and UI would properly handle this specific routing scenario.<br>
<br>
<br>
Nic Roets wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
The best solution is to<br>
1. create new way types e.g. in addition to 'highway=residential' etc, to also have cyclenet=residential etc.<br>
2. Create entries for these in elemstyles. The rendering variables would be identical, but they will differ substantially in the <route bicycle="..."> field.<br>
3. Write software to map highway keys to cyclenet keys where appropriate, e.g. when rcn is set or the way is part of an appropriate relation. I have ideas how to do this in gosmore, but haven't found the inspiration yet.<br>
<br>
This way gosmore will route over non cyclenet ways but will prefer cyclenets.<br>
<br>
Regards,<br>
Nic<br>
<br></div><div><div></div><div class="Wj3C7c">
On Fri, Sep 12, 2008 at 11:47 AM, Lambertus <<a href="mailto:osm@na1400.info" target="_blank">osm@na1400.info</a> <mailto:<a href="mailto:osm@na1400.info" target="_blank">osm@na1400.info</a>>> wrote:<br>
<br>
After some more though, there is a 'solution' for this. I'm not<br>
sure it<br>
will produce the best results in every case, but it's worth a try.<br>
Consider this:<br>
<br>
House -> cycleways -> cycle routes -> cycleways -> Work<br>
<br>
The cycleroute instance of Gosmore given the House and Work<br>
coordinates<br>
will produce a route using cycle routes from coordinates nearest<br>
to the<br>
House and Work coordinates. We'll name these to and from coordinates<br>
House_cn and Work_cn hereafter.<br>
<br>
Then the route is calculated from House to House_cn and Work_cn to<br>
Work<br>
using the normal Gosmore instance. These three routes combined<br>
will give<br>
you a route from House to Work using cycleroutes as much and fast<br>
(closest) to your House and Work as possible. The only adjustment to<br>
Gosmore would be to persuade it to find the nearest way from a given<br>
coordinate even for large distances instead of the few dozen meters it<br>
allows now.<br>
<br>
Would this suit your expectations?<br>
<br>
Shaun McDonald wrote:<br>
> Lambertus wrote:<br>
>> Please note that the routing database is *only* filled with cycle<br>
>> routes that are mapped using *relations*. So there is no routing<br>
>> using cycle routes rendered on the Cycle map layer mapped with tags<br>
>> like 'ncn_ref' only...<br>
>><br>
>> Unfortunately you can't see the difference on the cycle map,<br>
but when<br>
>> the website reports: 'Unable to calculate a route' then you can be<br>
>> pretty sure this is because of the above.<br>
>><br>
><br>
> This explains why I can't route from my house to work, where at each<br>
> end there is no local cycle route, and there are several small<br>
bits in<br>
> the middle where you cannot route over. This is either due to me not<br>
> having bothered to split the way, or as you say, there is a break in<br>
> the relation.<br>
><br>
> It would be really cool if you could have an edit permalink so that<br>
> you can edit the data on the openstreetmap web site.<br>
><br>
> Would it be possible for you to have a different marker for the<br>
start<br>
> and end?<br>
><br>
> Finally I was initially expecting a routing system that would prefer<br>
> cycle routes, however this makes an excellent data<br>
validation/testing<br>
> tool.<br>
><br>
> Shaun<br>
<br>
<br>
_______________________________________________<br>
talk mailing list<br></div></div>
<a href="mailto:talk@openstreetmap.org" target="_blank">talk@openstreetmap.org</a> <mailto:<a href="mailto:talk@openstreetmap.org" target="_blank">talk@openstreetmap.org</a>><div class="Ih2E3d"><br>
<a href="http://lists.openstreetmap.org/listinfo/talk" target="_blank">http://lists.openstreetmap.org/listinfo/talk</a><br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div>