简体   繁体   中英

Failed to calculate distances

We are running optaplanner in Greece with greece-latest.osm.pbf. In some cases when we add locations to the system, some coordinates are failing to calculate distances with the warning Failed to calculate distances for ${location}, it will be discarded . We noticed that this happens when we add locations which lead to a dead end street.

Do you have any idea of how we can solve this and actually don't discard these locations?

2 possible cases I can think of:

  • No connection : Consider an island which has no known ferries to it from the mainland. Now consider location A on that island and B on the mainland. What is the driving time from A to B?

  • No road nearby : If no known road is nearby location A, for example in the middle of an island with no roads, or in the middle of the Alpes.

Both cases relate to the quality of the osm maps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM