Location
Iface
constructor
name
get_
latitude
get_
longitude
set_
location
GJS API Reference
Champlain-0.12
Champlain
LocationIface
Class LocationIface
An interface common to objects having latitude and longitude.
record
Hierarchy
LocationIface
Index
Constructors
constructor
Properties
name
Methods
get_
latitude
get_
longitude
set_
location
Constructors
constructor
new
Location
Iface
(
)
:
Champlain
.
LocationIface
Returns
Champlain
.
LocationIface
Properties
Static
name
name
:
string
Methods
get_
latitude
get_
latitude
(
location
:
Champlain
.
Location
)
:
number
Parameters
location:
Champlain
.
Location
Returns
number
get_
longitude
get_
longitude
(
location
:
Champlain
.
Location
)
:
number
Parameters
location:
Champlain
.
Location
Returns
number
set_
location
set_
location
(
location
:
Champlain
.
Location
, latitude
:
number
, longitude
:
number
)
:
void
Parameters
location:
Champlain
.
Location
latitude:
number
longitude:
number
Returns
void
Location
Iface
constructor
name
get_
latitude
get_
longitude
set_
location
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJDaGFtcGxhaW5fMF8xMi5DaGFtcGxhaW4uTG9jYXRpb25JZmFjZS5odG1sI2NvbnN0cnVjdG9yIiwibmFtZSI6ImNvbnN0cnVjdG9yIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MgdHNkLWlzLXN0YXRpYyIsImhyZWYiOiJDaGFtcGxhaW5fMF8xMi5DaGFtcGxhaW4uTG9jYXRpb25JZmFjZS5odG1sI25hbWUiLCJuYW1lIjoibmFtZSIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtbWV0aG9kIHRzZC1wYXJ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