Code Monkey home page Code Monkey logo

Comments (5)

paultag avatar paultag commented on June 24, 2024

@j-ro interesting idea

I'm not so much a fan of that syntax (cd:0), but something like state:vt/cd:at-large might be OK. It could be defined as an alias.

I'm torn on this, since they should represent geographical divisions, not political ones necessarily.

How does this make it harder to process? I guess I'm not seeing where this would break stuff, unless you're using the local-part slugs for something (rather then the post.id)

from ocd-division-ids.

j-ro avatar j-ro commented on June 24, 2024

at-large works for my use case, sure

The way I understand it, right now there are a ton of OCD-IDs that represent both political and geographic areas, like ocd-division/country:us/state:nc/cd:2 or ocd-division/country:us/state:nc/sldu:1, etc...

This is pretty much the same -- there's still such thing as Vermont's congressional district, it just happens that this geographic boundary is the same as the state's boundary. That may not always be true, given redistricting, but it is now. So a separate OCD ID I could see as semantically appropriate.

from ocd-division-ids.

j-ro avatar j-ro commented on June 24, 2024

Oh, and on your processing note...

There are effects in other systems where this becomes harder.

For example, Google's Civic API uses ODC IDs. So, if I want to compile a list of all members of congress (which is what we're doing), I send it all the OCD IDs from all congressional districts and it sends me back just the elected officials that match those districts. Except, for at-large districts, I have to send whole states, which means Google gives me back all kinds of elected officials beyond the ones I care about, and I now have to filter carefully, sometimes using natural language.

Basically, it turns all at-large districts into edge cases that have to be handled differently, whereas if this were just another district, I could handle it the same way.

from ocd-division-ids.

j-ro avatar j-ro commented on June 24, 2024

And yes, we are parsing the ID as well, to do matching -- so we know member from district 1 from the sunlight API matches the elected official we get for cd:1, but we can't necessarily say the same for district 0 because many people match to state:vt

from ocd-division-ids.

jpmckinney avatar jpmckinney commented on June 24, 2024

state:vt/cd:at-large makes sense to me in terms of having a complete set of congressional districts under the cd type.

However, at the local government level, there can be dozens of at-large councillors, which requires special handling/logic anyway. In that case, I don't see the value in having an at-large alias.

from ocd-division-ids.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.