Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | List of all members
Maps\Elements\Location Class Reference
Inheritance diagram for Maps\Elements\Location:
Inheritance graph
Collaboration diagram for Maps\Elements\Location:
Collaboration graph

Public Member Functions

 __construct (LatLongValue $coordinates, string $title='', string $text='')
 getCoordinates ()
 getJSONObject (string $defText='', string $defTitle='', string $defIconUrl='', string $defGroup='', string $defInlineLabel='', string $defVisitedIcon='')
 hasIcon ()
 getIcon ()
 setIcon (string $icon)
 getAddress ()
 hasGroup ()
 getGroup ()
 setGroup (string $group)
 hasInlineLabel ()
 getInlineLabel ()
 setInlineLabel (string $label)
 hasVisitedIcon ()
 getVisitedIcon ()
 setVisitedIcon (string $visitedIcon)
- Public Member Functions inherited from Maps\Elements\BaseElement
 setTitle (string $title)
 setText (string $text)
 setLink (string $link)
 getArrayValue ()
 getJSONObject (string $defText='', string $defTitle='')
 getText ()
 getTitle ()
 getLink ()

Static Public Member Functions

static newFromLatLon (float $lat, float $lon)

Detailed Description

Class describing a single location (geographical point).

TODO: rethink the design of this class after deciding on what actual role it has



Jeroen De Dauw < >
Daniel Werner

Member Function Documentation

◆ getAddress()

Maps\Elements\Location::getAddress ( )

Returns the address corresponding to this location. If there is none, and empty sting is returned.

◆ hasGroup()

Maps\Elements\Location::hasGroup ( )

Returns whether Location is assigned to a group.

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy