45208 zip code shares 2 reps. Anyway to find these reps using sunlight? Steve Chabot and Jean Schmidt share this zip code. Sunlight search returns only Jean Schmidt.

Comments

dalin’s picture

Status: Active » Postponed (maintainer needs more info)

Well 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?

jclaussen’s picture

No, I will look for that. Thank you.

darrell_ulm’s picture

Yes, 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.

dalin’s picture

Version: 6.x-3.2 » 7.x-1.x-dev
Component: User interface » Code
Category: support » task
Status: Postponed (maintainer needs more info) » Active

Yes 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.