靜態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.
可選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.
靜態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.
可選opt_factor: numberThe factor by which the resulting numbers will
be divided. Default is 1e5.
A list of n-dimensional points.
靜態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.
可選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.
靜態decode函數Read the feature from the Polyline source. The coordinates are assumed to be in two dimensions and in latitude, longitude order.
Source.
可選opt_options: ReadOptionsRead options.
Feature.
函數Read the feature from the source. As Polyline sources contain a single feature, this will return the feature in an array.
Source.
可選opt_options: ReadOptionsRead options.
Features.
函數Read the geometry from the source.
Source.
可選opt_options: ReadOptionsRead options.
Geometry.
函數Read the projection from a Polyline source.
Source.
Projection.
函數Write a single geometry in Polyline format.
Geometry.
可選opt_options: WriteOptionsWrite options.
Geometry.
可選opt_options: PolylineOptionsOptional configuration object.
Classdesc
Feature format for reading and writing data in the Encoded Polyline Algorithm Format.
參數: opt_options
Optional configuration object.
Api
stable