Interface Location

All Known Subinterfaces:
Coordinate, RoutingGeometry
All Known Implementing Classes:
AbstractCoordinate, AbstractGeometry, DefaultSourceAddress, DefaultSourceCoordinate, DefaultSourceGeometry, DefaultTargetCoordinate, PoiTargetCoordinate

public interface Location
Contains ID and Travel type for both Coordinates and Polygons
  • Method Details

    • getTravelTypes

      List<TravelType> getTravelTypes()
      Get the travel type(s) associated with the location. If there is more than one element in the travelTypes list, multi modal routing will be used.
    • setTravelTypes

      void setTravelTypes(List<TravelType> travelTypes)
      Set the travel type(s) to use when routing. If there is more than one element in the travelTypes list, multi modal routing will be used.
    • setTravelType

      void setTravelType(TravelType travelType)
      Set the travel type to use when routing.
      Parameters:
      travelType - Travel type to be associated with the coordinate.
    • getId

      String getId()
      Get the ID associated with the coordinate.
      Returns:
      Coordinate ID
    • setId

      void setId(String id)
      Assign an ID to the coordinate
      Parameters:
      id - ID to be assigned
    • getProperties

      LocationProperties getProperties()
      Get the properties of a location
      Returns:
      Location Properties
    • setProperties

      void setProperties(LocationProperties locationProperties)
      Assign properties to a location
      Parameters:
      locationProperties - location properties to be assigned