-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathv2-congress-district-with-geometry.js
22 lines (21 loc) · 5.21 KB
/
v2-congress-district-with-geometry.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Example response from https://elections.api.aclu.org/v2/congress/district?lat=40.7023587&lng=-74.0124621&geometry=1
{
district: {
aclu_id: "aclu/elections-api/congress_district:11084",
area: 59669583.267117,
at_large: false,
district_num: 10,
end_date: "2019-01-03",
end_session: 115,
geoid: "3610",
geometry: "{"type": "MultiPolygon", "coordinates": [[[[-74.02385865547, 40.713027710155785], [-74.021117, 40.727417], [-74.013784, 40.756601], [-74.009184, 40.763601], [-73.98618199413659, 40.79555544340409], [-73.971227537681, 40.816330211278], [-73.965379, 40.813959], [-73.963016, 40.812624], [-73.958272, 40.810629], [-73.957245, 40.809404], [-73.959826, 40.805435], [-73.961077, 40.8018], [-73.963861, 40.802972], [-73.968476, 40.796643], [-73.962834, 40.794203], [-73.964176, 40.792362], [-73.96027, 40.790442], [-73.955275, 40.788584], [-73.973015, 40.764279], [-73.981362, 40.767837], [-73.98238, 40.7674], [-73.989297, 40.757907], [-73.986458, 40.75671], [-73.989243, 40.752895], [-73.992079, 40.754091], [-73.992528, 40.753474], [-73.989694, 40.75228], [-73.99111, 40.750319], [-73.993948, 40.751522], [-74.002523, 40.739753], [-73.993617, 40.736005], [-73.996639, 40.731856], [-73.995119, 40.731209], [-73.995563, 40.730715], [-73.994064, 40.729978], [-73.996659, 40.726931], [-73.995844, 40.726526], [-73.995882, 40.724403], [-73.995351, 40.724072], [-73.996836, 40.720505], [-73.998524, 40.719786], [-74.002115, 40.715159], [-74.002506, 40.714256], [-74.003603, 40.713646], [-74.004977, 40.712282], [-74.003537, 40.711495], [-74.003105, 40.710746], [-74.000014, 40.707982], [-73.999495, 40.708279], [-73.994498, 40.704318], [-73.995138, 40.70298], [-73.996173, 40.703364], [-73.998137, 40.701525], [-74.004051, 40.703653], [-74.009043, 40.70059], [-74.013796, 40.70005], [-74.0168, 40.701794], [-74.019526, 40.706985], [-74.024543, 40.709436], [-74.02385865547, 40.713027710155785]]], [[[-74.027106, 40.685092], [-74.025442, 40.687976], [-74.0195, 40.693382], [-74.01546, 40.693382], [-74.012132, 40.690679], [-74.013083, 40.687795], [-74.016173, 40.687075], [-74.019976, 40.685813], [-74.025442, 40.684191], [-74.027106, 40.685092]]], [[[-74.03740769230768, 40.63846646153849], [-74.032066, 40.646479], [-74.018272, 40.659019], [-74.020467, 40.67877], [-74.00822013926148, 40.686709686229094], [-74.008135, 40.685615], [-74.005497, 40.685847], [-74.004853, 40.685668], [-74.005819, 40.683656], [-74.007281, 40.683961], [-74.009736, 40.681876], [-74.0092, 40.681496], [-74.0117, 40.679365], [-74.013883, 40.6808], [-74.016279, 40.678654], [-74.014777, 40.67763], [-74.016028, 40.676563], [-74.014803, 40.675731], [-74.015425, 40.675199], [-74.011006, 40.672228], [-74.008984, 40.671968], [-74.00665, 40.672803], [-74.003242, 40.671852], [-74.002608, 40.673182], [-73.998863, 40.672167], [-73.997416, 40.670349], [-73.993531, 40.668451], [-73.994036, 40.667849], [-73.996033, 40.66806], [-73.994845, 40.666805], [-73.995795, 40.665516], [-73.99987, 40.661589], [-73.998014, 40.660472], [-73.998598, 40.659912], [-74.000454, 40.661032], [-74.002161, 40.659356], [-74.004655, 40.66095], [-74.010493, 40.655276], [-74.012738, 40.656625], [-74.023835, 40.645919], [-74.021598, 40.644598], [-74.025724, 40.640631], [-74.021359, 40.637967], [-74.019608, 40.639704], [-74.012943, 40.635686], [-74.012364, 40.636243], [-74.01016, 40.634912], [-74.011326, 40.633795], [-74.007739, 40.63163], [-74.007503, 40.630576], [-74.008128, 40.629974], [-74.005926, 40.628644], [-74.002348, 40.632084], [-74.004549, 40.633414], [-74.004107, 40.63406], [-73.999807, 40.636936], [-74.002672, 40.638667], [-73.997426, 40.643706], [-73.995229, 40.642375], [-73.993486, 40.64406], [-73.989077, 40.641396], [-73.986731, 40.643574], [-73.98835, 40.644562], [-73.980364, 40.647694], [-73.978191, 40.647526], [-73.977774, 40.645342], [-73.974827, 40.645664], [-73.974657, 40.644806], [-73.970841, 40.646378], [-73.968039, 40.636651], [-73.970291, 40.636407], [-73.969869, 40.634194], [-73.977165, 40.630747], [-73.976235, 40.625976], [-73.970922, 40.62657], [-73.970474, 40.624182], [-73.969098, 40.624333], [-73.968645, 40.621942], [-73.96472, 40.622373], [-73.96238, 40.609986], [-73.972994, 40.608814], [-73.972178, 40.604195], [-73.97808, 40.604918], [-73.976935, 40.59887], [-73.979352, 40.598605], [-73.978927, 40.596348], [-73.985061, 40.595671], [-73.985015, 40.595413], [-73.989621, 40.590982], [-73.994021, 40.593645], [-73.996747, 40.595643], [-73.989224, 40.602865], [-73.991455, 40.604209], [-73.989713, 40.605888], [-73.998313, 40.611084], [-74.000935, 40.608637], [-74.008304, 40.612568], [-74.005397, 40.615363], [-74.003196, 40.614035], [-74.002614, 40.614594], [-74.004813, 40.615923], [-74.000655, 40.619924], [-74.002857, 40.621253], [-74.001202, 40.622843], [-74.003456, 40.624123], [-74.010014, 40.628162], [-74.014323, 40.630911], [-74.014903, 40.630353], [-74.016956, 40.631622], [-74.026039, 40.635741], [-74.028658, 40.636546], [-74.028279, 40.637468], [-74.035589, 40.639763], [-74.035958, 40.638821], [-74.03740769230768, 40.63846646153849]]]]}",
name: "NY Congressional District 10",
non_voting: false,
ocd_id: "ocd-division/country:us/state:ny/cd:10",
start_date: "2017-01-03",
start_session: 115,
state: "ny",
state_full: "New York"
},
ok: true
}