CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Including U.S. Counties in Imported Contact Data
Pages: [1]

Author Topic: Including U.S. Counties in Imported Contact Data  (Read 743 times)

planetrussell

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4.37
Including U.S. Counties in Imported Contact Data
March 02, 2015, 05:49:51 am
Greetings, All...

First time posting here.

Q: When importing Contact Data, is (U.S.) county data computed automatically based on zip code, via the U.S. Postal Service API, or can it (must it?) be specified explicitly? Hoping I havent overlooked this in the open source documentation, but couldn't find specifics there.

Thanks in advance for the community's help.

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Including U.S. Counties in Imported Contact Data
March 02, 2015, 07:09:55 am
Hi Russell,

By default, county data must be specified explicitly.  However, there are extensions to resolve this.  There's no "perfect" answer though.

First, CiviCRM is used globally, so it doesn't ship with county data for the U.S.  Fortunately, there's an extension you can use to auto-load it in:
https://aghstrategies.com/counties

Check your Administer menu > System Settings > Manage Extensions - you should (hopefully) be able to download/install this extension directly from there.

Next, how to do lookups?  There's two approaches - either use a third-party service, or create a local data set to do lookups.

If you want to use a third-party service, SmartyStreets has CiviCRM integration:
https://civicrm.org/extensions/smartystreets

Allegedly, they give free accounts to non-profits, but it doesn't say so on their site anymore, so this may not be accurate anymore. 

Alternatively, if you know how to manually populate a SQL database, you can load a postal code/county lookup table - you can download the data free online, and use the "CiviCRM Region Lookup" extension: https://civicrm.org/extensions/civicrm-region-lookup
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

planetrussell

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4.37
Re: Including U.S. Counties in Imported Contact Data
March 16, 2015, 05:37:49 am
Jon,

Thanks so much for your response, and for the referral to the AGH extension. Greatly appreciated.

So that I'm clear, given that county data must be specified explicitly, I'll assume it's therefore correct that counties cannot be computed or derived from zip codes intercepted by the US Postal Service's Address Standardization (or other USPS Web Tools) API for CiviCRM. Is the use of that API even necessary or recommended for a US-based CiviCRM deployment, and what specific functionality and benefit does it actually provide, relative to SmartyStreets? Thanks again in advance.

Mike

( http://wiki.civicrm.org/confluence/display/CRMDOC/Configuring+Address+Standardization+to+work+with+USPS)
« Last Edit: March 16, 2015, 05:59:56 am by planetrussell »

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Including U.S. Counties in Imported Contact Data
April 07, 2015, 08:12:21 pm
Hi Mike,

Sorry - just saw this!

I don't use the USPS API - they have a very restrictive terms of use that makes it incompatible with most uses of CiviCRM.  Which isn't to say I couldn't stretch the truth...but I haven't had anyone ask me for that functionality yet.  So I can't really answer your question - I haven't looked at how the Region Lookup extension works - depending on which CiviCRM hook it uses, it may or may not add a county if the postal code comes via the USPS API.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Including U.S. Counties in Imported Contact Data

This forum was archived on 2017-11-26.