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
24
26
28typedef struct _OGRGeocodingSessionHS *OGRGeocodingSessionH;
29
30OGRGeocodingSessionH CPL_DLL OGRGeocodeCreateSession(CSLConstList papszOptions);
31
32void CPL_DLL OGRGeocodeDestroySession(OGRGeocodingSessionH hSession);
33
34OGRLayerH CPL_DLL OGRGeocode(OGRGeocodingSessionH hSession,
35 const char *pszQuery, char **papszStructuredQuery,
36 CSLConstList papszOptions);
37
38OGRLayerH CPL_DLL OGRGeocodeReverse(OGRGeocodingSessionH hSession, double dfLon,
39 double dfLat, CSLConstList 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:279
#define CPL_C_START
Macro to start a block of C symbols.
Definition cpl_port.h:275
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition cpl_port.h:1252
void * OGRLayerH
Opaque type for a layer (OGRLayer).
Definition gdal_fwd.h:157
C API and defines for OGRFeature, OGRGeometry, and OGRDataSource related classes.
struct _OGRGeocodingSessionHS * OGRGeocodingSessionH
Opaque type for a geocoding session.
Definition ogr_geocoding.h:28