bcgov / ols-devkit

Developer Tool Kit using the BC Address Geocoder, BC Route Planner and the Geomark Web Service
Apache License 2.0
6 stars 5 forks source link

In Address List Editor, compute CHSA when geocoding addresses #188

Closed mraross closed 3 years ago

mraross commented 3 years ago

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

cmhodgson commented 3 years ago

Also add a URL parameter to the Address List Editor to optionally disable the CHSA lookup, eg. ?noAdminAreas=true

mraross commented 3 years ago

Add the following columns to the user table after CHSA lookup: CMNTY_HLTH_SERV_AREA_CODE CMNTY_HLTH_SERV_AREA_NAME

cmhodgson commented 3 years ago

I've pushed this to my github repo for testing now.

cmhodgson commented 3 years ago

This has been PR'd and merge now.

mraross commented 3 years ago

Verified in test