### Interface

# Shumate Location

since: 1.0

#### Description [src]

    interface Shumate.Location : GObject.Object

An interface common to objects having latitude and longitude

By implementing `ShumateLocation` the object declares that it has latitude and longitude and can be used to specify location on the map.

Available since: 1.0

#### Prerequisite

In order to implement Location, your type must inherit from`GObject`.

#### Implementations

- ShumateCoordinate
- ShumateMarker
- ShumatePoint
- ShumateSymbolEvent
- ShumateViewport

#### Instance methods

###### shumate_location_distance

Calculates the distance in meters between two locations.

since: 1.2

###### shumate_location_get_latitude

Gets the latitude coordinate in degrees.

since: 1.0

###### shumate_location_get_longitude

Gets the longitude coordinate in degrees.

since: 1.0

###### shumate_location_set_location

Sets the coordinates of the location.

since: 1.0

#### Properties

###### Shumate.Location:latitude

The latitude coordonate in degrees.

since: 1.0

###### Shumate.Location:longitude

The longitude coordonate in degrees.

since: 1.0

#### Interface structure

    struct ShumateLocationInterface {
      double (* get_latitude) (
        ShumateLocation* location
      );
      double (* get_longitude) (
        ShumateLocation* location
      );
      void (* set_location) (
        ShumateLocation* location,
        double latitude,
        double longitude
      );

    }

An interface common to objects having latitude and longitude.

###### Interface members

`get_latitude`

    double (* get_latitude) (
        ShumateLocation* location
      )

| Virtual function for obtaining latitude.

`get_longitude`

    double (* get_longitude) (
        ShumateLocation* location
      )

| Virtual function for obtaining longitude.

`set_location`

    void (* set_location) (
        ShumateLocation* location,
        double latitude,
        double longitude
      )

| Virtual function for setting position.

#### Virtual methods

###### Shumate.Location.get_latitude

Gets the latitude coordinate in degrees.

since: 1.0

###### Shumate.Location.get_longitude

Gets the longitude coordinate in degrees.

since: 1.0

###### Shumate.Location.set_location

Sets the coordinates of the location.

since: 1.0