bing-point-encoder
encode and decode point coordinates for Bing Spatial Data APIs.
Installation
npm install bing-point-encoder
Usage
- Encode an array of point coordinates
let bpe = ;let coords =-11072522000409663 35894309002906084-11072577999904752 35893930979073048-11072606003843248 35893744984641671-11072661500424147 35893366960808635;let result = bpe;// result = 'vx1vilihnM6hR7mEl2Q'
- Decode a coordinate string
let bpe = ;let result = bpe;// result = [// [-110.72522, 35.89430],// [-110.72577, 35.89393],// [-110.72606, 35.89374],// [-110.72661, 35.89336]// ]