Class YMKBicycleRouteSerializer

Class Methods

+ loadWithData:

Returns a deserialized route.

+ saveWithRoute:

Returns a route's serialized representation.

Method Detail

+loadWithData:

+ (nonnull YMKBicycleRoute *)loadWithData:(nonnull NSData *)data 

Returns a deserialized route.

Returns null on error.

+saveWithRoute:

+ (nonnull NSData *)saveWithRoute:(nonnull YMKBicycleRoute *)route 

Returns a route's serialized representation.

Returns an empty array if there are any errors.