Re: [OSRM-talk] Using custom data

2015-10-16 Thread Sander van Tulden
Hi Matthias, 

Perhaps a relevant Github issue about (simple) custom data with OSRM: 
https://github.com/Project-OSRM/osrm-backend/issues/1321

Best regards, 

 
Sander




Op 16-10-15 07:39 heeft Matthias Loeks  geschreven:

>Hi Frederik,
>
>thanks that's a good point indeed.
>
>I guess I did not mean "noding" in a strict sense which also creates nodes 
>at bridge intersections etc, but rather the "simple" noding that Daniel 
>described.
>
>However, probably there could also be nodes in OSM at the same coordinate 
>but on different floors which must not be handled as the same node.
>I will try to handle these cases correctly based on the topological 
>information from my input data.
>
>Still, the naive approach might be unstable and error-prone. It's just for 
>demonstrating a proof of concept though, so it should be fine for that.
>
>Thanks for pointing me to this issue and all the best,
>Matthias
>
>
>
>On 15 October 2015 20:15:28 Frederik Ramm  wrote:
>
>> Hi,
>>
>> On 10/15/2015 05:43 PM, Matthias Loeks wrote:
>>> I though OSRM, clever as it is, would do the noding itself and not just
>>> rely on the OSM data.
>>
>> That would be very un-clever of OSRM because in OSM the topology has a
>> meaning. In OSM, if two roads cross but don't have a common node, then
>> turning from one onto the other is not possible. Carelessly "noding"
>> such an intersection would break routing for OSM.
>>
>> Bye
>> Frederik
>>
>> --
>> Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"
>>
>> ___
>> OSRM-talk mailing list
>> OSRM-talk@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
>
>
>
>___
>OSRM-talk mailing list
>OSRM-talk@openstreetmap.org
>https://lists.openstreetmap.org/listinfo/osrm-talk
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Using custom data

2015-10-15 Thread Emil Tin
Are you sure segments are connected at the noded?

Sendt fra min HTC-telefon

- Reply message -
Fra: "Matthias Loeks" 
Til: "osrm-talk@openstreetmap.org" 
Emne: [OSRM-talk] Using custom data
Dato: tor, okt. 15, 2015 13:19

Hi list,

I'm running a little experiment with using custom geo data for OSRM.
Following the advice of [1], I converted my data to OSM XML format, for
now neglecting all kinds of tags/attributes etc. (this could be done later).
You can find the resulting OSM file here:
https://dl.dropboxusercontent.com/u/56544580/extract.osm
The file can be viewed correctly using JOSM.

I also created a very basic profile:
https://dl.dropboxusercontent.com/u/56544580/custom.lua
This profile should just contain the necessary variables read by
osrm-extract. It should not exclude any of the OSM nodes or ways, just
let them all pass through to the routing graph. Also, there should be no
turn restrictions.

The processing chain (extract, prepare) runs successfully and I can also
start the osrm-routed server.
The locate and nearest services are working fine. However, the viaroute
service returns only a valid route, if just one segment is involved. As
soon as there are junctions, no route can be calculated (code 207).

Can this be related to the turn restrictions? I had hoped they would be
entirely ignored if switched off in the profile.
Or am I missing something else important in my profile or data?
Are there maybe any OSM tags which are absolutely required by OSRM
directly, even if a fully customised profile is being used?

Any help or suggestions on this are greatly appreciated!

Many thanks and best regards,
Matthias

--
[1] -
https://lists.openstreetmap.org/pipermail/osrm-talk/2015-May/000844.html


___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Using custom data

2015-10-15 Thread Matthias Loeks

Hi Daniel,

