encode
This block is part of the array group and was last modified in core v14.0.1.
encode v13.0.8 Updated v14.0.1Takes an array of lat, lon arrays and returns an encoded string.
In pins 2
- array required
arrayarray of [0]lat, [1]lon
- precision
number
Out pins 1
- encoded
value
Encodes coordinates into a Google encoded polyline string on encoded. Each entry may be a [lat, lon] pair-array or an object with latitude/longitude keys (falling back to lat/lng); entries in any other shape are silently skipped. precision defaults to 5 decimal places; an empty or missing input produces an empty string.
A typical wiring for encode: with values feeds the array pin; the encoded out pin feeds convert to uppercase.
Version history
Introduced in v13.0.8.
Last modified in v14.0.1.
Back to
array Return to the main group to view all sub-groups Back to esque polyline Return to the group to view all blocks within this group 