public class PolylineUtils
extends java.lang.Object
Constructor and Description |
---|
PolylineUtils() |
Modifier and Type | Method and Description |
---|---|
static org.json.JSONArray |
decode(java.lang.String encodedPath)
decode a polyline to a GeoJSON coordinates array
Code for encoded and decoded paths is adapted from
https://github.com/googlemaps/google-maps-services-java/blob/master/src/main/java/com/google/maps/internal/PolylineEncoding.java
|
static java.lang.String |
encode(org.json.JSONArray coordinates)
encode a GeoJSON coordinates array to a polyline
Code for encoded and decoded paths is adapted from
https://github.com/googlemaps/google-maps-services-java/blob/master/src/main/java/com/google/maps/internal/PolylineEncoding.java
|
@NonNull public static java.lang.String encode(@NonNull org.json.JSONArray coordinates) throws org.json.JSONException
org.json.JSONException
@NonNull public static org.json.JSONArray decode(java.lang.String encodedPath) throws org.json.JSONException
org.json.JSONException