onebusaway-application-modules
onebusaway-application-modules copied to clipboard
Invalid radius values returns unexpected XML
Send the following request:
http://api.pugetsound.onebusaway.org/api/where/stops-for-location.xml?key=TEST&lat=47.653435&lon=-122.305641&radius=FOOBAR
See the result that will likely break most clients:
<map> <entry> <string>fieldErrors</string> <linked-hash-map> <entry> <string>radius</string> <list> <string>Invalid field value for field "radius".</string> </list> </entry> </linked-hash-map> </entry> </map>
Same things happens for other numeric fields such as lat/lon