[OSRM-talk] All route requests report status: 207

Stephen Woodbridge woodbri at swoodbridge.com
Thu Nov 14 18:58:47 UTC 2013


Nevermind, it looks like my edges did not node correctly. Let me fix 
that first, then see if there are still issues with the mapped locations.

-Steve

On 11/14/2013 1:42 PM, Stephen Woodbridge wrote:
> Dennis,
>
> Looking into this problem a little deeper, I am getting strange results
> out of osrm-routed.
>
> The data I generated in the database has a spatial extents of
> min-lon: -77.0
> min-lat:  42.0
> max-lon: -74.0
> max-lat:  45.0
>
> In the following queries the mapped coordinated that are returned are
> outside the extents of my data. Is this normal?
>
> $ GET http://localhost:5000/locate?loc=43.49381,-75.496450899
> {"version":0.3,"status":0,"mapped_coordinate":[4.498566,-7.699290],"transactionId":
> "OSRM Routing Engine JSON Locate (v0.3)"}
>
> $ GET http://localhost:5000/nearest?loc=43.507694,-75.501223
> {"version":0.3,"status":0,"mapped_coordinate":[4.432989,-7.692944],"name":"N1858","transactionId":"OSRM
> Routing Engine JSON Nearest (v0.3)"}
>
> $ GET http://localhost:5000/nearest?loc=43.49381,-75.496450899
> {"version":0.3,"status":0,"mapped_coordinate":[4.432989,-7.692944],"name":"N1858","transactionId":"OSRM
> Routing Engine JSON Nearest (v0.3)"}
>
> $ GET http://localhost:5000/locate?loc=43.49381,-75.496450899
> {"version":0.3,"status":0,"mapped_coordinate":[4.498566,-7.699290],"transactionId":
> "OSRM Routing Engine JSON Locate (v0.3)"}
>
> And checking the extents of road N1858 I get that I would expect.
> select st_astext(st_extent(the_geom)) from st where name='N1858';
> "POLYGON((-75.7581084230915 43.3213778841309,
>            -75.7581084230915 43.4602779010311,
>            -74.5103461137041 43.4602779010311,
>            -74.5103461137041 43.3213778841309,
>            -75.7581084230915 43.3213778841309))"
>
> So, I'm guessing that I have broken something in the OSRM intermediate
> file or some of the zeroed out area following the UUIDs is important.
>
> Any thoughts and where or what to look for?
>
> Thanks,
>    -Steve
>
> On 11/14/2013 12:52 AM, Stephen Woodbridge wrote:
>> Dennis,
>>
>> I can't get osrm-routed to generate a route. I'm guessing I did
>> something wrong in the process of generating the graph or extracting it
>> into the intermediate file.
>>
>> All I get is status:207
>>
>> GET 'http://localhost:5000/viaroute?loc=42.5,-74.5&loc=44.0,-75.5'
>> {"version": 0.3,"status":207,"status_message": "Cannot find route
>> between points","route_geometry": "","route_instructions":
>> [],"route_summary":{"total_distance":0,"total_time":214748365,"start_point":"","end_point":""},"alternative_geometries":
>>
>> [],"alternative_instructions":[],"alternative_summaries":[],"route_name":["",""],"alternative_names":[["",""]],"via_points":[],"hint_data":
>>
>> {"checksum":66848108, "locations":
>> ["pssrALsDAAAAAAAA____fwAAAAAAAAAAXaRDAHCdiv8",
>> "pssrALsDAAAAAAAA____fwAAAAAAAAAAXaRDAHCdiv8"]},"transactionId": "OSRM
>> Routing Engine JSON Descriptor (v0.3)"}
>>
>> Since it is late here, I'll check things in the morning. I'll build a
>> mapserver mapfile to display the graph and a web app to allow us to
>> interact with the map and the router.
>>
>> Running osrm-prepare reported the following. Can you look this over and
>> see if anything looks off in it.
>>
>> Thanks,
>>    -Steve
>>
>> $ osrm-prepare st.osrm
>> [info] Input file: st.osrm
>> [info] Restrictions file: st.osrm.restrictions
>> [info] Profile: profile.lua
>> [info] Threads: 8
>> [info] Importing n = 3069975 nodes
>> [info]  and 3066984 edges
>> [info] Graph loaded ok and has 3066984 edges
>> [info] 0 restrictions, 0 bollard nodes, 0 traffic lights
>> [info] Generating edge-expanded graph representation
>> [info] Identifying components of the road network
>> . 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
>> [info] identified: 284018 many components
>> [info] generating edge-expanded nodes
>> . 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
>> [info] Generated 4632706 nodes in edge-expanded graph
>> [info] generating edge-expanded edges
>> . 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
>> [info] Generated 4632706 edge based nodes
>> [info] Node-based graph contains 4632706 edges
>> [info] Edge-expanded graph ...
>> [info]   contains 4631249 edges
>> [info]   skips 0 turns, defined by 0 restrictions
>> [info] writing node map ...
>> [info] building r-tree ...
>> [info] constructing r-tree of 4632706 elements
>> [info] finished r-tree construction in 10.2177 seconds
>> [info] using software based CRC32 computation
>> [info] CRC32: 66848108
>> [info] initializing contractor
>> merged 0 edges out of 9262498
>> contractor finished initalization
>> Contractor is using 1 threads
>> initializing elimination PQ ...ok
>> preprocessing 4632706 nodes .... 10% . 20% . 30% . 40% . 50% . 60% .
>> [flush 3081249 nodes]  70% . 80% . 90% . 100%
>>   100% [info] Contraction took 44.2668 sec
>> [info] Getting edges of minimized graph
>> . 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
>> [info] Building Node Array
>> [info] Serializing compacted graph of 9196634 edges
>> [info] Preprocessing : 134.197 seconds
>> [info] Expansion  : 90165.2 nodes/sec and 136063 edges/sec
>> [info] Contraction: 104654 nodes/sec and 207754 edges/sec
>> [info] finished preprocessing
>>
>> _______________________________________________
>> OSRM-talk mailing list
>> OSRM-talk at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
>
>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk




More information about the OSRM-talk mailing list