Paging / Page set - dealing with large amounts of data via API

My question is whether the Police.uk API supports paging? If it doesn't what is the likelyhood of it being added in the near future?

Take for example the following query: http://data.police.uk/api/crimes-street/all-crime?lat=51.5227764&lng=-0....

This request took over 9 seconds to return the first time. Subsequent requests are cached and therefore much faster but I feel the whole process can be sped up significantly. The additional parameters should be optional so existing clients that expect to receive the entire dataset on first request still function as expected.

Any plans for this?

Thanks,

Calvin

Comments

Paging

Hi Calvin,

Thanks for the suggestion. It's not something that we have in the development plan at the moment, but I'd be happy to consider adding it in if there's enough support for it.

What exactly is the benefit/upside of paging the requests as far as you're concerned? Is it simply because of the lag time in getting a response? If so, then I'd rather focus our efforts on speeding that up instead. Or are there other benefits?

I'd be interested to know if anyone else would find this useful too.

Thanks

Alex

 Flag as offensive