OrdnanceSurvey / os-data-hub-tutorials

Step-by-step guides to get your project up and running. Here you'll find out how we develop solutions with our APIs. You can follow our step-by-step guides to start building your own innovative projects. These tutorials are related to the Mapping and Data APIs available from our Data Hub (https://osdatahub.os.uk/).
Other
23 stars 7 forks source link

Some possible LR data api tweaks. #1

Closed skwlilac closed 4 years ago

skwlilac commented 4 years ago

A couple of things FYI:

  1. the API framework used on the landregistry linked data site, elda, provides an _pageSize parameter which in this case can be increased upto 200 (a configured maximum). There is some info about the configuration of all the api endpoints here.
  2. You can also use the views (_view=) and properties (_properties= ) parameters to tune the data in the response up or down from the defaults e.g.
    ?_pageSize=200&_view=basic&_properties=transactionId,transactionDate,pricePaid,propertyAddress.postcode
    will return just the data that the application appears to be using - will reduce the payload size and avoid having to prune away the data its not interested in.

Great to see someone making good use of this API.

steve-kingston commented 4 years ago

Hi @skwlilac, thanks very much for the pointers. Those changes will definitely help improve the workflow in the tutorial.

I'll look to implement these.

Thanks, Steve

steve-kingston commented 4 years ago

Incorporated suggested changes via 3087ecc