Looking up addresses by string (getAddressCandidates function)
Looks up a given point to see if it is in a historical district (inHistoricalDistrict function). I was able to use the FeatureService directly without having to parse/query any GeoJSON. It seems to work, but I have only tested it on the Hyde Park district. I think the interfaces are the same or similar for other types of zones, so adapting this code should be pretty easy.
I don't want to merge this yet; I think it needs to be cleaned up, but any suggestions are appreciated.
This is a basic POC demostrating:
getAddressCandidates
function)inHistoricalDistrict
function). I was able to use the FeatureService directly without having to parse/query any GeoJSON. It seems to work, but I have only tested it on the Hyde Park district. I think the interfaces are the same or similar for other types of zones, so adapting this code should be pretty easy.I don't want to merge this yet; I think it needs to be cleaned up, but any suggestions are appreciated.