@Entity public class TravelOptions extends Object
PolygonRequest,
RouteRequest,
TimeRequest,
ReachabilityRequest.| Constructor and Description |
|---|
TravelOptions() |
public Format getFormat()
public void setFormat(Format format)
public String getBoundingBox()
public void setBoundingBox(String boundingBox)
public Set<TravelType> getTravelTypes()
public void setTravelTypes(Set<TravelType> travelTypes)
public Integer getId()
public void setId(Integer id)
public double[][] getSourceCoordinates()
public double[][] getTargetCoordinates()
public Map<String,Coordinate> getSources()
public void setSources(Map<String,Coordinate> sources)
sources - the sources to setpublic Map<String,Coordinate> getTargets()
public void setTargets(Map<String,Coordinate> targets)
targets - the targets to setpublic void addAllTargets(Map<String,Coordinate> targets)
targets - add all specified targets to the target mappublic void addAllTargets(Collection<Coordinate> targets)
public double getBikeSpeed()
public void setBikeSpeed(double bikeSpeed)
bikeSpeed - the bikeSpeed to setpublic double getBikeUphill()
public void setBikeUphill(double bikeUphill)
bikeUphill - the bikeUphill to setpublic double getBikeDownhill()
public void setBikeDownhill(double bikeDownhill)
bikeDownhill - the bikeDownhill to setpublic double getWalkSpeed()
public void setWalkSpeed(double walkSpeed)
walkSpeed - the walkSpeed to setpublic double getWalkUphill()
public void setWalkUphill(double walkUphill)
walkUphill - the walkUphill to setpublic double getWalkDownhill()
public void setWalkDownhill(double walkDownhill)
walkDownhill - the walkDownhill to setpublic void setTravelTimes(List<Integer> travelTimes)
travelTimes - the travelTimes to setpublic TravelType getTravelType()
public void setTravelType(TravelType travelType)
travelType - the travelType to setpublic Boolean isElevationEnabled()
public void setElevationEnabled(Boolean elevationEnabled)
elevationEnabled - the elevationEnabled to setpublic long getMinPolygonHoleSize()
public void setMinPolygonHoleSize(long minPolygonHoleSize)
minPolygonHoleSize - the minPolygonHoleSize to setpublic int getTime()
public void setTime(Integer time)
time - the time to setpublic int getDate()
public void setDate(Integer date)
date - the date to setpublic int getFrame()
public void setFrame(int frame)
frame - the frame to setpublic int getRecommendations()
public void setRecommendations(int recommendations)
recommendations - the recommendations to setpublic PolygonIntersectionMode getIntersectionMode()
public void setIntersectionMode(PolygonIntersectionMode intersectionMode)
intersectionMode - the intersectionMode to set. Default: UNIONpublic PathSerializerType getPathSerializer()
public void setPathSerializer(PathSerializerType pathSerializer)
pathSerializer - the pathSerializer to set. Default: COMPACTpublic PolygonSerializerType getPolygonSerializerType()
public void setPolygonSerializerType(PolygonSerializerType polygonSerializerType)
polygonSerializerType - the polygonSerializerType to set. Default: JSONpublic boolean isPointReduction()
public void setPointReduction(boolean pointReduction)
pointReduction - the pointReduction to set. Default: true@Deprecated public int getMaxRoutingTime()
@Deprecated public void setMaxRoutingTime(int maxRoutingTime)
maxRoutingTime - the maxRoutingTime to set@Deprecated public Integer getMaxRoutingLength()
@Deprecated public void setMaxRoutingLength(Integer maxRoutingLength)
maxRoutingLength - the maxRoutingLength to setpublic String getServiceUrl()
public void setServiceUrl(String serviceUrl)
serviceUrl - the serviceUrl to setpublic String getServiceKey()
public void setServiceKey(String serviceKey)
serviceKey - the serviceKey to setpublic void addSource(Coordinate source)
source - Source coordinatepublic void addTarget(Coordinate target)
target - Target coordinatepublic Coordinate getSource(String id)
id - ID of source Coordinatepublic Coordinate getTarget(String id)
id - ID of source Coordinatepublic void setOnlyPrintReachablePoints(boolean onlyPrintReachablePoints)
onlyPrintReachablePoints - default: truepublic boolean getOnlyPrintReachablePoints()
public Double getBuffer()
public void setBuffer(Double buffer)
buffer - Buffer value in meters or in degreespublic Boolean getReverse()
public void setReverse(Boolean reverse)
reverse - default: falsepublic Integer getSrid()
public void setSrid(Integer srid)
public EdgeWeightType getEdgeWeightType()
public void setEdgeWeightType(EdgeWeightType edgeWeightType)
public Boolean getAppendTravelTimes()
public void setAppendTravelTimes(Boolean appendTravelTimes)
public String getStatisticServiceUrl()
public void setStatisticServiceUrl(String statisticServiceUrl)
public Integer getStatisticGroupId()
public void setStatisticGroupId(Integer statisticGroupId)
public Integer getMaxEdgeWeight()
public void setMaxEdgeWeight(Integer maxEdgeWeight)
public void addAllSources(Map<String,Coordinate> inactiveSources)
public void clearAndAddSource(String id, Coordinate source)
id - ID for the new sourcesource - New source coordinatepublic String getFallbackServiceUrl()
public void setFallbackServiceUrl(String fallbackServiceUrl)
public static void main(String[] args) throws com.fasterxml.jackson.core.JsonProcessingException, Route360ClientException
com.fasterxml.jackson.core.JsonProcessingExceptionRoute360ClientExceptionpublic String getPointOfInterestServiceUrl()
public String getOverpassServiceUrl()
public void setOverpassServiceUrl(String overpassServiceUrl)
public String getOverpassQuery()
public void setOverpassQuery(String overpassQuery)
public String getInterServiceKey()
public void setInterServiceKey(String interServiceKey)
Copyright © 2017. All rights reserved.