public class GHRequest extends Object
| Constructor and Description |
|---|
GHRequest() |
GHRequest(double fromLat,
double fromLon,
double toLat,
double toLon)
Creates a routing request from one point (fromLat, fromLon) to another (toLat, toLon)
|
GHRequest(GHPoint startPlace,
GHPoint endPlace) |
GHRequest(int size) |
GHRequest(List<GHPoint> points) |
public GHRequest()
public GHRequest(int size)
public GHRequest(double fromLat,
double fromLon,
double toLat,
double toLon)
public GHRequest addPoint(GHPoint point)
point - geographical position (see GHPoint)public GHRequest setHeadings(List<Double> headings)
The number of headings must be zero (default), one (for the start point) or equal to the number of points when sending the request.
public static boolean isAzimuthValue(double heading)
public String getAlgorithm()
public Locale getLocale()
public CustomModel getCustomModel()
public GHRequest setCustomModel(CustomModel customModel)
public String getProfile()
public PMap getHints()
public GHRequest putHint(String fieldName, Object value)
setPointHints(List)Copyright © 2012–2023. All rights reserved.