Closed lovehandle closed 10 years ago
What is the primary difference between this one and #9?
I was thinking of a parcel endpoint that is the primary retrieval endpoint for http://lv-dof-staging.herokuapp.com/#/section/50
Which means sending a request like:
curl http://local:3000/parcels/search?id=123456789
And the response would be all the data that we have to populate the parcel information.
Would it be better to use other means of retrieving the data (e.g. having the front-end perform separate lookups by parcel number on separate data sets, rather than have the back-end assemble this parcel data for the front-end)
re: "having the front-end perform separate lookups by parcel number on separate data sets"
Is this the best way to do this:
Any time something refers to a zone, it just provides the zone_id. Since zone data is already in memory, the front end can read from it without loading an endpoint each time. The response would look something like
[{"parcel_id": 1234, "zone_id": "1"}]
See public/data/zone-types.json
for an example of the data it reads.
@louh updated to reflect discussion in #9
Create a zone information endpoint that takes a bounding box and returns a JSON array of zone data within that bounding box.
Request:
Response: