Events-Geo-Request

task=eventgeo

The "eventgeo" API Request allow developers and applications to access the latest events published by local authorities on MapAlerter.com with results filtered to geographic location. Along with the compulsory parameters (eg API Key), there are also a series of parameters that are specific to the Geo Query.

The method here involves comparing a point location from the URL request and buffering it to create a circular area of interest. If any MapAlerter events exist within this "boundary" then it will be returned as a result. The query result for each alert will be based on the centre point of the event boundary.

Parameter Usage Example Required
latitude

Used to carry out a geo-query based on passed coordinates. These will be compared to the centre-point of the event buffered boundary. Unit is decimal degrees and the projection is WGS84.

&latitude=53.4567 Yes
longitude Used to carry out a geo-query based on passed coordinates. These will be compared to the centre-point of the event buffered boundary. Unit is decimal degrees and the projection is WGS84. &longitude=-7.6543 Yes
buffer This is based in metres and creates a circle in  metres around the passed coordinates from above.  &buffer=25 Yes

Using the required parameters, the following makes up a typical eventgeo API Request:

This query would return events from a (lat,lng) coordinate pair and filter results within 2000 metres.