CRM-19784: Encapsulated interactions with geocoding providers. Adopts an
authorFrank J. Gómez <frank@ginkgostreet.com>
Fri, 2 Feb 2018 13:53:10 +0000 (08:53 -0500)
committerFrank J. Gómez <frank@ginkgostreet.com>
Fri, 2 Feb 2018 23:17:27 +0000 (18:17 -0500)
commit6d04b72725991096a67ae64b4a11b36192a941e3
tree607ea2353f237d1c23e81813f24b443715fb8074
parent62d684a73cf9d8f969f271079c4edf8751f2afa0
CRM-19784: Encapsulated interactions with geocoding providers. Adopts an
approach like the factory pattern PHP developers will find familiar, with
plenty of deprecation notices re the changing approach. A specific goal
was to avoid fatal errors in which a geocoder that no longer exists is called.
This applies specifically to the Yahoo class but also generally, e.g., if an
extension that provides a geocoder goes missing due to deletion, changed paths,
etc.
CRM/Core/BAO/Address.php
CRM/Utils/GeocodeProvider.php [new file with mode: 0644]