Closed Robinlovelace closed 3 years ago
The dev site can't be relied on as I change it all the time, so yes please switch to www.planit.org.uk
Cheers Andrew, job done and updated in the docs: https://cyipt.github.io/acton/reference/get_planit_data.html
On that note if you see any part of the API not exposed in that function, please let us know and feel free to open up a new issue.
FYI we're planning to document work on actdev on this site for now.
Cheers!
In the function definition you have mentioned 'krad' for the radius of a circle search with 'pcode' as the centre but you can also define the centre directly using 'lat and 'lng'
There is also a 'bounds' parameter where you can supply a boundary polygon but not sure if that is of use
Sorry the parameter is called 'boundary'not 'bounds'
Also there may be a gotcha with the 'limit' parameter - 500 is the default limit but the default page size 'pg_sz' is 50, so you could set a limit of 100 but only get a max of 50 results.
If you dont want users to deal with paged results and are happy to accept an absolute max of 500 results (the maximum page size). Then its best to set a fixed 'limit' of 500 and use the 'pg_sz' as the effective limit on results returned
I see this when running
devtools::check()
:It seems that this is now down:
https://dev.planit.org.uk/api/applics/geojson?limit=500&bbox=&end_date=2021-01-04&start_date=2000-02-01&pg_sz=500&auth=Leeds&app_size=large&app_state=permitted
But this works:
https://planit.org.uk/api/applics/geojson?limit=500&bbox=&end_date=2021-01-04&start_date=2000-02-01&pg_sz=500&auth=Leeds&app_size=large&app_state=permitted
Quick question @aspeakman, are all dev endpoints down and is the API stable and future proof (will ensure we don't call it directly for testing if not)?