Interface MasstransitRouteSerializer

com.yandex.mapkit.transport.masstransit

public interface MasstransitRouteSerializer

Methods

Route load(@NonNull byte[] data)

Deserializes the route.

byte[] save(@NonNull Route route)

Serializes the route.

Method Detail

load

public Route load (@NonNull byte[] data)

Deserializes the route.

Returns:

Deserialized Route. Null in case of any errors.

save

public byte[] save (@NonNull Route route)

Serializes the route.

Returns:

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