Skip to main content

everymap_providers_tomtom/
lib.rs

1pub mod client;
2pub mod domain;
3mod error_mapping;
4pub mod ext;
5
6pub use client::TomTomClient;
7
8// Extension traits
9pub use ext::{TomTomGeocoderExt, TomTomTrafficExt};
10
11// Shared types
12pub use domain::geo::{TomTomBounds, TomTomLatLng};
13
14// Search (Geocoding API)
15pub use domain::search::{
16    TomTomAddress, TomTomBoundingBox, TomTomGeocoder, TomTomPosition, TomTomReverseGeocodeAddress,
17    TomTomReverseGeocodeBoundingBox, TomTomReverseGeocodeResult, TomTomSearchResponse,
18    TomTomSearchResult,
19};
20
21// Routing (Routing API)
22pub use domain::routing::{
23    TomTomRoute, TomTomRouteLeg, TomTomRoutePoint, TomTomRouteResponse, TomTomRouteSummary,
24    TomTomRouter,
25};
26
27// Traffic (Traffic API)
28pub use domain::traffic::{
29    TomTomFlowResponse, TomTomFlowSegmentData, TomTomIncident, TomTomIncidentGeometry,
30    TomTomIncidentsResponse, TomTomTraffic,
31};
32
33// Isoline (Routing API — reachable range)
34pub use domain::isoline::{TomTomIsoline, TomTomReachableRange, TomTomReachableRangeResponse};
35
36// Matching (Snap to Roads API)
37pub use domain::matching::{
38    TomTomDistances, TomTomProjectedGeometry, TomTomProjectedPoint, TomTomProjectedProperties,
39    TomTomRouteMatcher, TomTomSnapResponse,
40};
41
42// Tour (Waypoint Optimization API)
43pub use domain::tour::{
44    TomTomOptimizationResponse, TomTomOptimizationSummary, TomTomTourPlanner,
45    TomTomTourRouteSummary,
46};
47
48// Tiling (Map Display API)
49pub use domain::tiling::TomTomTileProvider;
50
51// Imaging (Map Display API — static image)
52pub use domain::imaging::TomTomMapImageProvider;
53
54// Unsupported domains
55pub use domain::unsupported::{TomTomAttributeProvider, TomTomPositioner};