sdk-traffic / com.tomtom.online.sdk.traffic.incidents.query / IIncidentDetailsQuery

IIncidentDetailsQuery

interface IIncidentDetailsQuery

An interface to specify details of a traffic incident query such as language or geometry type that will be used in the Response. This interface is used in the IncidentDetailsQueryBuilder class.

Functions

withExpandCluster

abstract fun withExpandCluster(expandCluster: Boolean!): IIncidentDetailsQuery!

Sets whether a list of separate incidents should be added to clusters.

withGeometryType

abstract fun withGeometryType(geometryType: IncidentGeometryType!): IIncidentDetailsQuery!

Sets the type of vector geometry added to incidents.

withIncludeOriginalPosition

abstract fun withIncludeOriginalPosition(useOriginalPosition: Boolean!): IIncidentDetailsQuery!

Sets whether the original position of the incident should be returned along with the one shifter to the beginning of the traffic tube.

withIsoLanguage

abstract fun withIsoLanguage(isoLanguage: String!): IIncidentDetailsQuery!

ISO 639-1 code for the output language. See https://developer.tomtom.com/online-traffic/online-traffic-documentation-online-traffic-incidents/traffic-incident-details for a list of supported languages and their ISO codes.

withLanguage

abstract fun withLanguage(language: IncidentResponseLanguage!): IIncidentDetailsQuery!

Sets the language to use in the Response to a created query.