Package org.neshan.common.utils
Class PolylineEncoding
- java.lang.Object
-
- org.neshan.common.utils.PolylineEncoding
-
public class PolylineEncoding extends java.lang.Object
Utility class that encodes and decodes Polylines.See https://developers.google.com/maps/documentation/utilities/polylinealgorithm for detailed description of this format.
-
-
Constructor Summary
Constructors Constructor Description PolylineEncoding()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<LatLng>
decode(java.lang.String encodedPath)
Decodes an encoded path string into a sequence of LatLngs.static java.lang.String
encode(java.util.List<LatLng> path)
Encodes a sequence of LatLngs into an encoded path string.static java.lang.String
encode(LatLng[] path)
Encodes an array of LatLngs into an encoded path string.
-
-
-
Method Detail
-
decode
public static java.util.List<LatLng> decode(java.lang.String encodedPath)
Decodes an encoded path string into a sequence of LatLngs.
-
encode
public static java.lang.String encode(java.util.List<LatLng> path)
Encodes a sequence of LatLngs into an encoded path string.
-
encode
public static java.lang.String encode(LatLng[] path)
Encodes an array of LatLngs into an encoded path string.
-
-