Top | ![]() |
![]() |
![]() |
![]() |
char * | administrative-area | Read / Write |
char * | area | Read / Write |
GeocodeBoundingBox * | bounding-box | Read / Write |
char * | building | Read / Write |
char * | continent | Read / Write |
char * | country | Read / Write |
char * | country-code | Read / Write |
char * | county | Read / Write |
GIcon * | icon | Read |
GeocodeLocation * | location | Read / Write |
char * | name | Read / Write |
char * | osm-id | Read / Write |
GeocodePlaceOsmType | osm-type | Read / Write |
GeocodePlaceType | place-type | Read / Write / Construct Only |
char * | postal-code | Read / Write |
char * | state | Read / Write |
char * | street | Read / Write |
char * | street-address | Read / Write |
char * | town | Read / Write |
struct | GeocodePlace |
struct | GeocodePlaceClass |
enum | GeocodePlaceType |
enum | GeocodePlaceOsmType |
The GeocodePlace instance represents a place on earth. While GeocodeLocation represents a point on the planet, GeocodePlace represents places, e.g street, town, village, county, country or points of interest (POI) etc.
GeocodePlace * geocode_place_new (const char *name
,GeocodePlaceType place_type
);
Creates a new GeocodePlace object.
GeocodePlace * geocode_place_new_with_location (const char *name
,GeocodePlaceType place_type
,GeocodeLocation *location
);
Creates a new GeocodePlace object.
gboolean geocode_place_equal (GeocodePlace *a
,GeocodePlace *b
);
Compare two GeocodePlace instances for equality. This compares all fields
and only returns TRUE
if the instances are exactly equal. For example, if
both places have the same “location”, but place b
has its
“continent” property set and place a
does not, FALSE
will be
returned.
Both instances must be non-NULL
.
Since: 3.23.1
void geocode_place_set_name (GeocodePlace *place
,const char *name
);
Sets the name of the place
to name
.
const char *
geocode_place_get_name (GeocodePlace *place
);
Gets the name of the place
.
GeocodePlaceType
geocode_place_get_place_type (GeocodePlace *place
);
Gets the type of the place
.
GeocodeBoundingBox *
geocode_place_get_bounding_box (GeocodePlace *place
);
Gets the bounding box for the place place
.
void geocode_place_set_bounding_box (GeocodePlace *place
,GeocodeBoundingBox *bbox
);
Sets the GeocodeBoundingBox for the place place
.
void geocode_place_set_location (GeocodePlace *place
,GeocodeLocation *location
);
Sets the location of place
to location
.
GeocodeLocation *
geocode_place_get_location (GeocodePlace *place
);
Gets the associated location object.
void geocode_place_set_street_address (GeocodePlace *place
,const char *street_address
);
Sets the street address of place
to street_address
.
const char *
geocode_place_get_street_address (GeocodePlace *place
);
Gets the street address of the place
.
void geocode_place_set_street (GeocodePlace *place
,const char *street
);
Sets the street of place
to street
.
const char *
geocode_place_get_street (GeocodePlace *place
);
Gets the street of the place
.
void geocode_place_set_building (GeocodePlace *place
,const char *building
);
Sets the building of place
to building
.
const char *
geocode_place_get_building (GeocodePlace *place
);
Gets the building of the place
.
void geocode_place_set_postal_code (GeocodePlace *place
,const char *postal_code
);
Sets the postal code of place
to postal_code
.
const char *
geocode_place_get_postal_code (GeocodePlace *place
);
Gets the postal code of the place
.
void geocode_place_set_area (GeocodePlace *place
,const char *area
);
Sets the area of place
to area
.
const char *
geocode_place_get_area (GeocodePlace *place
);
Gets the area of the place
.
void geocode_place_set_town (GeocodePlace *place
,const char *town
);
Sets the town of place
to town
.
const char *
geocode_place_get_town (GeocodePlace *place
);
Gets the town of the place
.
void geocode_place_set_county (GeocodePlace *place
,const char *county
);
Sets the county of place
to county
.
const char *
geocode_place_get_county (GeocodePlace *place
);
Gets the county of the place
.
void geocode_place_set_state (GeocodePlace *place
,const char *state
);
Sets the state of place
to state
.
const char *
geocode_place_get_state (GeocodePlace *place
);
Gets the state of the place
.
void geocode_place_set_administrative_area (GeocodePlace *place
,const char *admin_area
);
Sets the local administrative area of place
to admin_area
.
const char *
geocode_place_get_administrative_area (GeocodePlace *place
);
Gets the local administrative area of the place
.
void geocode_place_set_country_code (GeocodePlace *place
,const char *country_code
);
Sets the ISO country code of place
to country_code
.
const char *
geocode_place_get_country_code (GeocodePlace *place
);
Gets the ISO-3166 country code of the place
.
void geocode_place_set_country (GeocodePlace *place
,const char *country
);
Sets the country of place
to country
.
const char *
geocode_place_get_country (GeocodePlace *place
);
Gets the country of the place
.
void geocode_place_set_continent (GeocodePlace *place
,const char *continent
);
Sets the continent of place
to continent
.
const char *
geocode_place_get_continent (GeocodePlace *place
);
Gets the continent of the place
.
GIcon *
geocode_place_get_icon (GeocodePlace *place
);
Gets the GIcon representing the place
.
const char *
geocode_place_get_osm_id (GeocodePlace *place
);
Gets the OpenStreetMap ID of the place
.
GeocodePlaceOsmType
geocode_place_get_osm_type (GeocodePlace *place
);
Gets the OpenStreetMap type of the place
.
struct GeocodePlace;
All the fields in the GeocodePlace structure are private and should never be accessed directly.
struct GeocodePlaceClass { };
All the fields in the GeocodePlaceClass structure are private and should never be accessed directly.
Type of the place.
Type is unknown for this place. |
||
A building or house. |
||
A street. |
||
A populated settlement such as a city, town, village. |
||
One of the primary administrative areas within a country. |
||
One of the secondary administrative areas within a country. |
||
One of the tertiary administrative areas within a country. |
||
A partial or full postal code. |
||
One of the countries or dependent territories defined by the ISO 3166-1 standard. |
||
An island. |
||
An airport. |
||
A railway station. |
||
A bus stop. |
||
A high capacity highways designed to safely carry fast motor traffic. |
||
A water feature such as a river, canal, lake, bay or ocean. |
||
A land feature such as a park, mountain or beach. |
||
A uncategorized place. |
||
An area covering multiple countries. |
||
A point of interest such as a school, hospital or tourist attraction. |
||
A subdivision of a town such as a suburb or neighborhood. |
||
A place known by a colloquial name. |
||
An area known within a specific context such as MSA or area code. |
||
A historical primary administrative area within a country. |
||
A historical secondary administrative area within a country. |
||
One of the major land masses on the Earth. |
||
An area defined by the Olson standard (tz database). |
||
A housing development or subdivision known by name. |
||
A historical populated settlement that is no longer known by its original name. |
||
One of the five major bodies of water on the Earth. |
||
An area of open water smaller than an ocean. |
||
Institution designed for learning under the supervision of teachers. |
||
All places of worship independently of the religion or denomination. |
||
Generally formal place with sit-down facilities selling full meals served by waiters. |
||
A bar or pub. |
||
A light rail station or tram stop. |
“administrative-area”
property “administrative-area” char *
The local administrative area.
Owner: GeocodePlace
Flags: Read / Write
Default value: NULL
“area”
property “area” char *
A named area such as a campus or neighborhood.
Owner: GeocodePlace
Flags: Read / Write
Default value: NULL
“bounding-box”
property“bounding-box” GeocodeBoundingBox *
The bounding box for the place.
Owner: GeocodePlace
Flags: Read / Write
“building”
property “building” char *
A specific building on a street or in an area.
Owner: GeocodePlace
Flags: Read / Write
Default value: NULL
“continent”
property “continent” char *
The continent.
Owner: GeocodePlace
Flags: Read / Write
Default value: NULL
“country”
property “country” char *
The country.
Owner: GeocodePlace
Flags: Read / Write
Default value: NULL
“country-code”
property “country-code” char *
The country code.
Owner: GeocodePlace
Flags: Read / Write
Default value: NULL
“county”
property “county” char *
The county.
Owner: GeocodePlace
Flags: Read / Write
Default value: NULL
“icon”
property “icon” GIcon *
GIcon representing the GeocodePlace
.
Owner: GeocodePlace
Flags: Read
“location”
property“location” GeocodeLocation *
The location info for the place.
Owner: GeocodePlace
Flags: Read / Write
“name”
property “name” char *
The name of the place.
Owner: GeocodePlace
Flags: Read / Write
Default value: NULL
“osm-id”
property “osm-id” char *
The OpenStreetMap id of the place.
Owner: GeocodePlace
Flags: Read / Write
Default value: NULL
“osm-type”
property“osm-type” GeocodePlaceOsmType
The OpenStreetMap type of the place.
Owner: GeocodePlace
Flags: Read / Write
Default value: GEOCODE_PLACE_OSM_TYPE_UNKNOWN
“place-type”
property“place-type” GeocodePlaceType
The type of the place.
Owner: GeocodePlace
Flags: Read / Write / Construct Only
Default value: GEOCODE_PLACE_TYPE_UNKNOWN
“postal-code”
property “postal-code” char *
The postal code.
Owner: GeocodePlace
Flags: Read / Write
Default value: NULL
“state”
property “state” char *
The state.
Owner: GeocodePlace
Flags: Read / Write
Default value: NULL
“street”
property “street” char *
The street name.
Owner: GeocodePlace
Flags: Read / Write
Default value: NULL
“street-address”
property “street-address” char *
The street address.
Owner: GeocodePlace
Flags: Read / Write
Default value: NULL