HERE Android SDK Developer's Guide

OnTravelTimeListener

The interface OnTravelTimeListener is a member of com.here.android.mpa.nlp.Nlp.

Interface Summary

public static abstract interface Nlp.OnTravelTimeListener

   extends com.here.android.mpa.nlp.Nlp.ListenerBase

The travel time to specified location event listener interface

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in OnTravelTimeListener
Methods

public abstract void onTravelTime (Error error, Place from, Place to, int timeSec)

A callback with the travel time in seconds to the specified location.

Interface Details

The travel time to specified location event listener interface

Method Details

public abstract void onTravelTime (Error error, Place from, Place to, int timeSec)

A callback with the travel time in seconds to the specified location. e.g. "How long does it take to drive from Vancouver to Seattle".

Parameters:

  • error

    Error information for calculating travel time

  • from

    "From" Place. If null, current position is implied

  • to

    "To" Place.

  • timeSec

    Time in seconds. If traffic is enabled on Map, the calculated travel time will reflect the current traffic.