public class WebHelper extends Object
The necessary information for polyline encoding is in this answer: http://stackoverflow.com/a/24510799/194609 with a link to official Java sources as well as to a good explanation.
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
COPYRIGHTS
This includes the required attribution for OpenStreetMap.
|
| Constructor and Description |
|---|
WebHelper() |
| Modifier and Type | Method and Description |
|---|---|
static PointList |
decodePolyline(String encoded,
int initCap,
boolean is3D) |
static String |
encodePolyline(PointList poly) |
static String |
encodePolyline(PointList poly,
boolean includeElevation) |
static String |
encodePolyline(PointList poly,
boolean includeElevation,
double precision) |
static String |
encodeURL(String str) |
static com.fasterxml.jackson.databind.node.ObjectNode |
jsonObject(GHResponse ghRsp,
boolean enableInstructions,
boolean calcPoints,
boolean enableElevation,
boolean pointsEncoded,
float took) |
static com.fasterxml.jackson.databind.node.ObjectNode |
jsonResponsePutInfo(com.fasterxml.jackson.databind.node.ObjectNode json,
float took) |
public static String encodePolyline(PointList poly, boolean includeElevation, double precision)
public static com.fasterxml.jackson.databind.node.ObjectNode jsonResponsePutInfo(com.fasterxml.jackson.databind.node.ObjectNode json,
float took)
public static com.fasterxml.jackson.databind.node.ObjectNode jsonObject(GHResponse ghRsp, boolean enableInstructions, boolean calcPoints, boolean enableElevation, boolean pointsEncoded, float took)
Copyright © 2012–2020. All rights reserved.