Static
decodeDecode a list of n-dimensional points from an encoded string
An encoded string.
The number of dimension of the points in the encoded string.
Optional
opt_factor: numberThe factor by which the resulting numbers will
be divided. Default is 1e5
.
A list of n-dimensional points.
Static
decodeStatic
encodeEncode a list of n-dimensional points and return an encoded string
Attention: This function will modify the passed array!
A list of n-dimensional points.
The number of dimension of the points in the list.
Optional
opt_factor: numberThe factor by which the numbers will be
multiplied. The remaining decimal places will get rounded away.
Default is 1e5
.
The encoded string.
Static
encodeEncode a list of floating point numbers and return an encoded string
Attention: This function will modify the passed array!
A list of floating point numbers.
Optional
opt_factor: numberThe factor by which the numbers will be
multiplied. The remaining decimal places will get rounded away.
Default is 1e5
.
The encoded string.
Read the feature from the Polyline source. The coordinates are assumed to be in two dimensions and in latitude, longitude order.
Source.
Optional
opt_options: ReadOptionsRead options.
Feature.
stable
Read the feature from the source. As Polyline sources contain a single feature, this will return the feature in an array.
Source.
Optional
opt_options: ReadOptionsRead options.
Features.
stable
Read the projection from a Polyline source.
Source.
Projection.
stable
Generated using TypeDoc
Classdesc
Feature format for reading and writing data in the Encoded Polyline Algorithm Format.
Param: opt_options
Optional configuration object.
Api
stable