public class PolyLineEncoder extends Object
Constructor and Description |
---|
PolyLineEncoder() |
Modifier and Type | Method and Description |
---|---|
String |
encodePoint(double lat,
double lon)
This method encodes a point according the Google encoded polyline
method.
|
String |
encodeValue(double value)
This method converts doubles to the Google encoded string format
|
static PolyLineEncoder |
getInstance()
Returns the one and only instance of this Singleton class
|
void |
resetPointEncoding()
This method resets the Google polyline encoding.
|
public static PolyLineEncoder getInstance()
public void resetPointEncoding()
public String encodePoint(double lat, double lon)
lat
- The latitude of the point to encodelon
- The longitude of the point to encodepublic String encodeValue(double value)
value
- Value to convertCopyright © 2023. All rights reserved.