FLamparski / areabase

Areabase is a project to create an Android app to bring UK census and police data into one place (also tells you how good or bad your area is)
0 stars 0 forks source link

Areas such as Cambridge 005 cause a 400 error with the police API #16

Closed FLamparski closed 10 years ago

FLamparski commented 10 years ago

From the test log:

Calling http://data.police.uk/api/crimes-street/all-crime?poly=52.22599,0.109064:52.225876,0.109453:52.225802,0.109712:52.225685,0.110069:52.22565,0.110239:52.225573,0.110501:52.225443,0.11094:52.225387,0.111128:52.225224,0.111666:52.225193,0.111919:52.22487,...&date=2013-08
API error: Code 400; message: A non-200 code was returned

The offending postcodes, area names and ons codes:

Police API docs do not mention why the error would occur -- though it may be because the area is larger than 20 km sq?

FLamparski commented 10 years ago

Potentially fixed by using smaller areas by default (also allows access to a wider range of data).

FLamparski commented 10 years ago

Fixed by introducing a Census crime computation strategy.