Top |
Functions
Properties
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 |
GeocodePlaceOsmType | osm-type | 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 |
Types and Values
struct | GeocodePlace |
struct | GeocodePlaceClass |
enum | GeocodePlaceType |
enum | GeocodePlaceOsmType |
Description
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.
Functions
geocode_place_new ()
GeocodePlace * geocode_place_new (const char *name
,GeocodePlaceType place_type
);
Creates a new GeocodePlace object.
geocode_place_new_with_location ()
GeocodePlace * geocode_place_new_with_location (const char *name
,GeocodePlaceType place_type
,GeocodeLocation *location
);
Creates a new GeocodePlace object.
geocode_place_set_name ()
void geocode_place_set_name (GeocodePlace *place
,const char *name
);
Sets the name of the place
to name
.
geocode_place_get_name ()
const char *
geocode_place_get_name (GeocodePlace *place
);
Gets the name of the place
.
geocode_place_get_place_type ()
GeocodePlaceType
geocode_place_get_place_type (GeocodePlace *place
);
Gets the type of the place
.
geocode_place_get_bounding_box ()
GeocodeBoundingBox *
geocode_place_get_bounding_box (GeocodePlace *place
);
Gets the bounding box for the place place
.
geocode_place_set_bounding_box ()
void geocode_place_set_bounding_box (GeocodePlace *place
,GeocodeBoundingBox *bbox
);
Sets the GeocodeBoundingBox for the place place
.
geocode_place_set_location ()
void geocode_place_set_location (GeocodePlace *place
,GeocodeLocation *location
);
Sets the location of place
to location
.
geocode_place_get_location ()
GeocodeLocation *
geocode_place_get_location (GeocodePlace *place
);
Gets the associated location object.
geocode_place_set_street_address ()
void geocode_place_set_street_address (GeocodePlace *place
,const char *street_address
);
Sets the street address of place
to street_address
.
geocode_place_get_street_address ()
const char *
geocode_place_get_street_address (GeocodePlace *place
);
Gets the street address of the place
.
geocode_place_set_street ()
void geocode_place_set_street (GeocodePlace *place
,const char *street
);
Sets the street of place
to street
.
geocode_place_get_street ()
const char *
geocode_place_get_street (GeocodePlace *place
);
Gets the street of the place
.
geocode_place_set_building ()
void geocode_place_set_building (GeocodePlace *place
,const char *building
);
Sets the building of place
to building
.
geocode_place_get_building ()
const char *
geocode_place_get_building (GeocodePlace *place
);
Gets the building of the place
.
geocode_place_set_postal_code ()
void geocode_place_set_postal_code (GeocodePlace *place
,const char *postal_code
);
Sets the postal code of place
to postal_code
.
geocode_place_get_postal_code ()
const char *
geocode_place_get_postal_code (GeocodePlace *place
);
Gets the postal code of the place
.
geocode_place_set_area ()
void geocode_place_set_area (GeocodePlace *place
,const char *area
);
Sets the area of place
to area
.
geocode_place_get_area ()
const char *
geocode_place_get_area (GeocodePlace *place
);
Gets the area of the place
.
geocode_place_set_town ()
void geocode_place_set_town (GeocodePlace *place
,const char *town
);
Sets the town of place
to town
.
geocode_place_get_town ()
const char *
geocode_place_get_town (GeocodePlace *place
);
Gets the town of the place
.
geocode_place_set_county ()
void geocode_place_set_county (GeocodePlace *place
,const char *county
);
Sets the county of place
to county
.
geocode_place_get_county ()
const char *
geocode_place_get_county (GeocodePlace *place
);
Gets the county of the place
.
geocode_place_set_state ()
void geocode_place_set_state (GeocodePlace *place
,const char *state
);
Sets the state of place
to state
.
geocode_place_get_state ()
const char *
geocode_place_get_state (GeocodePlace *place
);
Gets the state of the place
.
geocode_place_set_administrative_area ()
void geocode_place_set_administrative_area (GeocodePlace *place
,const char *admin_area
);
Sets the local administrative area of place
to admin_area
.
geocode_place_get_administrative_area ()
const char *
geocode_place_get_administrative_area (GeocodePlace *place
);
Gets the local administrative area of the place
.
geocode_place_set_country_code ()
void geocode_place_set_country_code (GeocodePlace *place
,const char *country_code
);
Sets the ISO country code of place
to country_code
.
geocode_place_get_country_code ()
const char *
geocode_place_get_country_code (GeocodePlace *place
);
Gets the ISO-3166 country code of the place
.
geocode_place_set_country ()
void geocode_place_set_country (GeocodePlace *place
,const char *country
);
Sets the country of place
to country
.
geocode_place_get_country ()
const char *
geocode_place_get_country (GeocodePlace *place
);
Gets the country of the place
.
geocode_place_set_continent ()
void geocode_place_set_continent (GeocodePlace *place
,const char *continent
);
Sets the continent of place
to continent
.
geocode_place_get_continent ()
const char *
geocode_place_get_continent (GeocodePlace *place
);
Gets the continent of the place
.
geocode_place_get_icon ()
GIcon *
geocode_place_get_icon (GeocodePlace *place
);
Gets the GIcon representing the place
.
geocode_place_get_osm_id ()
const char *
geocode_place_get_osm_id (GeocodePlace *place
);
Gets the OpenStreetMap ID of the place
.
geocode_place_get_osm_type ()
GeocodePlaceOsmType
geocode_place_get_osm_type (GeocodePlace *place
);
Gets the OpenStreetMap type of the place
.
Types and Values
struct GeocodePlace
struct GeocodePlace;
All the fields in the GeocodePlace structure are private and should never be accessed directly.
struct GeocodePlaceClass
struct GeocodePlaceClass { };
All the fields in the GeocodePlaceClass structure are private and should never be accessed directly.
enum GeocodePlaceType
Type of the place.
Members
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. |
Property Details
The “administrative-area”
property
“administrative-area” gchar *
The local administrative area.
Flags: Read / Write
Default value: NULL
The “area”
property
“area” gchar *
A named area such as a campus or neighborhood.
Flags: Read / Write
Default value: NULL
The “bounding-box”
property
“bounding-box” GeocodeBoundingBox *
The bounding box for the place.
Flags: Read / Write
The “building”
property
“building” gchar *
A specific building on a street or in an area.
Flags: Read / Write
Default value: NULL
The “country-code”
property
“country-code” gchar *
The country code.
Flags: Read / Write
Default value: NULL
The “location”
property
“location” GeocodeLocation *
The location info for the place.
Flags: Read / Write
The “osm-id”
property
“osm-id” gchar *
The OpenStreetMap id of the place.
Flags: Read / Write
Default value: NULL
The “osm-type”
property
“osm-type” GeocodePlaceOsmType
The OpenStreetMap type of the place.
Flags: Read / Write
Default value: GEOCODE_PLACE_OSM_TYPE_UNKNOWN
The “place-type”
property
“place-type” GeocodePlaceType
The type of the place.
Flags: Read / Write / Construct Only
Default value: GEOCODE_PLACE_TYPE_UNKNOWN
The “postal-code”
property
“postal-code” gchar *
The postal code.
Flags: Read / Write
Default value: NULL
The “street-address”
property
“street-address” gchar *
The street address.
Flags: Read / Write
Default value: NULL