31 #ifndef DW_MAPS_MAP_PROVIDER_H_ 32 #define DW_MAPS_MAP_PROVIDER_H_ 110 dwMapProviderHandle_t* providerHandle,
111 const char* mapCacheFile,
131 dwMapProviderHandle_t* providerHandle,
132 const char* mapDirectory,
155 dwMapProviderHandle_t providerHandle);
176 dwConstMapsProviderHandle_t providerHandle);
200 dwConstMapsProviderHandle_t providerHandle);
235 dwMapsRequestToken* requestToken,
238 dwMapProviderHandle_t providerHandle);
270 dwMapsRequestToken* requestToken,
273 dwMapProviderHandle_t providerHandle);
288 dwMapProviderHandle_t providerHandle);
305 dwMapsRequestToken requestToken,
306 dwMapProviderHandle_t providerHandle);
314 #endif // DW_MAPS_MAP_PROVIDER_H_ DW_API_PUBLIC dwStatus dwMapProvider_requestMapForBounds(dwMapsRequestToken *requestToken, const dwMapsBounds *bounds, const dwMapsContentLayerBuffer *layers, dwMapProviderHandle_t providerHandle)
Requests a map covering a specified geographic bounds.
size_t waypointCount
Number of waypoints in the planned route.
struct dwMapsContentLayerObject const * dwConstMapsContentLayerHandle_t
Forward declaration of content layer handle.
DW_API_PUBLIC dwStatus dwMapProvider_initializeWithCacheFile(dwMapProviderHandle_t *providerHandle, const char *mapCacheFile, dwMapProviderParameters *params, dwContextHandle_t contextHandle)
Create a map provider backed by a map cache file in the local filesystem.
Geographic coordinate bounds.
DW_API_PUBLIC dwStatus dwMapProvider_requestMapForRoute(dwMapsRequestToken *requestToken, const dwMapsRoute *route, const dwMapsContentLayerBuffer *layers, dwMapProviderHandle_t providerHandle)
Requests a map covering a planned route.
Parameters for the provider determining preallocation.
size_t maxSize
maximum number of layers that fit into the buffer
NVIDIA DriveWorks API: Maps
size_t size
current number of layers in the buffer
dwStatus
Status definition.
DW_API_PUBLIC dwStatus dwMapProvider_initializeWithDirectory(dwMapProviderHandle_t *providerHandle, const char *mapDirectory, dwMapProviderParameters *params, dwContextHandle_t contextHandle)
Create a map provider backed by a map directory in the local filesystem.
Location point defined by WGS84 coordinates.
DW_API_PUBLIC dwStatus dwMapProvider_tryGetRequestedMap(dwConstMapHandle_t *mapHandle, dwMapsRequestToken requestToken, dwMapProviderHandle_t providerHandle)
Attempts to get a requested map with a request token.
DW_API_PUBLIC dwStatus dwMapProvider_getContentLayers(dwMapsContentLayerBuffer *layers, dwConstMapsProviderHandle_t providerHandle)
Get all available content layers from the map provider.
struct dwMapProviderObject * dwMapProviderHandle_t
size_t totalMapAllocationBytes
Total memory available for requests.
DW_API_PUBLIC dwStatus dwMapProvider_getCoverageBounds(dwMapsBounds *bounds, dwMapProviderHandle_t providerHandle)
Get the bounds of coverage for the map provider.
struct dwMapProviderObject const * dwConstMapsProviderHandle_t
uint64_t dwMapsRequestToken
Token for retrieval of requested maps from the provider.
struct dwContextObject * dwContextHandle_t
Context handle.
Caller-provided buffer for content layers.
dwConstMapsContentLayerHandle_t * buffer
pointer to layers array
struct dwMapObject const * dwConstMapHandle_t
Defines a planned route for an ordered sequence of waypoints.
DW_API_PUBLIC dwStatus dwMapProvider_getContentLayer(dwConstMapsContentLayerHandle_t *layer, const char *layerId, dwConstMapsProviderHandle_t providerHandle)
Get content layer by identifier from the map provider.
size_t numAllocatedMaps
Number of maps to allocate for requests.
DW_API_PUBLIC dwStatus dwMapProvider_releaseMap(dwConstMapHandle_t mapHandle, dwMapProviderHandle_t providerHandle)
Releases a requested map back to original map provider.
DW_API_PUBLIC dwStatus dwMapProvider_release(dwMapProviderHandle_t providerHandle)
Release map provider.
dwMapsGeoPoint * waypoints
Sequence of waypoints defining the planned route.