Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitRouteSerializer

@interface MMKMasstransitRouteSerializer : NSObject

Undocumented

Summary

Instance methods

- (nonnull NSData *)saveWithRoute:(nonnull MMKMasstransitRoute *)route;
Serializes the route

- (nullable MMKMasstransitRoute *)loadWithData:(nonnull NSData *)data;
Deserializes the route

Instance methods

saveWithRoute:

- (nonnull NSData *)saveWithRoute:(nonnull MMKMasstransitRoute *)route;

Serializes the route.

Returns

Route's serialized representation. Empty array in case of any
errors.


loadWithData:

- (nullable MMKMasstransitRoute *)loadWithData:(nonnull NSData *)data;

Deserializes the route.

Returns

Deserialized Route. Null in case of any errors.