TTIncidentDetailsQueryBuilder Class Reference
Inherits from | NSObject |
---|---|
Declared in | TTIncidentDetailsQuery.h |
+ createWithStyle:withBoundingBox:withZoom:withTrafficModelID:
Builder of TTIncidentDetailsQueryBuilder object
+ (TTIncidentDetailsQueryBuilder *_Nonnull)createWithStyle:(TTTrafficIncidentStyleType)style withBoundingBox:(TTLatLngBounds)boudingBox withZoom:(NSUInteger)zoom withTrafficModelID:(NSString *_Nonnull)trafficModelID
Parameters
style |
The style that will be used to render the traffic tile in the Maps API. This will have an effect on the coordinates of traffic incidents in the reply. |
---|---|
boudingBox |
The corners of the area to report on, expressed in the projection specified. These are two latitude-longitude pairs describing corners of the bounding box. First pair for lower left corner and second for upper right. All values should be separated by commas. |
zoom |
Zoom level. This will affect traffic incident coordinates and determine which incidents are included in clusters rather than reported separately. |
trafficModelID |
Number referencing traffic model. This can be obtained from the Viewport API. It is updated every minute, and is valid for two minutes before it times out. If the wrong Traffic Model ID is specified, the correct one will be returned by the interface. A value of -1 will always invoke the most recent traffic model |
Return Value
TTIncidentDetailsQueryBuilder object
Discussion
Builder of TTIncidentDetailsQueryBuilder object
Declared In
TTIncidentDetailsQuery.h
– withLanguage:
Part of builder TTIncidentDetailsQueryBuilder object.
- (TTIncidentDetailsQueryBuilder *_Nonnull)withLanguage:(NSString *)language
Parameters
language |
ISO 639-1 code for the output language. Affects the |
---|
Return Value
TTIncidentDetailsQueryBuilder object
Discussion
Part of builder TTIncidentDetailsQueryBuilder object.
Declared In
TTIncidentDetailsQuery.h
– withGeometries:
Part of builder TTIncidentDetailsQueryBuilder object.
- (TTIncidentDetailsQueryBuilder *_Nonnull)withGeometries:(TTTrafficGeometriesType)geometries
Parameters
geometries |
The type of vector geometry added to incidents (returned in the |
---|
Return Value
TTIncidentDetailsQueryBuilder object
Discussion
Part of builder TTIncidentDetailsQueryBuilder object.
Declared In
TTIncidentDetailsQuery.h
– withExpandCluster:
Part of builder TTIncidentDetailsQueryBuilder object.
- (TTIncidentDetailsQueryBuilder *_Nonnull)withExpandCluster:(Boolean)expandCluster
Parameters
expandCluster |
List all traffic incidents in a cluster separately. |
---|
Return Value
TTIncidentDetailsQueryBuilder object
Discussion
Part of builder TTIncidentDetailsQueryBuilder object.
Declared In
TTIncidentDetailsQuery.h
– withOriginalPosition:
Part of builder TTIncidentDetailsQueryBuilder object.
- (TTIncidentDetailsQueryBuilder *_Nonnull)withOriginalPosition:(Boolean)originalPosition
Parameters
originalPosition |
Return the original position of the incident ( ). |
---|
Return Value
TTIncidentDetailsQueryBuilder object
Discussion
Part of builder TTIncidentDetailsQueryBuilder object.
Declared In
TTIncidentDetailsQuery.h
– build
Build method.
- (TTIncidentDetailsQuery *_Nonnull)build
Return Value
TTIncidentDetailsQuery object.
Discussion
Build method.
Declared In
TTIncidentDetailsQuery.h