GeocodeGlib.Place¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Local administrative area |
||
r/w |
A named area such as a campus or neighborhood |
||
r/w |
The bounding box for the place |
||
r/w |
A specific building on a street or in an area |
||
r/w |
Continent |
||
r/w |
Country |
||
r/w |
ISO Country Code |
||
r/w |
County |
||
r |
An icon representing the the place |
||
r/w |
Location Info |
||
r/w |
Name |
||
r/w |
The OpenStreetMap ID of the place |
||
r/w |
The OpenStreetMap type of the place |
||
r/w/co |
Place Type |
||
r/w |
Postal Code |
||
r/w |
State |
||
r/w |
Street name |
||
r/w |
Street Address |
||
r/w |
Town |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GeocodeGlib.Place(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GeocodeGlib.Place
structure are private and should never be accessed directly.- classmethod new(name, place_type)¶
- Parameters:
name (
str
) – the name of placeplace_type (
GeocodeGlib.PlaceType
) – the type of place
- Returns:
a new
GeocodeGlib.Place
object. UseGObject.Object.unref
() when done.- Return type:
Creates a new
GeocodeGlib.Place
object.
- classmethod new_with_location(name, place_type, location)¶
- Parameters:
name (
str
) – the name of placeplace_type (
GeocodeGlib.PlaceType
) – the type of placelocation (
GeocodeGlib.Location
) – the location info for the place
- Returns:
a new
GeocodeGlib.Place
object. UseGObject.Object.unref
() when done.- Return type:
Creates a new
GeocodeGlib.Place
object.
- equal(b)¶
- Parameters:
b (
GeocodeGlib.Place
) – another place- Returns:
- Return type:
Compare two
GeocodeGlib.Place
instances for equality. This compares all fields and only returnsTrue
if the instances are exactly equal. For example, if both places have the sameGeocodeGlib.Place
:location
, but place b has itsGeocodeGlib.Place
:continent
property set and place self does not,False
will be returned.Both instances must be non-
None
.New in version 3.23.1.
- get_administrative_area()¶
- Returns:
The local administrative area of the self.
- Return type:
Gets the local administrative area of the self.
- get_bounding_box()¶
- Returns:
A
GeocodeGlib.BoundingBox
, orNone
if boundaries are unknown.- Return type:
Gets the bounding box for the place self.
- get_continent()¶
- Returns:
The continent of the self.
- Return type:
Gets the continent of the self.
- get_country_code()¶
- Returns:
The ISO-3166 country code of the self, in upper case.
- Return type:
Gets the ISO-3166 country code of the self.
- get_location()¶
- Returns:
The associated location object.
- Return type:
Gets the associated location object.
- get_osm_id()¶
- Returns:
The osm ID of the self.
- Return type:
Gets the OpenStreetMap ID of the self.
- get_osm_type()¶
- Returns:
The osm type of the self.
- Return type:
Gets the OpenStreetMap type of the self.
- get_place_type()¶
- Returns:
The type of the self.
- Return type:
Gets the type of the self.
- get_postal_code()¶
- Returns:
The postal code of the self.
- Return type:
Gets the postal code of the self.
- get_street_address()¶
- Returns:
The street address of the self.
- Return type:
Gets the street address of the self.
- set_administrative_area(admin_area)¶
- Parameters:
admin_area (
str
) – an administrative area for the place
Sets the local administrative area of self to admin_area.
- set_bounding_box(bbox)¶
- Parameters:
bbox (
GeocodeGlib.BoundingBox
) – AGeocodeGlib.BoundingBox
for the place
Sets the
GeocodeGlib.BoundingBox
for the place self.
- set_building(building)¶
- Parameters:
building (
str
) – a building
Sets the building of self to building.
- set_continent(continent)¶
- Parameters:
continent (
str
) – a continent for the place
Sets the continent of self to continent.
- set_country(country)¶
- Parameters:
country (
str
) – a country for the place
Sets the country of self to country.
- set_country_code(country_code)¶
- Parameters:
country_code (
str
) – an ISO country code for the place
Sets the ISO country code of self to country_code.
- set_county(county)¶
- Parameters:
county (
str
) – a county for the place
Sets the county of self to county.
- set_location(location)¶
- Parameters:
location (
GeocodeGlib.Location
) – A location
Sets the location of self to location.
- set_postal_code(postal_code)¶
- Parameters:
postal_code (
str
) – a postal code for the place
Sets the postal code of self to postal_code.
Property Details¶
- GeocodeGlib.Place.props.administrative_area¶
-
The local administrative area.
- GeocodeGlib.Place.props.area¶
-
A named area such as a campus or neighborhood.
- GeocodeGlib.Place.props.bounding_box¶
- Name:
bounding-box
- Type:
- Default Value:
- Flags:
The bounding box for the place.
- GeocodeGlib.Place.props.building¶
-
A specific building on a street or in an area.
- GeocodeGlib.Place.props.continent¶
-
The continent.
- GeocodeGlib.Place.props.country¶
-
The country.
- GeocodeGlib.Place.props.country_code¶
-
The country code.
- GeocodeGlib.Place.props.county¶
-
The county.
- GeocodeGlib.Place.props.location¶
- Name:
location
- Type:
- Default Value:
- Flags:
The location info for the place.
- GeocodeGlib.Place.props.name¶
-
The name of the place.
- GeocodeGlib.Place.props.osm_id¶
-
The OpenStreetMap id of the place.
- GeocodeGlib.Place.props.osm_type¶
- Name:
osm-type
- Type:
- Default Value:
- Flags:
The OpenStreetMap type of the place.
- GeocodeGlib.Place.props.place_type¶
- Name:
place-type
- Type:
- Default Value:
- Flags:
The type of the place.
- GeocodeGlib.Place.props.postal_code¶
-
The postal code.
- GeocodeGlib.Place.props.state¶
-
The state.
- GeocodeGlib.Place.props.street¶
-
The street name.
- GeocodeGlib.Place.props.street_address¶
-
The street address.