Class PlanningLocation


  • public class PlanningLocation
    extends Object
    • Constructor Detail

      • PlanningLocation

        PlanningLocation​(long id,
                         double latitude,
                         double longitude,
                         DistanceMap travelDistanceMap)
    • Method Detail

      • getId

        public long getId()
        ID of the corresponding domain location.
        Returns:
        domain location ID
      • distanceTo

        public long distanceTo​(PlanningLocation location)
        Distance to the given location.
        Parameters:
        location - other location
        Returns:
        distance to the other location
      • angleTo

        public double angleTo​(PlanningLocation location)
        Angle between the given location and the direction EAST with this location being the vertex.
        Parameters:
        location - location that forms one side of the angle (not null)
        Returns:
        angle in radians in the range of -π to π