codeforkansascity / address-api

A address database accessible through an API that will return attributes about the address, neighborhood, council district, zoning...
http://address-api.codeforkc.org
MIT License
5 stars 9 forks source link

Better Split up the address into further attribute. #97

Closed JakeLaCombe closed 8 years ago

JakeLaCombe commented 8 years ago

I was looking through the address api by neighborhood, and noticed the following return structure for the address

"address_id":95420,
"single_line_address":"11 E 31ST ST, KANSAS CITY, MO",
"city":"KANSAS CITY",
"state":"MO",
"zip":"64108"

I am looking to integrate this with the following dataset. http://webfusion.kcmo.org/coldfusionapps/neighborhood/rentalreg/PropList.cfm. To combine these datasets, I do a split on the single_line_address on the comma, and take the first value, which corresponds to the street of the address. This doesn't feel like a solid approach for integrating with this dataset. The street is fine, but I'd like to access it without having to do complex string logic.

What am I looking for?

I propose we add an attribute to each address called street, which contains the street address of the given address. It would make the data structure look like this.

"address_id":95420,
"single_line_address":"11 E 31ST ST, KANSAS CITY, MO",
"street":"11 E 31ST ST"
"city":"KANSAS CITY",
"state":"MO",
"zip":"64108"
zmon commented 8 years ago

Notes:

Field name will be "street_address" or "address" which the city uses in their vacantparcels layer and does not have city and state.

Potential things to change:

Update google spread sheet https://docs.google.com/spreadsheets/d/1RPVez3dgZWaPNFRb0ShVmrvo9zXKBnYtyQxoH4vxzc8/edit#gid=0

zmon commented 8 years ago

Added street_address same as single line address but without city and state. @JakeLaCombe