Active
Project:
Sunlight Congressional Districts (with optional CiviCRM integration)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 May 2011 at 19:48 UTC
Updated:
20 Feb 2013 at 15:04 UTC
Comments
Comment #1
dalinWell Sunlight is returning both, but cd_sunlight module only show the first one.
Are you seeing this behaviour via the "find my reps via address" form, or elsewhere?
Comment #2
jclaussen commentedNo, I will look for that. Thank you.
Comment #3
darrell_ulm commentedYes, looking at this today, this can be seen with the zipcode view as well as CiviCRM integration.
However, the API call cd_sunlight_api_lookup does return all the districts to the caller of the function.
Comment #4
dalinYes as for the CiviCRM integration it goes through great pains to get CiviCRM to geocode contacts and use lat/long instead. Zip is only used as a fallback when the geocoding either failed, or is not accurate enough (for example when an address contains only a city and state).
The views-powered form at /congress-search however only uses zip codes. One way to make this work would be for cd_civicrm to hijack the form, add address fields, perform the geocoding, and do a lookup with the lat/long.
That would only work if cd_civicrm is enabled, but I think any integration with other modules that do geocoding should happen elsewhere.