## ChamplainLocation ChamplainLocation — An interface common to objects having latitude and longitude |

## Synopsis

                        ChamplainLocation;
    struct              ChamplainLocationIface;
    void                champlain_location_set_location     (ChamplainLocation *location,
                                                             gdouble latitude,
                                                             gdouble longitude);
    gdouble             champlain_location_get_latitude     (ChamplainLocation *location);
    gdouble             champlain_location_get_longitude    (ChamplainLocation *location);

## Object Hierarchy

      GInterface
       +----ChamplainLocation

## Prerequisites

ChamplainLocation requires GObject.

## Known Implementations

ChamplainLocation is implemented by ChamplainCoordinate, ChamplainCustomMarker, ChamplainLabel, ChamplainMarker and ChamplainPoint.

## Properties

      "latitude"                 gdouble               : Read / Write
      "longitude"                gdouble               : Read / Write

## Description

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

## Details

### ChamplainLocation

    typedef struct _ChamplainLocation ChamplainLocation;

An interface common to objects having latitude and longitude.

### struct ChamplainLocationIface

    struct ChamplainLocationIface {
      gdouble (*get_latitude)(ChamplainLocation *location);
      gdouble (*get_longitude)(ChamplainLocation *location);
      void (*set_location)(ChamplainLocation *location,
          gdouble latitude,
          gdouble longitude);
    };

An interface common to objects having latitude and longitude.

`get_latitude` () | virtual function for obtaining latitude.
`get_longitude` () | virtual function for obtaining longitude.
`set_location` () | virtual function for setting position.

### champlain_location_set_location ()

    void                champlain_location_set_location     (ChamplainLocation *location,
                                                             gdouble latitude,
                                                             gdouble longitude);

Sets the coordinates of the location

`location` : | a ChamplainLocation
`latitude` : | the latitude
`longitude` : | the longitude

Since 0.10

### champlain_location_get_latitude ()

    gdouble             champlain_location_get_latitude     (ChamplainLocation *location);

Gets the latitude coordinate.

`location` : | a ChamplainLocation
Returns : | the latitude coordinate.

Since 0.10

### champlain_location_get_longitude ()

    gdouble             champlain_location_get_longitude    (ChamplainLocation *location);

Gets the longitude coordinate.

`location` : | a ChamplainLocation
Returns : | the longitude coordinate.

Since 0.10

## Property Details

### The `"latitude"` property

      "latitude"                 gdouble               : Read / Write

The latitude coordonate

Allowed values: [-90,90]

Default value: 0

Since 0.10

### The `"longitude"` property

      "longitude"                gdouble               : Read / Write

The longitude coordonate

Allowed values: [-180,180]

Default value: 0

Since 0.10