Location
Object Hierarchy:
Description:
All the fields in the Location structure are private and should never be accessed directly.
Namespace: Geocode
Package: geocode-glib-1.0
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:
- public Location (double latitude, double longitude, double accuracy = UNKNOWN)
Creates a new Location object.
- public Location.with_description (double latitude, double longitude, double accuracy, string description)
Creates a new Location object.
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