Encodes a sequence of LatLngs into an encoded path string.
More...
|
| | Encoder (Writer writer) |
| |
| void | seperator () throws IOException |
| |
| void | startRing () throws IOException |
| |
| void | write (char event) throws IOException |
| |
| void | writeArg (double value) throws IOException |
| |
| void | write (double latitude, double longitude) throws IOException |
| |
|
| void | encode (long v) throws IOException |
| |
◆ Encoder()
◆ encode()
| void encode |
( |
long |
v | ) |
throws IOException |
|
private |
◆ seperator()
| void seperator |
( |
| ) |
throws IOException |
static final char KEY_SEPERATOR
Definition: PolyshapeWriter.java:150
long lastLng
Definition: PolyshapeWriter.java:161
final Writer writer
Definition: PolyshapeWriter.java:163
long lastLat
Definition: PolyshapeWriter.java:160
◆ startRing()
| void startRing |
( |
| ) |
throws IOException |
long lastLng
Definition: PolyshapeWriter.java:161
final Writer writer
Definition: PolyshapeWriter.java:163
long lastLat
Definition: PolyshapeWriter.java:160
static final char KEY_ARG_START
Definition: PolyshapeWriter.java:148
◆ write() [1/2]
| void write |
( |
char |
event | ) |
throws IOException |
long lastLng
Definition: PolyshapeWriter.java:161
final Writer writer
Definition: PolyshapeWriter.java:163
long lastLat
Definition: PolyshapeWriter.java:160
◆ write() [2/2]
| void write |
( |
double |
latitude, |
|
|
double |
longitude |
|
) |
| throws IOException |
◆ writeArg()
| void writeArg |
( |
double |
value | ) |
throws IOException |
References PolyshapeWriter.Encoder.encode().
186 encode(Math.round(value * 1e5));
static final char KEY_ARG_END
Definition: PolyshapeWriter.java:149
final Writer writer
Definition: PolyshapeWriter.java:163
void encode(long v)
Definition: PolyshapeWriter.java:205
static final char KEY_ARG_START
Definition: PolyshapeWriter.java:148
◆ lastLat
◆ lastLng
◆ writer