It's not actually, it's a unique id concatenated with the state.
The unique ids actually have no meaning.
They used to be a unique id from one of the data providers, but they
are normalized/etc, so they do not match anything in the wild right
now.
I wouldn't try to use them.
The unique ids will also be different between each provider.
The main purpose of them existing right now is to enable *us* to
easily be able to identify which polling location/contest is which in
case they need to be blacklisted/changed on a more emergent basis.
*After* this election, we are going to look into what we want to do
around unique ID's.
>
> San Francsico
> http://pollinglocation.googleapis.com/?q=3830%2019th%20st%20sf
> returns "ca:75-3832" - also great (and correct)
>
> These aren't:
>
> San Diego:
> http://pollinglocation.googleapis.com/?q=18111%20Bandy%20Canyon%20Rd%20Escondido%20CA
> returned: 714:13000000739960
> expected: something with 100100 in it
>
> Los Angeles:
>
> http://pollinglocation.googleapis.com/?q=3267%20Veteran%20Ave%20Los%20Angeles%20CA
> returned: 706:130000004262314
> excpected: something with 9000002 in it
>
These don't come from the same datasource, and thus, do not share the
same unique id structure.
Just so you know they are dataset id:unique id.
The unique id is usually just that.
An integer that happens to be unique to the dataset it came from.
The dataset ids we generate.
So basically, hold on a bit, and we'll figure out what we want to do here.
That said, I expect it will be most useful to folks who need to use
VAN precinct IDs, or for whatever reason prefer to use our data set
instead of NOI/Google's. Candidates/State Parties for instance can use
our existing data flows to update and correct incorrect information.
If I was building something completely non-partisan, I would probably
use the Google data.
Nathan
On Fri, Oct 29, 2010 at 1:32 AM, Dan Ancona <afighti...@gmail.com> wrote:
Incidentally the reason we want to key off precincts (and not just
display polling places) is because DemDash has a fairly complete
precinct-detail file for the entire state that includes 5000+ local
districts. So once we get someone's precinct, we're building out a
pretty detailed front-end for their entire dogcatcher-to-whitehouse
government stack, including maps and reps or candidates where we have
them. If you make an account on DemDash and go to Civic Profile you
can see the beginning of this. I wrote a janky street address to
precinct web service (based off the CA voter file), but I guessed/
hoped someone would come along and do this right, exactly like you are.
And Nathan, I assume you're syncing from the CA VoteBuilder, not
pepvan (the VoterConnect VAN) - what are the CA polling places in
there like? I know we have some corrections and consolidations for at
least a couple counties that weren't in the first VIP batch. We don't
have a ton of counties (8 maybe?) but I'd be happy to share an export
or VAN's welcome to wire us into the API-level updating if that's
helpful.