GeocodeGlib.Nominatim¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Base URL of the Nominatim service |
||
r/w/co |
E-mail address of the maintainer |
||
r/w |
User-Agent string to send with HTTP(S) requests |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GeocodeGlib.Nominatim(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GeocodeGlib.Nominatim
structure are private and should never be accessed directly.New in version 3.23.1.
- classmethod get_gnome()¶
- Returns:
a new
GeocodeGlib.Nominatim
. UseGObject.Object.unref
() when done.- Return type:
Gets a reference to the default Nominatim server on nominatim.gnome.org.
This function is thread-safe.
New in version 3.23.1.
- classmethod new(base_url, maintainer_email_address)¶
- Parameters:
- Returns:
a new
GeocodeGlib.Nominatim
. UseGObject.Object.unref
() when done.- Return type:
Creates a new backend implementation for an online Nominatim server. See the documentation for
GeocodeGlib.Nominatim
:base-url
andGeocodeGlib.Nominatim
:maintainer-email-address
.New in version 3.23.1.
- do_query(uri, cancellable) virtual¶
- Parameters:
uri (
str
) –cancellable (
Gio.Cancellable
orNone
) –
- Return type:
- do_query_async(uri, cancellable, callback, *user_data) virtual¶
- Parameters:
uri (
str
) –cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- do_query_finish(res) virtual¶
- Parameters:
res (
Gio.AsyncResult
) –- Return type:
Property Details¶
- GeocodeGlib.Nominatim.props.base_url¶
- Name:
base-url
- Type:
- Default Value:
- Flags:
The base URL of the Nominatim service, for example
https://nominatim.example.org
.New in version 3.23.1.
- GeocodeGlib.Nominatim.props.maintainer_email_address¶
- Name:
maintainer-email-address
- Type:
- Default Value:
- Flags:
E-mail address of the maintainer of the software making the geocoding requests to the Nominatim server. This is used to contact them in the event of a problem with their usage. See the Nominatim API.
New in version 3.23.1.
- GeocodeGlib.Nominatim.props.user_agent¶
-
User-Agent string to send with HTTP(S) requests, or
None
to use the default user agent, which is derived from the geocode-glib version andGio.Application
:id
, for example:geocode-glib/3.20 (MyAppId)
.As per the Nominatim usage policy, it should be set to a string which identifies the application which is using geocode-glib, and must be a valid user agent string.
New in version 3.23.1.