Cody

# Problem 569. Encoding Google Maps Polylines

Solution 1300567

Submitted on 19 Oct 2017
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   Fail
lat = 42.3; lon = -71.35; str_correct = '_vdaGnpnrL'; str = polyline_encoder(lat,lon); assert(isequal(str,str_correct))

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.