Class MatukioHelperLocation

since 5.0.0
package MatukioEvents

 Methods

Get a hotspots marker mapped as location

getHotspotsMarkerAsLocation(integer $id, integer $state = 1) : mixed
Static

Parameters

$id

integer

The hotspots id / Place id

$state

integer

Returns

mixed

Gets the Location

getLocationObj(integer $id, integer $published = 1) : object
Static

Parameters

$id

integer
  • Location id

$published

integer
  • Is the location published

Returns

object

Get Locations for Hotspots (minimal)

getLocationsHotspotsMinimalForSelect() : array | null
Static
since 7.0.0

Returns

arraynull

Get Locations (minimal for select - value / text)

getLocationsMinimalForSelect() : mixed
Static
since 7.0.0

Returns

mixed

Get locations near you

getLocationsNearYou(double $lat, double $lng, boolean $enquoueMessage = true) : array
Static

Parameters

$lat

double

Latitude

$lng

double

Longitude

$enquoueMessage

boolean

Should we enquoe an message if we enlarge radius?

Returns

arrayIds of locations near position

Get locations near you for Hotspots integration

getLocationsNearYouHotspots(double $lat, double $lng, boolean $enquoueMessage = true) : array
Static

Parameters

$lat

double

Latitude

$lng

double

Longitude

$enquoueMessage

boolean

Should we enquoe an message if we enlarge radius?

Returns

arrayIds of locations near position

Get locations near you Matukio

getLocationsNearYouMatukio(double $lat, double $lng, boolean $enquoueMessage = true) : array
Static

Parameters

$lat

double

Latitude

$lng

double

Longitude

$enquoueMessage

boolean

Should we enquoe an message if we enlarge radius?

Returns

arrayIds of locations near position

Load only the locations (id, title, location, lat, lng) for the displayed events

getLocationsTauristar(object $events) : mixed | null
Static
since 6.0.10

Parameters

$events

object

The events

Returns

mixednull