Class BicycleRouteSerializer

com.yandex.mapkit.transport.bicycle

public class BicycleRouteSerializer

Methods

native Route load(@NonNull byte[] data)

Returns a deserialized route.

native byte[] save(@NonNull Route route)

Returns a route's serialized representation.

Method Detail

load

public static native Route load (@NonNull byte[] data)

Returns a deserialized route.

Returns null on error.

save

public static native byte[] save (@NonNull Route route)

Returns a route's serialized representation.

Returns an empty array if there are any errors.