public class ResponsePathSerializer 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 |
|---|
ResponsePathSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static String |
encodePolyline(PointList poly,
boolean includeElevation,
double precision) |
static com.fasterxml.jackson.databind.node.ObjectNode |
jsonObject(GHResponse ghRsp,
String osmDate,
boolean enableInstructions,
boolean calcPoints,
boolean enableElevation,
boolean pointsEncoded,
double took) |
public static String encodePolyline(PointList poly, boolean includeElevation, double precision)
public static com.fasterxml.jackson.databind.node.ObjectNode jsonObject(GHResponse ghRsp, String osmDate, boolean enableInstructions, boolean calcPoints, boolean enableElevation, boolean pointsEncoded, double took)
Copyright © 2012–2023. All rights reserved.