GeocodeGlib.MockBackendQuery

Fields

Name

Type

Access

Description

error

GLib.Error

r/w

error returned by the query, or None if a result set was returned

is_forward

bool

r/w

True if this represents a call to GeocodeGlib.Forward.search(); False if it represents a call to GeocodeGlib.Reverse.resolve()

params

{object: object}

r/w

query parameters, in the format accepted by GeocodeGlib.Forward.search() (if is_forward is True) or GeocodeGlib.Reverse.resolve() (otherwise)

results

[GeocodeGlib.Place]

r/w

results returned by the query, or None if an error was returned

Methods

None

Details

class GeocodeGlib.MockBackendQuery

The details of a forward or reverse query which was performed on a GeocodeGlib.MockBackend by application code. This includes the input (params, is_forward), and the output which was returned (results or error).

Empty result sets are represented by the GeocodeGlib.Error.NO_MATCHES error (for forward queries) or the GeocodeGlib.Error.NOT_SUPPORTED error (for reverse queries), rather than an empty results list.

New in version 3.23.1.