For a quick and dirty start try paste the following url into your browser:
http://alertza.co.za/api.php/crime/around/-26.0832730872463%2028.1116887513047/120/30
http://alertza.co.za/api.php/{class}/{method}/{lat,Lng}/{distance}/{days}
This url will give you a list of crimes that took place 30 days ago at 120km around the Gautrain Marlboro station in a "json" text format. In PHP this can be converted to a standard array or object using the json_decode function.
Please let us know what functions you need made available to you and we will be happy to build them into the API.
Method: around
Find all crime around a geographical point.
http://alertza.co.za/api.php/{class}/{method}/{lat,Lng}/{distance}/{days}
- lat,Lng = lat and lng point to search from (url encoded).
- distance = the distance to search from the latLng point.
- days = the number of days back to search within.