Package com.targomo.client.api.geo
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 Summary
Modifier and TypeMethodDescriptiongetId()Get the ID associated with the coordinate.Get the properties of a locationGet the travel type(s) associated with the location.voidAssign an ID to the coordinatevoidsetProperties(LocationProperties locationProperties) Assign properties to a locationvoidsetTravelType(TravelType travelType) Set the travel type to use when routing.voidsetTravelTypes(List<TravelType> travelTypes) Set the travel type(s) to use when routing.
-
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
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
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
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
Assign properties to a location- Parameters:
locationProperties- location properties to be assigned
-