Speed Zone API

This page outlines the web API to get a JSON return of the speed limit in New South Wales for a given latitude, longitude, bearing.

The engine behind SpeedZone NSW app

Request:
Example:
http://anthonykeane.com/speed/mydb.php?When=2013-08-30+14%3A37%3A44&UUID=test-c5a10725-249e-4686-b2c2-efd46003877a&ber=100&bZoneError=0&lon=150.94951&speed=99&lat=-33.71013
               

 When: used to manage dead requests.
 UUID: Any UUID or GUID, used to apply track from previous call, needed when roads cross each other.
 ber:  Bearing, needed to filter when the speed in one direction is different that the other direction.
 bZoneError: Feedback from client to indicate an error, used to draw attention to that location in the date to be fixed.
 lon:Longitude.
 speed:used as a sanity check.
 lat:Latitude
  
Works with POST of GET
JSON reply
Example reply:
{"reLat":"-33.7101767143","reLon":"150.9495354180","reBearing":"102", "reSpeedLimit":"80","RdNo":"0000184","rePrescribed":"\u0000", "reMainRoad":"\u0001","RE":"00001840215C1C999921"}

     
 RE: Unique ID (Road Element)
 reMainRoad: is this a Main road or a on/off ramp
 reBearing: Bearing, needed to filter when the speed in one direction is different that the other direction.
 RdNo: Road Number. (As per government gazette) 
 reLon:Longitude.
 reSpeedLimit:Speed limit at this location
 reLat:Latitude of a Road Element (RE) snapped location, 
 rePrescribed Direction in (0) of out (1) of closest city