OpenSTL / backyard-chickens

Better communicate chicken regulations by municipality to the people of Saint Louis and Saint Louis County based on local municipality zoning regulations
https://openstl.github.io/backyard-chickens/
MIT License
5 stars 5 forks source link

Geographical Specificity #25

Open gavinr opened 5 years ago

gavinr commented 5 years ago

Right now our data is at the municipality level. It would be nice to have the ability to search more specifically. For example some cities may allow chickens only in single-family residences.

AvidDabbler commented 5 years ago

need to figure out how to add in land use types in order to make the Saint Louis area more intelligent. Parcels that are coded as single family should be the only ones allowed to have chickens.

NEXT STEP: Contact City of Saint Louis data layer steward and find the proper layer and land use code.

@mrao2 do you have any contacts at the city?

Possible API: http://www.arcgis.com/home/webmap/viewer.html?webmap=01c5cd3d2a0240399b37545b13797ae9&extent=-90.2219,38.641,-90.1942,38.6538

gavinr commented 5 years ago

That service only has the parcels owned by the LRA. I think we probably want the full parcel service, correct? https://stlgis.stlouis-mo.gov/arcgis/rest/services/public/STL_PUBLICMAP/MapServer/1

To query the full parcel service, send a GET request like this:

https://stlgis.stlouis-mo.gov/arcgis/rest/services/public/STL_PUBLICMAP/MapServer/1/query?where=1=1&geometry=-90.231130,38.657047&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&geometryPrecision=&outSR=4326&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&f=pjson

... just replace the point (-90.231130,38.657047 above) with the Longitude,Latitude that you want to use. Then see the "features" attribute to see the parcels it intersects with. (if the "features" array is empty, that means it does not intersect with any features)