Package com.targomo.client.api.geo
Class DefaultSourceAddress
java.lang.Object
com.targomo.client.api.geo.AbstractLocation
com.targomo.client.api.geo.DefaultSourceAddress
- All Implemented Interfaces:
Location
AbstractClass for dealing with Source/Target H3 Addresses
-
Field Summary
Fields inherited from class com.targomo.client.api.geo.AbstractLocation
id, properties -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSourceAddress(String h3Address) DefaultSourceAddress(String h3Address, TravelType travelType) DefaultSourceAddress(String h3Address, TravelType travelType, LocationProperties locationProperties) DefaultSourceAddress(String h3Address, LocationProperties locationProperties) DefaultSourceAddress(String h3Address, List<TravelType> travelTypes, LocationProperties locationProperties) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidsetTravelType(TravelType travelType) Set the travel type to use when routing.toString()Returns a JSON String representation of the Coordinate with ID, x and y values.Methods inherited from class com.targomo.client.api.geo.AbstractLocation
getId, getProperties, setId, setPropertiesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.targomo.client.api.geo.Location
getId, getProperties, getTravelTypes, setId, setProperties, setTravelTypes
-
Constructor Details
-
DefaultSourceAddress
public DefaultSourceAddress() -
DefaultSourceAddress
public DefaultSourceAddress(String h3Address, List<TravelType> travelTypes, LocationProperties locationProperties) -
DefaultSourceAddress
public DefaultSourceAddress(String h3Address, TravelType travelType, LocationProperties locationProperties) -
DefaultSourceAddress
-
DefaultSourceAddress
-
DefaultSourceAddress
-
-
Method Details
-
setTravelType
Description copied from interface:LocationSet the travel type to use when routing.- Specified by:
setTravelTypein interfaceLocation- Parameters:
travelType- Travel type to be associated with the coordinate.
-
toString
Returns a JSON String representation of the Coordinate with ID, x and y values. -
equals
-
hashCode
public int hashCode()
-