LpfLoc

LpfLoc — Location

Functions

const gchar * lpf_loc_get_name ()
double lpf_loc_get_lat ()
double lpf_loc_get_long ()
gpointer lpf_loc_get_opaque ()
void lpf_loc_set_opaque ()

Properties

gdouble lat Read / Write / Construct
gdouble long Read / Write / Construct
gchar * name Read / Write / Construct

Object Hierarchy

    GObject
    ╰── LpfLoc
        ╰── LpfStop

Description

A LpfLoc represents a location (e.g. a station)

Functions

lpf_loc_get_name ()

const gchar *
lpf_loc_get_name (LpfLoc *self);

Returns


lpf_loc_get_lat ()

double
lpf_loc_get_lat (LpfLoc *self);

Parameters

self

a LpfLoc

 

Returns

the locations latitude


lpf_loc_get_long ()

double
lpf_loc_get_long (LpfLoc *self);

Parameters

self

a LpfLoc

 

Returns

the locations longitude


lpf_loc_get_opaque ()

gpointer
lpf_loc_get_opaque (LpfLoc *self);

Get the opaque data stored by a provider.

Parameters

self

a LpfLoc

 

Returns

pointer to the opaue data


lpf_loc_set_opaque ()

void
lpf_loc_set_opaque (LpfLoc *self,
                    gpointer opaque);

Set the opaque data stored by a provider. The data will be freed using g_free.

Parameters

self

a LpfLoc

 

opaque

pointer to opaque data

 

Types and Values

Property Details

The “lat” property

  “lat”                      gdouble

Get Location Latitude.

Flags: Read / Write / Construct

Allowed values: [-90,90]

Default value: 0


The “long” property

  “long”                     gdouble

Get Location Longitude.

Flags: Read / Write / Construct

Allowed values: [-180,180]

Default value: 0


The “name” property

  “name”                     gchar *

Get Location name.

Flags: Read / Write / Construct

Default value: ""