Class DefaultSourceAddress

java.lang.Object
com.targomo.client.api.geo.AbstractLocation
com.targomo.client.api.geo.DefaultSourceAddress
All Implemented Interfaces:
Location

@MappedSuperclass public class DefaultSourceAddress extends AbstractLocation implements Location
AbstractClass for dealing with Source/Target H3 Addresses
  • 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

      public DefaultSourceAddress(String h3Address, LocationProperties locationProperties)
    • DefaultSourceAddress

      public DefaultSourceAddress(String h3Address, TravelType travelType)
    • DefaultSourceAddress

      public DefaultSourceAddress(String h3Address)
  • Method Details

    • setTravelType

      public void setTravelType(TravelType travelType)
      Description copied from interface: Location
      Set the travel type to use when routing.
      Specified by:
      setTravelType in interface Location
      Parameters:
      travelType - Travel type to be associated with the coordinate.
    • toString

      public String toString()
      Returns a JSON String representation of the Coordinate with ID, x and y values.
      Overrides:
      toString in class Object
      Returns:
      JSON representation of the coordinate
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object