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
27
29typedef struct _OGRGeocodingSessionHS *OGRGeocodingSessionH;
30
31OGRGeocodingSessionH CPL_DLL OGRGeocodeCreateSession(char **papszOptions);
32
34
36 const char *pszQuery, char **papszStructuredQuery,
37 char **papszOptions);
38
39OGRLayerH CPL_DLL OGRGeocodeReverse(OGRGeocodingSessionH hSession, double dfLon,
40 double dfLat, char **papszOptions);
41
42void CPL_DLL OGRGeocodeFreeResult(OGRLayerH hLayer);
43
45
46#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:283
#define CPL_C_START
Macro to start a block of C symbols.
Definition cpl_port.h:279
C API and defines for OGRFeature, OGRGeometry, and OGRDataSource related classes.
void * OGRLayerH
Opaque type for a layer (OGRLayer)
Definition ogr_api.h:676
void OGRGeocodeFreeResult(OGRLayerH hLayer)
Destroys the result of a geocoding request.
Definition ogr_geocoding.cpp:1596
OGRLayerH OGRGeocode(OGRGeocodingSessionH hSession, const char *pszQuery, char **papszStructuredQuery, char **papszOptions)
Runs a geocoding request.
Definition ogr_geocoding.cpp:1408
void OGRGeocodeDestroySession(OGRGeocodingSessionH hSession)
Destroys a session handle for geocoding requests.
Definition ogr_geocoding.cpp:370
OGRLayerH OGRGeocodeReverse(OGRGeocodingSessionH hSession, double dfLon, double dfLat, char **papszOptions)
Runs a reverse geocoding request.
Definition ogr_geocoding.cpp:1555
OGRGeocodingSessionH OGRGeocodeCreateSession(char **papszOptions)
Creates a session handle for geocoding requests.
Definition ogr_geocoding.cpp:236
struct _OGRGeocodingSessionHS * OGRGeocodingSessionH
Opaque type for a geocoding session.
Definition ogr_geocoding.h:29