Enums

Details

class GeocodeGlib.Error(value)

Bases: GObject.GEnum

Error codes returned by geocode-glib functions.

classmethod quark()
Returns:

a #GQuark.

Return type:

int

Gets the geocode-glib error quark.

PARSE = 0

An error occured parsing the response from the web service.

NOT_SUPPORTED = 1

The request made was not supported.

NO_MATCHES = 2

The requests made didn’t have any matches.

INVALID_ARGUMENTS = 3

The request made contained invalid arguments.

INTERNAL_SERVER = 4

The server encountered an (possibly unrecoverable) internal error.

class GeocodeGlib.LocationCRS(value)

Bases: GObject.GEnum

Coordinate Reference System Identification for a location.

WGS84 = 0

CRS is World Geodetic System, standard for Earth.

class GeocodeGlib.LocationURIScheme(value)

Bases: GObject.GEnum

The URI scheme for this location.

GEO = 0

The ‘geo’ URI scheme, RFC 5870

class GeocodeGlib.PlaceOsmType(value)

Bases: GObject.GEnum

Osm type of the place.

UNKNOWN = 0

Unknown type

NODE = 1

Defines a point in space.

RELATION = 2

Used to explain how other elements work together.

WAY = 3

Defines a linear feature and area boundaries.

class GeocodeGlib.PlaceType(value)

Bases: GObject.GEnum

Type of the place.

UNKNOWN = 0

Type is unknown for this place.

BUILDING = 1

A building or house.

AIRPORT = 10

An airport.

RAILWAY_STATION = 11

A railway station.

BUS_STOP = 12

A bus stop.

MOTORWAY = 13

A high capacity highways designed to safely carry fast motor traffic.

DRAINAGE = 14

A water feature such as a river, canal, lake, bay or ocean.

LAND_FEATURE = 15

A land feature such as a park, mountain or beach.

MISCELLANEOUS = 16

A uncategorized place.

SUPERNAME = 17

An area covering multiple countries.

POINT_OF_INTEREST = 18

A point of interest such as a school, hospital or tourist attraction.

SUBURB = 19

A subdivision of a town such as a suburb or neighborhood.

STREET = 2

A street.

COLLOQUIAL = 20

A place known by a colloquial name.

ZONE = 21

An area known within a specific context such as MSA or area code.

HISTORICAL_STATE = 22

A historical primary administrative area within a country.

HISTORICAL_COUNTY = 23

A historical secondary administrative area within a country.

CONTINENT = 24

One of the major land masses on the Earth.

TIME_ZONE = 25

An area defined by the Olson standard (tz database).

ESTATE = 26

A housing development or subdivision known by name.

HISTORICAL_TOWN = 27

A historical populated settlement that is no longer known by its original name.

OCEAN = 28

One of the five major bodies of water on the Earth.

SEA = 29

An area of open water smaller than an ocean.

TOWN = 3

A populated settlement such as a city, town, village.

SCHOOL = 30

Institution designed for learning under the supervision of teachers.

PLACE_OF_WORSHIP = 31

All places of worship independently of the religion or denomination.

RESTAURANT = 32

Generally formal place with sit-down facilities selling full meals served by waiters.

BAR = 33

A bar or pub.

LIGHT_RAIL_STATION = 34

A light rail station or tram stop.

STATE = 4

One of the primary administrative areas within a country.

COUNTY = 5

One of the secondary administrative areas within a country.

LOCAL_ADMINISTRATIVE_AREA = 6

One of the tertiary administrative areas within a country.

POSTAL_CODE = 7

A partial or full postal code.

COUNTRY = 8

One of the countries or dependent territories defined by the ISO 3166-1 standard.

ISLAND = 9

An island.