Class LandmarkSuggestion

java.lang.Object
com.graphhopper.routing.lm.LandmarkSuggestion

public class LandmarkSuggestion extends Object
This class collects landmarks from an external source for one subnetwork to avoid the expensive and sometimes suboptimal automatic landmark finding process.
  • Constructor Details

    • LandmarkSuggestion

      public LandmarkSuggestion(List<Integer> nodeIds, BBox box)
  • Method Details

    • getNodeIds

      public List<Integer> getNodeIds()
    • getBox

      public BBox 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