[GraphHopper] Building Distance Matrix offline
Peter
graphhopper at gmx.de
Thu Nov 27 12:22:34 UTC 2014
This is a known issue and will be fixed soon:
https://github.com/graphhopper/graphhopper/issues/230
Regards,
Peter
On 27.11.2014 13:19, Giampaolo wrote:
> Hi Peter,
>
> thanks for your answer,I managed to build distance and time matrix :)
>
> I have a question about values returned from res.getMillis() : they
> are always lower than the values provided by google maps or bing.
>
> As example , a route of 3,7 Km in the center of Milan city is :
>
> 10 Min - GoogleMaps
> 8 Min - Bing
> About 4 Min - my time matrix
>
> these values are referred to routes without traffic.How can I make my
> values consistent with those?
>
>
>
> 2014-11-23 15:31 GMT+01:00 Peter <graphhopper at gmx.de
> <mailto:graphhopper at gmx.de>>:
>
> Hi Giampaolo,
>
> you need to get the route information like distance and time from
> the hopper.route() call like in this example:
> https://github.com/karussell/optaplanner-graphhopper-example/blob/master/src/main/java/com/graphhopper/optaplanner/Main.java#L59
>
> Regards,
> Peter
>
>
>
> On 23.11.2014 14:38, Giampaolo wrote:
>>
>> Hi all J,
>>
>> My name is Giampaolo, I’m currently trying to build a Distance
>> Matrix offline, based on Italy’region OSM Map, using GH
>>
>> As a first step I’ve run the main.java successfully ,my
>> sourcefile is lombardia.pbf (the region that contains Milan city)
>> , then I pass the GHPoint(45.4974413, 9.1865076) of a station
>> point placed inside the city, then I call hopper.route().
>> At the end of the process, it generates some files like edges,
>> names, nodes etc …
>>
>> Now , how can I read/open the files created? All the path from
>> the GHPoint to all other nodes of the map are placed inside these
>> files?
>>
>>
>> thanks a lot for your support!
>>
>> Giampaolo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20141127/30bb7c57/attachment.html>
More information about the GraphHopper
mailing list