Hello,
In general what I do is getting my own osm.pbf edited map, merge that with official from geofabrik and upload back to graphhopper. I use osmosis merge method. Unfortunatelly After reading result file, my boundary box visible in graphhopper is wrong set and is somewhere on Athlantic Ocean (around 0,0 point).
What I did is check how graphhoppers logs looks like when reading geofabrik and my merge files. What I found was around 50 WARN logs:
[shortest_foot_node] WARN com.graphhopper.storage.CHGraphImpl - Setting weights smaller than 0.001 is not allowed in CHGraphImpl#setWeight. You passed: 0.0 for the edge -1 nodeA 0.25275871722605936,0.0972544796151179 nodeB 0.25275871722605936,0.0972544796151179
and also the same for [shortest_car_node]
:
[shortest_car_node] WARN com.graphhopper.storage.CHGraphImpl - Setting weights smaller than 0.001 is not allowed in CHGraphImpl#setWeight. You passed: 0.0 for the edge -1 nodeA 0.2527585309615403,0.09725429335059882 nodeB 0.2527585309615403,0.09725429335059882
I’ve checked into source code but It’s not very easy for me and couldn’t exactly find out what is a problem. Only one I expect that it prints out coordinates of some point A and point B. I tried to find those longitude or latitude values in postgres db in table nodes
, but I didn’t find any nodes with that values.
I also exported .osm.pbf
file into .osm
and used grep
method on this file with one of coordinate value, but no results was given.
Can you give me any clue if setWeight
method is connected with any speed tag/allowed weight on specific road etc.?
Any suggestions will be appreciated.