Closed jamesturk closed 10 years ago
2- Re: the /divisions/
endpoint, I understand that it's in production and in use and unlikely to change at this point. It uses display_name
, whereas the rest of OCD would use name
, so it's maybe the most "legacy" part of OCD. If this endpoint were to change its output format at a later date, perhaps that could be a time to evaluate alignment with Popolo.
3- Since the properties are all optional, I suppose this part is manageable, but there's a mismatch in thinking between Divisions & Areas and how they relate to boundaries. Divisions do not have a boundary but instead have a relationship to a boundary with start & end times. This seems like it'd be another noncompliance point since we'd have a field w/ the (arguably) the same purpose but a different name & structure.
3- The Area spec has received the least attention and feedback. I describe some planned changes in this issue. It is intended to align better with what a Division is. Here's a rough sketch, which is close to the spec for a division object:
{
"id": "ocd-division/country:us/state:ma/place:boston/ward:1",
"name": "Boston Ward 1",
"geometries": [
{
"valid_from": "2010-01-01",
"valid_until": "2013-12-31",
"value": {
... a GeoJSON object ...
}
},
...
]
}
4- I would like to explore the possibility of having Post#area_id
. One option is to have both area_id
and division_id
in the JSON with the same value. It's not super-clean, but would that be an acceptable compromise?
2- yeah it is the most legacy part for sure, I think the solution you proposed is the best path forward 3- this looks pretty good, I'll go comment there with a few potential caveats based on what we've seen 4- We could definitely add this to the API. That makes the most sense to me.
@jpmckinney wrote:
The "Areas vs. Jurisdictions and Divisions" section conflates two questions: "Jurisdiction versus Division" and "Why we call it Division and not Area". An Area in Popolo is the same thing as a Division. There is nothing in Popolo for a Jurisdiction, and there will probably never be †. If you find it necessary to describe the difference between Jurisdictions and Divisions, that's probably best done in 0003 where Jurisdictions are introduced.
So, for the remaining question of "Why we call it Division and not Area". The justification given is "Area does (in essence) equate to Division however, and the different terminology a remnant of decisions made prior to Area being introduced in Popolo." My reasons for "area":
If area_id is adopted, this should be used in 0003 as well.
†: FYI, the reason jurisdictions will likely never be part of Popolo is that I don't think a jurisdiction actually exists distinctly from its top-level organization. I understand that, for OCD, having jurisdictions makes organizing data and APIs and writing code easier. However, from a pure modeling perspective, there's no real thing as a "jurisdiction".
@jamesturk wrote:
We can clarify this better in that paragraph, but I disagree about Area & Division being the same thing, and this is unlikely to change.
In response to specific points: 1 & 2. We actually do use the term division and have since day one, the use is integrated into other APIs that use Open Civic Data division identifiers too.
@jpmckinney wrote:
It sounds like I need more information than I currently have, in order to evaluate the best way forward.
@jamesturk wrote:
2-
Google uses the term division: https://developers.google.com/civic-information/docs/v1/divisions As does OpenElections https://github.com/openelections/specs/wiki/Elections-Data-Spec-Version-2 The endpoint for divisions has been http://api.opencivicdata.org/divisions/ since it was published.
3- Since the properties are all optional, I suppose this part is manageable, but there's a mismatch in thinking between Divisions & Areas and how they relate to boundaries. Divisions do not have a boundary but instead have a relationship to a boundary with start & end times. This seems like it'd be another noncompliance point since we'd have a field w/ the (arguably) the same purpose but a different name & structure.
4- These two cases are recent enough revisions and were they the only place I'd be OK with it. I'm more concerned about us being a moving target for others, we've used the term division in our endpoints and IDs for over a year, changing things on them now just isn't practical.
5- Point well taken, we're behind on getting you that feedback but I've just asked Paul to chime in with that today.
@jamesturk wrote:
there is also at least one vendor API that is using the term division_id internally, that's less of an issue (esp. as they haven't published it yet) but worth noting