Cody

# Problem 569. Encoding Google Maps Polylines

Solution 1701059

Submitted on 1 Jan 2019 by William
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
lat = 42.3; lon = -71.35; str_correct = '_vdaGnpnrL'; str = polyline_encoder(lat,lon); assert(isequal(str,str_correct))

2   Pass
lat = 48.82; lon = 2.22; str_correct = '_d~hH_rpL'; str = polyline_encoder(lat,lon); assert(isequal(str,str_correct))

3   Pass
lat = 38.5; lon = -120.2; str_correct = '_p~iF~ps|U'; str = polyline_encoder(lat,lon); assert(isequal(str,str_correct))

4   Pass
lat = 40.7; lon = -120.95; str_correct = '_flwFn`faV'; str = polyline_encoder(lat,lon); assert(isequal(str,str_correct))

5   Pass
lat = 43.252; lon = -126.453; str_correct = '_t~fGfzxbW'; str = polyline_encoder(lat,lon); assert(isequal(str,str_correct))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!