|
Maps SDK for C++ 1.0.0
|
TrafficService object. More...


Public Member Functions | |
| TrafficService ()=default | |
| Default constructor. | |
| TrafficService (const TrafficService &traffic)=delete | |
| Default copy constructor. | |
| TrafficService (TrafficService &&traffic)=default | |
| Default move constructor noexcept is deduced. | |
| TrafficService & | operator= (const TrafficService &traffic)=delete |
| Default copy assignment. | |
| TrafficService & | operator= (TrafficService &&traffic)=default |
| Default move assignment noexcept is deduced. | |
| TrafficPreferencesRef | preferences () noexcept |
| Get access to the traffic service preferences. | |
| int | getOnlineServiceRestrictions (const Coordinates &position) const noexcept |
| Get the online traffic service restrictions for the given position. | |
| TransferStatisticsRef | getTransferStatistics () const |
| Get data transfer statistics for this service. | |
| std::pair< TrafficEvent, int > | addPersistentRoadblock (const CoordinatesList &coords, const Time &startUTC, const Time &expireUTC, int transportMode, const String &id=String()) noexcept |
| Add an user persistent roadblock to collection ( path impact zone type ). | |
| std::pair< TrafficEvent, int > | addPersistentAntiRoadblock (const GeographicArea &area, const Time &startUTC, const Time &expireUTC, int transportMode, const String &id=String()) noexcept |
| Add an user persistent anti-area roadblock to collection. | |
| std::pair< TrafficEvent, int > | addPersistentRoadblock (const GeographicArea &area, const Time &startUTC, const Time &expireUTC, int transportMode, const String &id=String()) noexcept |
| Add an user persistent roadblock to collection ( area impact zone type ). | |
| int | removePersistentRoadblock (const String &id) noexcept |
| Remove an user persistent roadblock identified by id. | |
| int | removePersistentRoadblock (const Coordinates &coords) noexcept |
| Remove an user persistent roadblock identified by a reference coordinate ( for path impact zone type ). | |
| TrafficEvent | getPersistentRoadblock (const String &id) noexcept |
| Get an user persistent roadblock identified by id. | |
| TrafficService & | removeAllPersistentRoadblocks () noexcept |
| Remove all user persistent roadblock. | |
| RouteTrafficEventList | getPersistentRoadblocks () const noexcept |
| Get all persistent user roadblocks. | |
| TrafficService & | removeUserRoadblock (const TrafficEvent &ev) noexcept |
| Remove an user roadblock ( persistent or non-persistent ). | |
| std::tuple< CoordinatesList, UserRoadblockPathPreviewCoordinate, int > | getPersistentRoadblockPathPreview (const UserRoadblockPathPreviewCoordinate &from, const Coordinates &to, int transportMode) const noexcept |
| Get persistent roadblock path preview. | |
| TrafficService & | setPersistentRoadblockListener (PersistentRoadblockListener listener) noexcept |
| Set persistent roadblocks listener. | |
TrafficService object.
Adds support to update traffic information.
Implements share-read / write Api object over ITraffic.
This behaves like a singleton, i.e. all instances are sharing behind the same API interface
|
delete |
Default copy constructor.
| traffic | The traffic object to copy |
|
default |
Default move constructor noexcept is deduced.
| traffic | The traffic object to move |
|
inlinenoexcept |
Add an user persistent anti-area roadblock to collection.
| [in] | area | The geographic area not affected by the roadblock, i.e. the anti-area ( world wide - area ) is the roadblock |
| [in] | startUTC | The roadblock start time in Coordinated Universal Time |
| [in] | expireUTC | The roadblock expire time in Coordinated Universal Time |
| [in] | transportMode | The transport mode for which the roadblock applies. See gem::ERouteTransportMode. |
| [in] | id | The user roadblock id. Can be used to get / delete a defined roadblock |
|
inlinenoexcept |
Add an user persistent roadblock to collection ( path impact zone type ).
| [in] | coords | The roadblock coordinates list |
| [in] | startUTC | The roadblock start time in Coordinated Universal Time |
| [in] | expireUTC | The roadblock expire time in Coordinated Universal Time |
| [in] | transportMode | The transport mode for which the roadblock applies. See gem::ERouteTransportMode. |
| [in] | id | The user roadblock id. Can be used to get / delete a defined roadblock |
if coords size == 1, a point located roadblock is defined - this may result in 2 real roadblocks for matched road both ways
if coords size > 1, a path located roadblock is defined - this will result in 1 map roadblock in start -> end way
|
inlinenoexcept |
Add an user persistent roadblock to collection ( area impact zone type ).
| [in] | area | The geographic area affected by the roadblock |
| [in] | startUTC | The roadblock start time in Coordinated Universal Time |
| [in] | expireUTC | The roadblock expire time in Coordinated Universal Time |
| [in] | transportMode | The transport mode for which the roadblock applies. See gem::ERouteTransportMode. |
| [in] | id | The user roadblock id. Can be used to get / delete a defined roadblock |
|
inlinenoexcept |
Get the online traffic service restrictions for the given position.
| [in] | position | The check position |
|
inlinenoexcept |
Get an user persistent roadblock identified by id.
| [in] | id | The roadblock id as it was provided in addPersistentRoadblock function |
|
inlinenoexcept |
Get persistent roadblock path preview.
| [in] | from | The previous defined coordinates in roadblock path from where to start the preview |
| [in] | to | The movable coordinate in roadblock path to where the preview ends |
| [in] | transportMode | The transport mode. See gem::ERouteTransportMode. |
|
inlinenoexcept |
Get all persistent user roadblocks.
|
inline |
Get data transfer statistics for this service.
|
delete |
Default copy assignment.
| traffic | The traffic object to copy |
|
default |
Default move assignment noexcept is deduced.
| traffic | The traffic object to move |
|
inlinenoexcept |
Get access to the traffic service preferences.
|
inlinenoexcept |
Remove all user persistent roadblock.
|
inlinenoexcept |
Remove an user persistent roadblock identified by a reference coordinate ( for path impact zone type ).
| [in] | coords | The roadblock start coordinates |
coords must be equal with first coordinate in coords list provided when the roadblock was defined
|
inlinenoexcept |
Remove an user persistent roadblock identified by id.
| [in] | id | The roadblock id as it was provided in addPersistentRoadblock function |
|
inlinenoexcept |
Remove an user roadblock ( persistent or non-persistent ).
| [in] | ev | The roadblock to remove |
|
inlinenoexcept |
Set persistent roadblocks listener.
| [in] | listener | The listener to set |