-
A user writes:
So: How can we get the title and org info for a judge, and what is the position information for a court? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
First, the position information on a court is described in the API as:
That's not a terrible description of it. The general idea is that we need to know what order to list courts in. Alphabetical doesn't do it, and we are constantly adding more danged courts. By sorting them by position, we can put SCOTUS first, then circuit courts, then state courts, etc. Your next (and actual) question was, how do we get the title information for a judge? Good question. Looking at the schema, judges are linked to position objects. Position objects have a lot of fields as I recall, so which ones matter? Let's take a look, as above. I actually forget how this works, so let's explore together. First, this gets us the field definitions for the positions table:
Looking at that, I see a couple fields:
Interesting! Remind me, API, what's
OK, that looks pretty good, and it gives us a long (structured) mapping of the possible values. Seems not to bad. The third question was organization. I happened to see this when looking at the positions. So, again:
Cool. That hints at the fact that if it's a school or court we're going to do that as structured data (as your question surmised). I also saw that next to the The last thing you could do, if you wanted to really confirm this is all correct, would be to grab one of these fields and see how it's used in the code. Pulling together all of this judge information is fairly complicated because it's so detailed, but a search for any of these fields will work well. Perhaps something like: I hope this helps! |
Beta Was this translation helpful? Give feedback.
First, the position information on a court is described in the API as:
That's not a terrible description of it. The general idea is that we need to know what order to list courts in. Alphabetical doesn't do it, and we are constantly adding more danged courts. By sorting them by position, we can put SCOTUS first, then circuit courts, then state courts, etc.
Your next (and actual) question was, how do we g…