HERE Android SDK Developer's Guide

Route Serialization

Route serialization is a feature that allows users to use the Route methods to serialize a route into binary data, which can then be saved as a file. You can also use Route class to generate a route from a previously serialized route without going through the route calculation process. This is useful when a user wants to recover from a crash during navigation or when a user wants to transfer a route from another device.

Note: Route serialization is currently offered as a beta feature. APIs may change without notice.

Route serialization currently only supports car , bike, truck, and pedestrian routes. Public Transit , Indoor Venue, and Urban Mobility routes cannot be serialized. Route serialization also does not work when the map version from which a route is serialized does not match the current map version. Route serialization also fails if the binary data containing the serialized route is tempered with or corrupted. In these cases, a specific SerializerError error code is returned.

Both asynchronous and synchronous operations are supported. To asynchronously serialize a route, perform the following:

Route route;
//assume that route calculation was already performed

Route.SerializtionCallback sCallback = new SerializationCallback() {
  public void onSerializationComplete(Route.SerializationResult result) {
    //do something with data
    byte[] data =;

Route.serializeAsync(route, sCallback);

To asynchronously deserialize a route:

byte[] data;
//assume 'data' is a previously-serialized route

Route.DeserializationCallback dCallback = new DeserializationCallback() {
  public void onDeserializationComplete(Route.Deserialization result){
    //do something with the route
    Route route = result.route;

Route.deserializeAsync(data, dCallback);

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on