HERE Android SDK Developer's Guide

TransitRouteSupplierNote

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

Class Summary

public class TransitRouteSupplierNote

extends java.lang.Object

This class contains giving additional information about the supplier.

[For complete information, see the section Class Details]

See also:

Route

getTransitRouteSourceAttribution()

getSuppliers()

getNotes()

Method Summary

Table 1. Methods in TransitRouteSupplierNote
Methods

public String getText ()

Gets the note text.The text may contain HTML text and markup, including hyperlink elements.

public String getType ()

Gets the type of source supplier note

public String getUrl ()

Gets the URL, to which note is referring, if any

public String getUrlText ()

Gets the text, displayed with URL, to which note is referring, if any.

Class Details

This class contains giving additional information about the supplier. This additional information about data supplier has to be exposed in the client application

See also:

Route

getTransitRouteSourceAttribution()

getSuppliers()

getNotes()

Method Details

public String getText ()

Gets the note text.The text may contain HTML text and markup, including hyperlink elements. The text will be localized. The code snippet below demonstrates how to display the string in an Android TextView


 TextView textView = (TextView) findViewById(R.id.noteText);
 textView.setText((Html.fromHtml(note.getText()));
 textView.setMovementMethod(LinkMovementMethod.getInstance());
  

Returns:

Note text

public String getType ()

Gets the type of source supplier note

Returns:

Supplier note type

public String getUrl ()

Gets the URL, to which note is referring, if any

Returns:

Note url

public String getUrlText ()

Gets the text, displayed with URL, to which note is referring, if any.

Returns:

Url text