Package com.graphhopper.routing.lm
Class LandmarkSuggestion
java.lang.Object
com.graphhopper.routing.lm.LandmarkSuggestion
This class collects landmarks from an external source for one subnetwork to avoid the expensive and sometimes
suboptimal automatic landmark finding process.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBox()
static LandmarkSuggestion
readLandmarks
(String file, LocationIndex locationIndex) The expected format is lon,lat per line where lines starting with characters will be ignored.
-
Constructor Details
-
LandmarkSuggestion
-
-
Method Details
-
getNodeIds
-
getBox
-
readLandmarks
public static LandmarkSuggestion readLandmarks(String file, LocationIndex locationIndex) throws IOException The expected format is lon,lat per line where lines starting with characters will be ignored. You can create such a file manually via geojson.io -> Save as CSV. Optionally add a second line with#BBOX:minLat,minLon,maxLat,maxLon
to specify an explicit bounding box. TODO: support GeoJSON instead.
- Throws:
IOException
-