pub fn encode_polyline(coords: &[Coord]) -> StringExpand description
Encodes coordinates using Google Polyline Algorithm.
ยงExamples
use solverforge_maps::{encode_polyline, Coord};
let encoded = encode_polyline(&[Coord::new(38.5, -120.2)]);
assert!(!encoded.is_empty());
let empty = encode_polyline(&[]);
assert!(empty.is_empty());