HERE Android SDK Developer's Guide

TransitRouteSourceAttribution

The class TransitRouteSourceAttribution is a member of com.here.android.mpa.routing .

Class Summary

public class TransitRouteSourceAttribution

extends java.lang.Object

This class contains copyright notices that must be displayed to the end user.

[For complete information, see the section Class Details]

See also:

Route

getTransitRouteSourceAttribution()

Method Summary

Table 1. Methods in TransitRouteSourceAttribution
Methods

public String getAttribution ()

Gets the source attribution information as a html formatted string.

public java.util.List <TransitRouteSupplier> getSuppliers ()

Gets the structured information about source data suppliers

Class Details

This class contains copyright notices that must be displayed to the end user. Source attribution must be displayed together with a route. This requirement forms part of the terms and conditions of the API.

See also:

Route

getTransitRouteSourceAttribution()

Method Details

public String getAttribution ()

Gets the source attribution information as a html formatted string. The code snippet below demonstrates how to display the string in an Android TextView

       TextView textView = (TextView)
findViewById(R.id.attributionText);textView.setText((Html.fromHtml(route.getTransitRouteSourceAttribution().getAttribution())));textView.setMovementMethod(LinkMovementMethod.getInstance());               

Returns:

Html formatted attribution string

public java.util.List <TransitRouteSupplier> getSuppliers ()

Gets the structured information about source data suppliers

Returns:

List of transit route suppliers