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) »
  • Geocode based on post code
Pages: [1]

Author Topic: Geocode based on post code  (Read 701 times)

benjee

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Wordpress
  • MySQL version: -
  • PHP version: -
Geocode based on post code
June 13, 2012, 07:55:11 am
Hi all,

Many thanks for help on other topics so far- this is my first Civi install, and apart from a few hiccups, it's gone extremely well!

For many of my contacts, the only address data I have is postcode. CiviCRM doesn't seem to be making any attempt to geocode these postcode-only addresses, but has no problem doing it when additional data such as city and street are available.

Totally understand that it won't be as accurate with just a postcode, but given that Google Maps front-end is capable of giving a rough location based on a postcode, it would be great to get Civi behaving in a similar way.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Geocode based on post code
June 13, 2012, 08:22:47 pm

Want to take a crack at creating a patch for this? The relevant code can be found here:

CRM/Utils/Geocode/Google.php

From a brief look at the code, seems like we only require a country to be present?

lobo

A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Geocode based on post code

This forum was archived on 2017-11-26.