many thanks for your answer!
Now I understand... Unfortunately, that makes things much more 
complicated :-(
I though OSRM, clever as it is, would do the noding itself and not just 
rely on the OSM data.


So I guess I have to build a topology or at least node my custom input 
data beforehand, in order to be able to create a noded OSM dataset.

Well, I'll try that... :-)

Thanks again,
Matthias

On 15.10.2015 17:34, Daniel Patterson wrote:

Hi Matthias,

  Emil is right, your ways are not connected.  The connection needs to 
happen like this:


  


  

  
   <- same node as in way 1

  

  It is not enough to just have nodes at the same lat/lon, you 
actually have to refer to the same  for ways to be joined.

  If you fix that in your file, you should be able to route on it.

daniel

On Oct 15, 2015, at 8:28 AM, Matthias Loeks > wrote:


Hi Emil,

thanks for your answer.
Well, they look correct in JOSM and I paid attention to add the nodes 
and then the node relations in the ways properly when assembling the 
OSM XML.


Does OSRM rely on any additional OSM nodes at the junctions? Doesn't 
it node the graph itself anyway?


Cheers,
Matthias

On 15.10.2015 14:20, Emil Tin wrote:

Are you sure segments are connected at the noded?

Sendt fra min HTC-telefon

- Reply message -
Fra: "Matthias Loeks"
Til:"osrm-talk@openstreetmap.org"
Emne: [OSRM-talk] Using custom data
Dato: tor, okt. 15, 2015 13:19

Hi list,

I'm running a little experiment with using custom geo data for OSRM.
Following the advice of [1], I converted my data to OSM XML format, for
now neglecting all kinds of tags/attributes etc. (this could be done 
later).

You can find the resulting OSM file here:
https://dl.dropboxusercontent.com/u/56544580/extract.osm
The file can be viewed correctly using JOSM.

I also created a very basic profile:
https://dl.dropboxusercontent.com/u/56544580/custom.lua
This profile should just contain the necessary variables read by
osrm-extract. It should not exclude any of the OSM nodes or ways, just
let them all pass through to the routing graph. Also, there should 
be no

turn restrictions.

The processing chain (extract, prepare) runs successfully and I can 
also

start the osrm-routed server.
The locate and nearest services are working fine. However, the viaroute
service returns only a valid route, if just one segment is involved. As
soon as there are junctions, no route can be calculated (code 207).

Can this be related to the turn restrictions? I had hoped they would be
entirely ignored if switched off in the profile.
Or am I missing something else important in my profile or data?
Are there maybe any OSM tags which are absolutely required by OSRM
directly, even if a fully customised profile is being used?

Any help or suggestions on this are greatly appreciated!

Many thanks and best regards,
Matthias

--
[1] -
https://lists.openstreetmap.org/pipermail/osrm-talk/2015-May/000844.html


___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org 
https://lists.openstreetmap.org/listinfo/osrm-talk




___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Using custom data

2015-10-15 Thread Matthias Loeks

Hi Frederik,

thanks that's a good point indeed.

I guess I did not mean "noding" in a strict sense which also creates nodes 
at bridge intersections etc, but rather the "simple" noding that Daniel 
described.


However, probably there could also be nodes in OSM at the same coordinate 
but on different floors which must not be handled as the same node.
I will try to handle these cases correctly based on the topological 
information from my input data.


Still, the naive approach might be unstable and error-prone. It's just for 
demonstrating a proof of concept though, so it should be fine for that.


Thanks for pointing me to this issue and all the best,
Matthias



On 15 October 2015 20:15:28 Frederik Ramm  wrote:


Hi,

On 10/15/2015 05:43 PM, Matthias Loeks wrote:

I though OSRM, clever as it is, would do the noding itself and not just
rely on the OSM data.


That would be very un-clever of OSRM because in OSM the topology has a
meaning. In OSM, if two roads cross but don't have a common node, then
turning from one onto the other is not possible. Carelessly "noding"
such an intersection would break routing for OSM.

Bye
Frederik

--
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk




___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Using custom data

2015-10-15 Thread Frederik Ramm
Hi,

On 10/15/2015 05:43 PM, Matthias Loeks wrote:
> I though OSRM, clever as it is, would do the noding itself and not just
> rely on the OSM data.

That would be very un-clever of OSRM because in OSM the topology has a
meaning. In OSM, if two roads cross but don't have a common node, then
turning from one onto the other is not possible. Carelessly "noding"
such an intersection would break routing for OSM.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09" E008°23'33"

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk