Skip to content
/ DataBC Public

CiviCRM Extension that uses DataBC Geographic Data and Services to GeoCode British Columbia (Canada) addresses

License

Notifications You must be signed in to change notification settings

KarinG/DataBC

Repository files navigation

CiviCRM Extension that uses DataBC Geographic Data and Services to GeoCode British Columbia (Canada) addresses

This extension gives administrators the option to set the primary Geocoding method to DataBC in the Administer -> System Settings -> Mapping & Geocoding. Administrators can set a backup Geocoding method on: /civicrm/admin/setting/databcgeocode for addresses outside of British Columbia.

MatchPrecision is the level of precision of an address match. It is explained here: https://github.com/bcgov/api-specs/blob/master/geocoder/glossary.md#matchPrecision We've been testing with defaults "75" for Threshold and "STREET" for Precision This PDF explains more about the match score and gives some concrete examples of how it is calculated: https://www2.gov.bc.ca/assets/gov/data/geographic/location-services/geocoder/understanding_geocoder_results.pdf

To download the latest version of this module: https://github.com/KarinG/DataBC

This extension was sponsored by: British Columbia New Democratic Party

Warnings

a) If you have a lot of addresses outside of British Columbia - you may still run into Google Geocoding limits!
b) This is brand new - wanting to fast track this as this could potentially help lots of BC Organizations - keep a close eye on results!
c) The default Match Threshold is set at 75 which will only return geocodes for addresses that contain a valid civic number and street. Addresses with misspelled localities and/or a missing province will still return a geocode match. Invalid civic numbers and street names will not return a geocode. A link to a PDF with instructions on choosing a proper Match Threshold will be provided.

Requirements

CiviCRM ESR (minimum)

Installation

Install as any other regular CiviCRM extension:

1- Download this extension and unpack it in your 'extensions' directory. You may need to create it if it does not already exist, and configure the correct path in CiviCRM -> Administer -> System -> Directories

2- Enable the extension from CiviCRM -> Administer -> System -> Extensions

Usage

The DataBC is injected everywhere a the CiviCRM Geocoder is called: so Edit of an Address -> Save but also in the Administer -> System Settings -> Address Geocoder Job

Support

Please post bug reports in the issue tracker of this project on github: https://github.com/KarinG/DataBC/issues

License

AGPL-3.0

Copyright of the data + reference to Terms & Conditions

Copyright © 2016, Province of British Columbia. Contains information licensed under the Open Government License – British Columbia. http://www2.gov.bc.ca/gov/content/governments/about-the-bc-government/databc/open-data/open-government-license-bc http://www2.gov.bc.ca/gov/content/governments/about-the-bc-government/databc/open-data/api-terms-of-use-for-ogl-information

About

CiviCRM Extension that uses DataBC Geographic Data and Services to GeoCode British Columbia (Canada) addresses

Resources

License

Stars

Watchers

Forks

Packages

No packages published