Closed mraross closed 3 years ago
Also add a URL parameter to the Address List Editor to optionally disable the CHSA lookup, eg. ?noAdminAreas=true
Add the following columns to the user table after CHSA lookup: CMNTY_HLTH_SERV_AREA_CODE CMNTY_HLTH_SERV_AREA_NAME
I've pushed this to my github repo for testing now.
This has been PR'd and merge now.
Verified in test
Use the BCGW mapservice to do the point in polygon test against the CHSA coverage. Here's an example request:
https://openmaps.gov.bc.ca/geo/pub/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=pub%3AWHSE_ADMIN_BOUNDARIES.BCHA_CMNTY_HEALTH_SERV_AREA_SP&srsname=EPSG:4326&cql_filter=INTERSECTS(SHAPE,POINT(1224584.57951%20469989.94624))&propertyName=CMNTY_HLTH_SERV_AREA_NAME,LOCAL_HLTH_AREA_NAME,HLTH_SERVICE_DLVR_AREA_NAME,HLTH_AUTHORITY_NAME&outputFormat=application%2Fjson