API Reference

Geo.getEventsFromArea

This function returns events for a square area defined by the $northEast and $southWest tips of the square.

Syntax

array geo.getEventsFromArea ( int vhost, array northEast, array southWest, int|false moderationStatus = false )

Arguments

NameTypeRequiredDefault valueDescription
vhostintRequirednoneThe vhost of the application.
northEastarrayRequirednoneThe north-east (upper-right) point of the square that defines the area for the events. Along with $southWest, is provides the co-ordinates for the area that is to show the users. Example: $northEast[0] => 62.865220228976895, $northEast[1] => -52.44921875
southWestarrayRequirednoneThe south-west (lower-left) point of the square that defines the area for the events. Along with $northEast, is provides the co-ordinates for the area that is to show the users. Example: $southWest[0] => 35.08404808848904, $southWest[1] => -131.55078125
moderationStatusint|falseOptionalfalseThe moderation status of the events to be displayed. Possible values: 1 (unmoderated), 2 (approved), 3 (not denied), 4 (denied), or false for default

Response

Below are the fields available in the returned array.

NameTypeDescription
idINTThe event id.
nameSTRINGThe event name.
logoINTThe id of the media set as the logo for the event.
memberCountINTThe number of members in the event.
geo_latitudeFLOATThe event's geographical latitude. i.e.: 40.775729609144044
geo_longitudeFLOATThe event's geographical longitude. i.e.: -84.44921875
addressINTThe address of the event.

Sample Response

Code examples

0 comments

Be the first to comment on getEventsFromArea.

Add a Comment

  • captcha