Geo-Request

task=geo

The GeoAPI Request allow developers and applications to access the latest alerts published by local authorities on MapAlerter.com with results filtered to geographic location. Along with the compulsory parameters outlined above, 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 activity exists 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 alert 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 alert 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 alert boundary.  Unit is decimal degrees and the projection is WGS84. &longitude=-7.6543 Yes
buffer This is based in kilometres and creates a circle in  kilometres   around the passed coordinates from above.  &buffer=25 Yes

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

This query would return results from a (lat,lng) coordinate pair and filter results within 25 kilometres.