-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class AudioRequest implements Parcelable
if client wants audio guidance service to generate particular type audio, client should construct audio request first and call AudioGuidanceService::generateAudio by this request request contains two parts, one is request type indicate audio guidance service to find audio string and another is additional info, with which audio guidance will enrich the final string
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAudioRequest.Builder
-
Field Summary
Fields Modifier and Type Field Description private final Integertypeprivate final Integerdistanceprivate final Integeretaprivate final Stringinfoprivate final Integerdistance2private final Integerdistance3private final StringcountryBorderprivate final StringcountryCodeprivate final StringcurrentStreetNameprivate final StringnextStreetNameprivate final StringnearbyStreetNameprivate final BooleanisCurrentStreetNameRouteNumberprivate final BooleanisNextStreetNameRouteNumberprivate final BooleanisNearbyStreetNameRouteNumberprivate final StringcityNameprivate final StringstateNameprivate final StringcountryNameprivate final StringhighwayExitNumberprivate final Integereteprivate final StringarrivalTimeprivate final StringisTimezoneChanged
-
Method Summary
Modifier and Type Method Description final IntegergetType()final IntegergetDistance()prime distance value in meter final IntegergetEta()value: eta time value in minute final StringgetInfo()additional info string which will be prompt in final audio final IntegergetDistance2()secondary distance value in meter final IntegergetDistance3()third distance value in meter final StringgetCountryBorder()any string(not "") final StringgetCountryCode()3 characters ISO country code final StringgetCurrentStreetName()the name of street where vehicle locates currently final StringgetNextStreetName()the name of next upcoming street when driving final StringgetNearbyStreetName()nearby street name when off road final BooleanisCurrentStreetNameRouteNumber()"true" when type of "current_street_name" type is route number, if true, tasdk will process it into a more understandable string. final BooleanisNextStreetNameRouteNumber()"true" when type of "next_street_name" type is route number, if true, tasdk will process it into a more understandable string. final BooleanisNearbyStreetNameRouteNumber()"true" when type of "nearby_street_name" type is route number, if true, tasdk will process it into a more understandable string. final StringgetCityName()the name of the city where the vehicle is located final StringgetStateName()the name of the state where the vehicle is located final StringgetCountryName()the name of the country where the vehicle is located final StringgetHighwayExitNumber()highway exit number, tasdk will process it into a more understandable string. final IntegergetEte()time spent from current location to next stop(waypoint or destination), unit: minute final StringgetArrivalTime()arrive next stop time value, time format should follow the tts engine's rule final StringisTimezoneChanged()"true" when timezone of next stop is different from current one, "false" when timezone of next stop is same with current one, Default: "false", If client use other string except for "true" and "false", this value is always false. IntegerdescribeContents()-
-
Method Detail
-
getDistance
final Integer getDistance()
prime distance value in meter
-
getDistance2
final Integer getDistance2()
secondary distance value in meter
-
getDistance3
final Integer getDistance3()
third distance value in meter
-
getCountryBorder
final String getCountryBorder()
any string(not "")
-
getCountryCode
final String getCountryCode()
3 characters ISO country code
-
getCurrentStreetName
final String getCurrentStreetName()
the name of street where vehicle locates currently
-
getNextStreetName
final String getNextStreetName()
the name of next upcoming street when driving
-
getNearbyStreetName
final String getNearbyStreetName()
nearby street name when off road
-
isCurrentStreetNameRouteNumber
final Boolean isCurrentStreetNameRouteNumber()
"true" when type of "current_street_name" type is route number, if true, tasdk will process it into a more understandable string. "false" when type of "current_street_name" type is not route number. Default: "false".
-
isNextStreetNameRouteNumber
final Boolean isNextStreetNameRouteNumber()
"true" when type of "next_street_name" type is route number, if true, tasdk will process it into a more understandable string. "false" when type of "next_street_name" type is not route number,. Default: "false".
-
isNearbyStreetNameRouteNumber
final Boolean isNearbyStreetNameRouteNumber()
"true" when type of "nearby_street_name" type is route number, if true, tasdk will process it into a more understandable string. "false" when type of "nearby_street_name" type is not route number, not. Default: "false".
-
getCityName
final String getCityName()
the name of the city where the vehicle is located
-
getStateName
final String getStateName()
the name of the state where the vehicle is located
-
getCountryName
final String getCountryName()
the name of the country where the vehicle is located
-
getHighwayExitNumber
final String getHighwayExitNumber()
highway exit number, tasdk will process it into a more understandable string.
-
getEte
final Integer getEte()
time spent from current location to next stop(waypoint or destination), unit: minute
-
getArrivalTime
final String getArrivalTime()
arrive next stop time value, time format should follow the tts engine's rule
-
isTimezoneChanged
final String isTimezoneChanged()
"true" when timezone of next stop is different from current one, "false" when timezone of next stop is same with current one, Default: "false", If client use other string except for "true" and "false", this value is always false.
-
describeContents
Integer describeContents()
-
-
-
-