GDAL
ogr_geocoding.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Project: OpenGIS Simple Features Reference Implementation
4 * Purpose: Client of geocoding service.
5 * Author: Even Rouault, <even dot rouault at spatialys.com>
6 *
7 ******************************************************************************
8 * Copyright (c) 2012, Even Rouault <even dot rouault at spatialys.com>
9 *
10 * SPDX-License-Identifier: MIT
11 ****************************************************************************/
12
13#ifndef OGR_GEOCODING_H_INCLUDED
14#define OGR_GEOCODING_H_INCLUDED
15
16#include "cpl_port.h"
17#include "ogr_api.h"
18
26
28typedef struct _OGRGeocodingSessionHS *OGRGeocodingSessionH;
29
30OGRGeocodingSessionH CPL_DLL OGRGeocodeCreateSession(char **papszOptions);
31
33
35 const char *pszQuery, char **papszStructuredQuery,
36 char **papszOptions);
37
38OGRLayerH CPL_DLL OGRGeocodeReverse(OGRGeocodingSessionH hSession, double dfLon,
39 double dfLat, char **papszOptions);
40
41void CPL_DLL OGRGeocodeFreeResult(OGRLayerH hLayer);
42
44
45#endif // OGR_GEOCODING_H_INCLUDED
Core portability definitions for CPL.
#define CPL_C_END
Macro to end a block of C symbols.
Definition cpl_port.h:289
#define CPL_C_START
Macro to start a block of C symbols.
Definition cpl_port.h:285
void * OGRLayerH
Opaque type for a layer (OGRLayer)
Definition gdal_fwd.h:154
C API and defines for OGRFeature, OGRGeometry, and OGRDataSource related classes.
void OGRGeocodeFreeResult(OGRLayerH hLayer)
Destroys the result of a geocoding request.
Definition ogr_geocoding.cpp:1597
OGRLayerH OGRGeocode(OGRGeocodingSessionH hSession, const char *pszQuery, char **papszStructuredQuery, char **papszOptions)
Runs a geocoding request.
Definition ogr_geocoding.cpp:1409
void OGRGeocodeDestroySession(OGRGeocodingSessionH hSession)
Destroys a session handle for geocoding requests.
Definition ogr_geocoding.cpp:371
OGRLayerH OGRGeocodeReverse(OGRGeocodingSessionH hSession, double dfLon, double dfLat, char **papszOptions)
Runs a reverse geocoding request.
Definition ogr_geocoding.cpp:1556
OGRGeocodingSessionH OGRGeocodeCreateSession(char **papszOptions)
Creates a session handle for geocoding requests.
Definition ogr_geocoding.cpp:237
struct _OGRGeocodingSessionHS * OGRGeocodingSessionH
Opaque type for a geocoding session.
Definition ogr_geocoding.h:28