| Top |
| gchar * | administrative-area | Read / Write |
| gchar * | area | Read / Write |
| GeocodeBoundingBox * | bounding-box | Read / Write |
| gchar * | building | Read / Write |
| gchar * | continent | Read / Write |
| gchar * | country | Read / Write |
| gchar * | country-code | Read / Write |
| gchar * | county | Read / Write |
| GIcon * | icon | Read |
| GeocodeLocation * | location | Read / Write |
| gchar * | name | Read / Write |
| gchar * | osm-id | Read / Write |
| GeocodePlaceType | place-type | Read / Write / Construct Only |
| gchar * | postal-code | Read / Write |
| gchar * | state | Read / Write |
| gchar * | street | Read / Write |
| gchar * | street-address | Read / Write |
| gchar * | town | Read / Write |
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.
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
.
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. |
“administrative-area” property“administrative-area” gchar *
The local administrative area.
Flags: Read / Write
Default value: NULL
“area” property“area” gchar *
A named area such as a campus or neighborhood.
Flags: Read / Write
Default value: NULL
“bounding-box” property“bounding-box” GeocodeBoundingBox *
The bounding box for the place.
Flags: Read / Write
“building” property“building” gchar *
A specific building on a street or in an area.
Flags: Read / Write
Default value: NULL
“country-code” property“country-code” gchar *
The country code.
Flags: Read / Write
Default value: NULL
“location” property“location” GeocodeLocation *
The location info for the place.
Flags: Read / Write
“osm-id” property“osm-id” gchar *
The OpenStreetMap id of the place.
Flags: Read / Write
Default value: NULL
“place-type” property“place-type” GeocodePlaceType
The type of the place.
Flags: Read / Write / Construct Only
Default value: GEOCODE_PLACE_TYPE_UNKNOWN
“postal-code” property“postal-code” gchar *
The postal code.
Flags: Read / Write
Default value: NULL
“street-address” property“street-address” gchar *
The street address.
Flags: Read / Write
Default value: NULL