public class GHRequest extends Object
Constructor and Description |
---|
GHRequest() |
GHRequest(double fromLat,
double fromLon,
double toLat,
double toLon)
Set routing request from specified startPlace (fromLat, fromLon) to endPlace (toLat, toLon)
|
GHRequest(double fromLat,
double fromLon,
double toLat,
double toLon,
double startHeading,
double endHeading)
Set routing request from specified startPlace (fromLat, fromLon) to endPlace (toLat, toLon)
with a preferred start and end heading.
|
GHRequest(GHPoint startPlace,
GHPoint endPlace) |
GHRequest(GHPoint startPlace,
GHPoint endPlace,
double startHeading,
double endHeading)
Set routing request from specified startPlace to endPlace with a preferred start and end
heading.
|
GHRequest(int size) |
GHRequest(List<GHPoint> points)
Set routing request
|
GHRequest(List<GHPoint> points,
List<Double> favoredHeadings)
Set routing request
|
public GHRequest()
public GHRequest(int size)
public GHRequest(double fromLat, double fromLon, double toLat, double toLon, double startHeading, double endHeading)
public GHRequest(double fromLat, double fromLon, double toLat, double toLon)
public GHRequest(GHPoint startPlace, GHPoint endPlace, double startHeading, double endHeading)
public GHRequest(List<GHPoint> points, List<Double> favoredHeadings)
points
- List of stopover points in order: start, 1st stop, 2nd stop, ..., endfavoredHeadings
- List of favored headings for starting (start point) and arrival (via
and end points) Headings are north based azimuth (clockwise) in (0, 360) or NaN for equalpublic GHRequest addPoint(GHPoint point, double favoredHeading)
point
- geographical position (see GHPoint)favoredHeading
- north based azimuth (clockwise) in (0, 360) or NaN for equal preferencepublic GHRequest addPoint(GHPoint point)
point
- geographical position (see GHPoint)public double getFavoredHeading(int i)
public boolean hasFavoredHeading(int i)
public String getAlgorithm()
public Locale getLocale()
public String getWeighting()
public GHRequest setWeighting(String w)
public String getVehicle()
public GHRequest setVehicle(String vehicle)
public HintsMap getHints()
public GHRequest putHint(String fieldName, Object value)
setPointHints(List)
public boolean hasPointHints()
public boolean hasCurbsides()
public boolean hasSnapPreventions()
Copyright © 2012–2020. All rights reserved.