GDAL

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