Location
Object Hierarchy:
Description:
[ CCode ( type_id = "geocode_location_get_type ()" ) ]
public class Location : Object
All the fields in the Location structure are private and should never be accessed directly.
Content:
Properties:
- public double accuracy { get; set; }
The accuracy of this location in meters.
- public double altitude { get; set; }
The altitude of this location in meters.
- public LocationCRS crs { get; construct; }
The Coordinate Reference System Identification of this location.
- public string description { get; set; }
The description of this location.
- public double latitude { get; set; }
The latitude of this location in degrees.
- public double longitude { get; set; }
The longitude of this location in degrees.
- public uint64 timestamp { get; construct; }
A timestamp in seconds since
Epoch, giving when the location was resolved from an address.
Creation methods:
Methods:
- public bool equal (Location b)
Compare two Location instances for
equality.
- public double get_accuracy ()
Gets the accuracy (in meters) of location
this.
- public double get_altitude ()
Gets the altitude of location this.
- public LocationCRS get_crs ()
Gets the Coordinate Reference System Identification of location
this.
- public unowned string get_description ()
Gets the description of location this
.
- public double get_distance_from (Location locb)
Calculates the distance in km, along the curvature of the Earth,
between 2 locations.
- public double get_latitude ()
Gets the latitude of location this.
- public double get_longitude ()
Gets the longitude of location this.
- public uint64 get_timestamp ()
Gets the timestamp (in seconds since the Epoch) of location
this.
- public void set_description (string description)
Sets the description of this to
description
.
- public bool set_from_uri (string uri) throws Error
Initialize a Location object with the given
uri
.
- public string to_uri (LocationURIScheme scheme)
Creates a URI representing this in
the scheme specified in scheme
.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref