From 3d0ead49304ad327672b8684025b6d9eb8dde368 Mon Sep 17 00:00:00 2001 From: Matt Webster Date: Thu, 25 Feb 2021 15:01:18 -0800 Subject: [PATCH 1/2] Adding data code to councils data load (Alembic) Fixes #971 --- server/api/alembic/seeds/councils.csv | 202 +++++++++--------- .../8f2ffbc5c2e8_add_request_type_table.py | 3 +- .../be025aca45ef_adding_region_geometry.py | 3 +- .../versions/f605be47c1ec_add_agencies.py | 6 +- .../api/tests/integration/test_api_models.py | 4 +- .../tests/integration/test_api_requests.py | 20 +- server/api/tests/integration/test_api_shim.py | 64 +++--- 7 files changed, 151 insertions(+), 151 deletions(-) diff --git a/server/api/alembic/seeds/councils.csv b/server/api/alembic/seeds/councils.csv index 300396ec4..ef9fe4385 100644 --- a/server/api/alembic/seeds/councils.csv +++ b/server/api/alembic/seeds/councils.csv @@ -1,101 +1,101 @@ -council_id,council_name,website,twitter,date_certified,region_id,region_name,centroid,latitude,longitude -0,Not represented by a council,http://empowerla.org/,"EmpowerLA","","0","","","0.0","0.0" -4,Granada Hills North,http://ghnnc.org/,GHNNC,2002-09-10T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.5053471867159 34.29805179063455),34.29805279751238,-118.505350026154 -5,Sylmar,http://www.sylmarneighborhoodcouncil.org/,SNC,2003-05-06T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.4485575662035 34.31291423045551),34.31291286410119,-118.44855908541824 -6,Arleta,http://www.arletanc.org/,ANC,2002-10-22T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.4315728171109 34.24101484950965),34.241015598218254,-118.43157419203962 -7,Pacoima,http://pacoimanc.com/,PacoimaNC,2002-03-07T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.4104427845713 34.26587249489363),34.26587282362235,-118.41044275948065 -8,Sun Valley Area,http://svanc.org/,SVANC,2002-05-07T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.3782324095869 34.22721767160239),34.227218060065645,-118.37823561897959 -9,Foothill Trails District,http://www.ftdnc.org/,FTDNC,2003-03-25T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.3437870787592 34.25558075210353),34.255581794871524,-118.34379465036022 -10,Sunland-Tujunga,http://stnc.org/,STNC,2003-05-27T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.2866666166133 34.2603659251053),34.26036600430824,-118.28666515339648 -11,West Hills,http://www.westhillsnc.org/,WHNC,2002-01-22T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.6360286128366 34.20987622944665),34.209877676643885,-118.6360267213876 -13,Canoga Park,http://www.canogaparknc.org/,CPNC,2002-06-18T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.6002334786793 34.21233979560296),34.21234113330308,-118.60023298336984 -14,Winnetka,http://www.winnetkanc.com/,WINNETKA,2003-07-22T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.5759577742129 34.21026903490154),34.210270670963524,-118.57595795454394 -15,Reseda,http://www.resedacouncil.org/,RNC,2002-10-08T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.5403533301718 34.20362401185736),34.20362451108647,-118.54035330605055 -16,Woodland Hills-Warner Center,http://www.whcouncil.org/index.php,WHWCNC,2002-03-06T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.6048554299391 34.16795005401535),34.16794940009884,-118.60485718353596 -17,Tarzana,http://www.tarzananc.org/,TNC,2003-01-14T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.5473571788664 34.15824713342111),34.15824990171012,-118.54735618631386 -18,Encino,http://www.encinonc.org/,ENC,2002-10-08T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.5002480995365 34.15721217090179),34.1572141645549,-118.50024727396368 -19,Lake Balboa,http://lakebalboanc.org/,LBNC,2004-09-09T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.492571957642 34.19381082976953),34.19381295735037,-118.49257277499073 -20,Van Nuys,http://www.vnnc.org/,VNNC,2002-07-23T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.4543316659152 34.19402890472718),34.194029990680534,-118.45433160500627 -21,Greater Valley Glen,http://greatervalleyglencouncil.org/,GVGC,2002-08-27T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.4190990702779 34.18315131466198),34.183151249447675,-118.41909950941879 -22,Noho West,http://nohowest.org/,NOHOWESTNC,2011-01-11T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.4153182878103 34.20759149743712),34.20759207736057,-118.41531823849635 -23,North Hollywood Northeast,http://www.nhnenc.org/,NHNENC,2002-09-24T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.390762933733 34.20608871520223),34.206089115188426,-118.39076351794768 -24,Noho,http://www.midtownnoho.org/,NOHONC,2002-09-24T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.3764662155099 34.17782595734782),34.1778267827896,-118.3764672174503 -25,Valley Village,http://www.myvalleyvillage.com/,NCVV,2002-09-10T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.3964306513365 34.16345622002988),34.16345618598399,-118.39643099845686 -26,Sherman Oaks,http://www.shermanoaksnc.org/,SONC,2002-10-29T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.4432314293441 34.15133351797734),34.151334262974366,-118.44323097106448 -27,Studio City,http://studiocitync.org/,SCNC,2002-10-29T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.3925366215019 34.13963487514444),34.13963488042991,-118.39253710609172 -28,Greater Toluca Lake,http://www.gtlnc.org/,GTLNC,2002-09-10T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.3596529513454 34.15260014395083),34.15260031358863,-118.359653168547 -29,Hollywood Hills West,http://www.hhwnc.org/,HHWNC,2002-05-07T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.343962528015 34.1241531982548),34.1241548328035,-118.34395907184226 -30,Hollywood United,http://www.hollywoodunitednc.org/,HUNC,2002-10-15T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.3191495185648 34.1190385602006),34.11903940848934,-118.31914930252633 -32,Central Hollywood,http://www.chnc.org/,CHNC,2002-04-09T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.3335608490099 34.09378251567064),34.09378259224289,-118.33356097180939 -33,Hollywood Studio District,http://hsdnc.org/,HSDNC,2005-11-01T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.3151072611953 34.09165636547882),34.091656573858856,-118.31510743999279 -34,East Hollywood,http://easthollywood.net/,EHNC,2007-04-19T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.2954965949871 34.09162983082791),34.09163007356412,-118.29549700829655 -36,Los Feliz,http://www.losfeliznc.org/,LFNC,2002-06-11T00:00:00,7,REGION 7 - EAST,POINT (-118.2937601975047 34.12783336660284),34.127835915252014,-118.29376156452892 -37,Atwater Village,http://www.atwatervillage.org/,AVNC,2003-02-11T00:00:00,7,REGION 7 - EAST,POINT (-118.2654037665078 34.12595764634551),34.12595919267017,-118.26540582161806 -38,Silver Lake,http://silverlakenc.org/,SLNC,2003-02-11T00:00:00,7,REGION 7 - EAST,POINT (-118.2691970982457 34.09313719570143),34.093138014370474,-118.26919613067427 -39,Glassell Park,http://glassellparknc.org/,GPNC,2002-01-08T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.2356312250754 34.11698847894176),34.11698885473863,-118.23563118442414 -40,Eagle Rock,http://www.eaglerockcouncil.org/,ERNC,2002-04-02T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.2078457711403 34.1366110205896),34.13661100850288,-118.20784520448437 -41,Historic Highland Park,http://highlandparknc.com/,HHPNC,2002-05-28T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.1931931941714 34.11438088625195),34.11438158997991,-118.19319284381929 -42,Arroyo Seco,http://www.asnc.us/,ASNC,2002-10-02T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.2065373221429 34.09882706073255),34.098827300334875,-118.20653823893042 -43,Elysian Valley Riverside,NULL,EVRNC,2002-07-09T00:00:00,7,REGION 7 - EAST,POINT (-118.2424182757755 34.09806114190395),34.098061469840644,-118.24241939260612 -44,Echo Park,http://gepenc.org/,GEPENC,2002-04-16T00:00:00,7,REGION 7 - EAST,POINT (-118.2513717943964 34.07865609836914),34.078656405571216,-118.25137109832919 -46,Historic Cultural,http://www.hcncla.org/,HCNC,2002-04-27T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.234921310926 34.04479522136338),34.044795528312,-118.23492149456821 -47,Lincoln Heights,http://www.lincolnheightsnc.org/,LHNC,2002-04-27T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.2115805611637 34.07091363039747),34.07091413400948,-118.21158044578988 -48,La-32,http://www.la32nc.org/,LA32,2002-05-21T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.1783388663027 34.08040524182896),34.0804060518995,-118.17833845686086 -50,Boyle Heights,http://bhnc.net/,BHNC,2002-05-21T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.2096791355992 34.03587461444661),34.03587595696934,-118.20967960220553 -52,Downtown Los Angeles,http://dlanc.com/,DLANC,2002-04-27T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.2491559958716 34.03748402516608),34.03748498491601,-118.24915769080046 -53,Rampart Village,http://www.rvnc.org/,RVNC,2007-03-05T00:00:00,7,REGION 7 - EAST,POINT (-118.2847192597357 34.07088347324307),34.07088361373004,-118.28471925006265 -54,Macarthur Park,http://macarthurparknc.org/,MPNC,2003-06-03T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.2826615676141 34.05816400222965),34.05816404480851,-118.28266138633664 -55,Wilshire Center - Koreatown,http://wcknc.org/,WCKNC,2003-08-05T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.3007022194004 34.06686632993485),34.06686711650568,-118.30070225635629 -58,Mid City West,http://www.midcitywest.org/,MCWCC,2002-06-25T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.361084483703 34.07270867467082),34.072709111782764,-118.36108469332918 -60,P.I.C.O.,http://piconc.com/,PICO,2002-03-12T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.3630763743008 34.04959051589627),34.04959043491591,-118.36307617676901 -61,South Robertson,http://www.soronc.org/,SORONC,2002-08-13T00:00:00,11,REGION 11 - WEST LA,POINT (-118.3901134018774 34.04490947883532),34.04491006618816,-118.39011334641893 -62,Westside,http://www.wncla.org/,WNC,2002-06-04T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4208924824571 34.04326676500184),34.043267058405974,-118.42089246612613 -63,Westwood,http://www.wwnc.org/,WWNC,2010-01-19T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4343530138543 34.06545025233254),34.065450568192745,-118.4343528159377 -64,Bel Air-Beverly Crest,http://babcnc.org/,BABCNC,2002-10-08T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4336115726619 34.1062984158306),34.10629709755959,-118.43361041569435 -66,West Los Angeles,http://www.wlanc.com/,WLANC,2003-10-07T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4528695208101 34.03861048739904),34.0386105643305,-118.45286988280374 -67,Mar Vista,http://marvistacc.org/,MVCC,2002-08-13T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4336562876058 34.01413198700523),34.014132658582284,-118.43365576082788 -68,Venice,http://www.venicenc.org/,VNC,2002-03-12T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4613984067937 33.99155093177755),33.99155165363884,-118.46139832889219 -70,Del Rey,http://delreync.org/,DRNC,2003-10-28T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4215895905524 33.98825424087101),33.98825418197465,-118.42158906670264 -71,Westchester/Playa,http://www.ncwpdr.org/,NCWP,2002-03-12T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4084702842671 33.95407842664186),33.954079028590336,-118.40846974531013 -73,Mid City,http://mincla.org/,MINC,2002-02-19T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.3492152425754 34.04026150594676),34.040261030134786,-118.3492146490152 -74,"United Neighborhoods Of The Historic Arlington Heights, West Adams, And Jefferson Park Community",http://www.unnc.org/index.html,UNNC,2002-05-14T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.319530115848 34.03453663232251),34.03453702881439,-118.31952943076948 -75,West Adams,http://www.westadamsnc.org/,WANC,2002-02-19T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.3538755305511 34.02735632587908),34.02735593963338,-118.35387557713501 -76,Pico Union,http://www.picounionnc.org/,PUNC,2003-06-03T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.2869861988439 34.04469810429748),34.04469805732942,-118.28698619779428 -77,Empowerment Congress North Area,http://www.nandc.org/,ECNANDC,2002-04-27T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.2956686038892 34.02378537341639),34.02378552165868,-118.29566798256488 -78,South Central,https://www.southcentralnc.org/,https://empowerla.org/southcentralnc/,2003-06-24T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2605488204562 34.01856723948038),34.0185671100852,-118.2605492199084 -79,Empowerment Congress West Area,http://www.ecwandc.org/,ECWANDC,2002-03-23T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.3454704031887 34.01277145945697),34.012770741073176,-118.34547091030315 -80,Park Mesa Heights,http://www.pmhcc90043.org/Home.html,PMHCC,2002-03-23T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.3300056362523 33.98593340952002),33.98593398187605,-118.33000549326471 -81,Empowerment Congress Central Area,https://www.eccandc.org/,https://empowerla.org/eccandc/,2002-03-23T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.3076754373353 33.99140052791966),33.99140177357051,-118.30767587611966 -84,Empowerment Congress Southwest Area,http://southwestnc.org/,ECSWANDC,2002-03-23T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.3066635334216 33.96036829142113),33.96036912081529,-118.30666306300485 -86,Community And Neighbors For Ninth District Unity (Canndu),http://www.canndunc.org/,CANNDU,2003-03-11T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2686005783438 33.97592737752986),33.97592787364801,-118.26860054991299 -87,Empowerment Congress Southeast Area,NULL,https://empowerla.org/ecseandc/,2002-03-23T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2734709764274 33.94937740806039),33.949377791472415,-118.27347131632048 -88,Watts,http://thewattsnc.com/,WATTS,2002-12-03T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2415027599432 33.94026951079903),33.940269867743105,-118.24150270005441 -90,Harbor Gateway North,http://www.harborgatewaynorth.org/,HGNNC,2002-11-12T00:00:00,12,REGION 12 - HARBOR,POINT (-118.2817834323391 33.91092758009806),33.910931280648086,-118.28178145049861 -91,Harbor Gateway South,http://www.harborgatewaysouth.org/,HGSNC,2003-04-08T00:00:00,12,REGION 12 - HARBOR,POINT (-118.2990452440352 33.84814616007689),33.84814881592452,-118.29904373302978 -92,Harbor City,http://www.harborcitync.com/index.html,HARBORCITYNC,2002-03-26T00:00:00,12,REGION 12 - HARBOR,POINT (-118.2981554325133 33.79295234187936),33.79295323848659,-118.2981563817419 -93,Wilmington,http://www.wilmingtonneighborhoodcouncil.com/,WILMINGTON,2001-12-11T00:00:00,12,REGION 12 - HARBOR,POINT (-118.2608253550639 33.77008189173235),33.770086187429015,-118.26082433237625 -94,Northwest San Pedro,http://www.nwsanpedro.org/,NWSPNC,2002-02-12T00:00:00,12,REGION 12 - HARBOR,POINT (-118.3014618637792 33.75435298501034),33.75435496435478,-118.30146023444136 -95,Central San Pedro,http://centralsanpedro.org/,CENTRALSPNC,2002-02-12T00:00:00,12,REGION 12 - HARBOR,POINT (-118.288111555924 33.74121993371068),33.74122039930301,-118.28811117452872 -96,Coastal San Pedro,http://www.cspnc.org/,CSPNC,2001-12-11T00:00:00,12,REGION 12 - HARBOR,POINT (-118.3009313450807 33.72051091444131),33.72051041095474,-118.30093180229566 -97,Westlake North,https://www.westlakenorthnc.org,https://empowerla.org/wnnc/,2011-06-07T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.2666925259844 34.06113926827859),34.06113929995008,-118.26669274234007 -99,Chatsworth,http://chatsworthcouncil.org/,CNC,2003-04-29T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.5978593008302 34.25464677931477),34.254646508503235,-118.59786000474536 -100,Panorama City,http://www.panoramacitync.org/,PCNC,2007-03-15T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.4455738730732 34.22437053862654),34.224371210934684,-118.44557460674885 -101,Mission Hills,http://mhnconline.org/,MHNC,2005-04-19T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.4579592716846 34.26736181684345),34.26736253692759,-118.45795912834737 -102,Greater Cypress Park,https://www.cypressparknc.com/,https://empowerla.org/gcpnc/,2002-11-19T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.2270029562134 34.09422027305074),34.09422054645388,-118.2270034588892 -104,Olympic Park,http://opnc.org/,OPNC,2003-12-02T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.3256653201005 34.05132663727489),34.051326100095295,-118.32566570232622 -109,Voices Of 90037,https://www.voicesnc.org,https://empowerla.org/voicesof90037/,2008-06-16T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2903494855091 33.99670591462755),33.99670658542894,-118.29034952683186 -110,Central Alameda,https://centralalameda.com/,https://empowerla.org/canc/,2003-09-30T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2477168236647 33.9989324482445),33.99893269655131,-118.24771688445666 -111,North Hills West,http://www.nhwnc.net/,NHWNC,2003-02-25T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.4841452405758 34.23389407063686),34.23389459367138,-118.48414485309745 -112,North Hills East,http://www.northhillseastnc.org/,NHENC,2010-09-14T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.4652193326845 34.23552548330465),34.23552642471212,-118.46521893964409 -113,Northridge West,http://www.northridgewest.org/,NWNC,2004-10-26T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.5494221063152 34.25432279457436),34.2543240451066,-118.54942199652537 -114,Porter Ranch,http://www.prnc.org/,PRNC,2003-07-01T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.562215616158 34.28598487556995),34.285984295084404,-118.56221610305695 -115,Palms,http://palmsla.org/,PALMSNC,2004-12-14T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4066489609371 34.02346348770288),34.0234635568523,-118.40664863041533 -118,Granada Hills South,http://ghsnc.org/,GHSNC,2006-01-17T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.5009638269794 34.26400002446011),34.263999681441526,-118.50096504908484 -119,Greater Wilshire,http://www.greaterwilshire.org/,GWNC,2003-12-02T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.3270892879138 34.07003858858983),34.070039080330154,-118.32708958966361 -120,Northridge East,http://nenc-la.org/,NENC,2004-11-30T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.5171666464766 34.24943938587247),34.249439745768385,-118.51716786528713 -121,Westlake South,https://www.wsncla.org,https://empowerla.org/wsnc/,2011-06-07T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.271875696698 34.05352414310207),34.053524235671965,-118.27187575888549 -124,Northridge South,http://www.northridgesouth.org/,NSNC,2010-05-04T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.5289975667231 34.22686431821182),34.22686321843266,-118.52899791964842 -125,Zapata King,http://www.zapatakingnc.org/,ZKNC,2015-02-03T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2686572983062 34.00020608721262),34.00020635706189,-118.26865731781882 -126,Hermon,https:/www./hermonnc.org/,hnc/,2017-05-25T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.1839477804204 34.10501556906247),34.10501566027899,-118.18394758253243 -127,North Westwood,https://empowerla.org/nwwnc/,https://empowerla.org/nwwnc/,2010-01-19T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4460755154948 34.06712308385536),34.067123406040494,-118.4460755876771 -128,Historic Cultural North,HCNNC,HCNNC,2018-10-29T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.236006323693 34.06441207862523),34.06441229626338,-118.23600629561314 \ No newline at end of file +council_id,council_name,full_name,website,twitter,date_certified,region_id,region_name,centroid,latitude,longitude,data_code +0,No council,Not represented by a council,http://empowerla.org/,EmpowerLA,,0,,,0,0,0 +1,Arleta,Arleta,http://www.arletanc.org/,ANC,2002-10-22T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.4315728171109 34.24101484950965),34.2410156,-118.4315742,6 +2,Arroyo Seco,Arroyo Seco,http://www.asnc.us/,ASNC,2002-10-02T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.2065373221429 34.09882706073255),34.0988273,-118.2065382,42 +3,Atwater Village,Atwater Village,http://www.atwatervillage.org/,AVNC,2003-02-11T00:00:00,7,REGION 7 - EAST,POINT (-118.2654037665078 34.12595764634551),34.12595919,-118.2654058,37 +4,Bel Air-Beverly Crest,Bel Air-Beverly Crest,http://babcnc.org/,BABCNC,2002-10-08T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4336115726619 34.1062984158306),34.1062971,-118.4336104,64 +5,Boyle Heights,Boyle Heights,http://bhnc.net/,BHNC,2002-05-21T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.2096791355992 34.03587461444661),34.03587596,-118.2096796,50 +6,CANNDU,Community And Neighbors For Ninth District Unity (Canndu),http://www.canndunc.org/,CANNDU,2003-03-11T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2686005783438 33.97592737752986),33.97592787,-118.2686005,86 +7,Canoga Park,Canoga Park,http://www.canogaparknc.org/,CPNC,2002-06-18T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.6002334786793 34.21233979560296),34.21234113,-118.600233,13 +8,Central Alameda,Central Alameda,https://centralalameda.com/,CANC,2003-09-30T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2477168236647 33.9989324482445),33.9989327,-118.2477169,110 +9,Central Hollywood,Central Hollywood,http://www.chnc.org/,CHNC,2002-04-09T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.3335608490099 34.09378251567064),34.09378259,-118.333561,32 +10,Central San Pedro,Central San Pedro,http://centralsanpedro.org/,CENTRALSPNC,2002-02-12T00:00:00,12,REGION 12 - HARBOR,POINT (-118.288111555924 33.74121993371068),33.7412204,-118.2881112,95 +11,Chatsworth,Chatsworth,http://chatsworthcouncil.org/,CNC,2003-04-29T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.5978593008302 34.25464677931477),34.25464651,-118.59786,99 +12,Coastal San Pedro,Coastal San Pedro,http://www.cspnc.org/,CSPNC,2001-12-11T00:00:00,12,REGION 12 - HARBOR,POINT (-118.3009313450807 33.72051091444131),33.72051041,-118.3009318,96 +13,Del Rey,Del Rey,http://delreync.org/,DRNC,2003-10-28T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4215895905524 33.98825424087101),33.98825418,-118.4215891,70 +14,Downtown Los Angeles,Downtown Los Angeles,http://dlanc.com/,DLANC,2002-04-27T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.2491559958716 34.03748402516608),34.03748498,-118.2491577,52 +15,Eagle Rock,Eagle Rock,http://www.eaglerockcouncil.org/,ERNC,2002-04-02T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.2078457711403 34.1366110205896),34.13661101,-118.2078452,40 +16,East Hollywood,East Hollywood,http://easthollywood.net/,EHNC,2007-04-19T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.2954965949871 34.09162983082791),34.09163007,-118.295497,34 +17,Echo Park,Echo Park,http://gepenc.org/,GEPENC,2002-04-16T00:00:00,7,REGION 7 - EAST,POINT (-118.2513717943964 34.07865609836914),34.07865641,-118.2513711,44 +18,Elysian Valley Riverside,Elysian Valley Riverside,NULL,EVRNC,2002-07-09T00:00:00,7,REGION 7 - EAST,POINT (-118.2424182757755 34.09806114190395),34.09806147,-118.2424194,43 +19,Empowerment Congress Central Area,Empowerment Congress Central Area,https://www.eccandc.org/,ECCANDC,2002-03-23T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.3076754373353 33.99140052791966),33.99140177,-118.3076759,81 +20,Empowerment Congress North Area,Empowerment Congress North Area,http://www.nandc.org/,ECNANDC,2002-04-27T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.2956686038892 34.02378537341639),34.02378552,-118.295668,77 +21,Empowerment Congress Southeast Area,Empowerment Congress Southeast Area,NULL,ECSEANDE,2002-03-23T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2734709764274 33.94937740806039),33.94937779,-118.2734713,87 +22,Empowerment Congress Southwest Area,Empowerment Congress Southwest Area,http://southwestnc.org/,ECSWANDC,2002-03-23T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.3066635334216 33.96036829142113),33.96036912,-118.3066631,84 +23,Empowerment Congress West Area,Empowerment Congress West Area,http://www.ecwandc.org/,ECWANDC,2002-03-23T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.3454704031887 34.01277145945697),34.01277074,-118.3454709,79 +24,Encino,Encino,http://www.encinonc.org/,ENC,2002-10-08T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.5002480995365 34.15721217090179),34.15721416,-118.5002473,18 +25,Foothill Trails District,Foothill Trails District,http://www.ftdnc.org/,FTDNC,2003-03-25T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.3437870787592 34.25558075210353),34.25558179,-118.3437947,9 +26,Glassell Park,Glassell Park,http://glassellparknc.org/,GPNC,2002-01-08T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.2356312250754 34.11698847894176),34.11698885,-118.2356312,39 +27,Granada Hills North,Granada Hills North,http://ghnnc.org/,GHNNC,2002-09-10T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.5053471867159 34.29805179063455),34.2980528,-118.50535,4 +28,Granada Hills South,Granada Hills South,http://ghsnc.org/,GHSNC,2006-01-17T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.5009638269794 34.26400002446011),34.26399968,-118.500965,118 +29,Greater Cypress Park,Greater Cypress Park,https://www.cypressparknc.com/,GCPNC,2002-11-19T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.2270029562134 34.09422027305074),34.09422055,-118.2270035,102 +30,Greater Toluca Lake,Greater Toluca Lake,http://www.gtlnc.org/,GTLNC,2002-09-10T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.3596529513454 34.15260014395083),34.15260031,-118.3596532,28 +31,Greater Valley Glen,Greater Valley Glen,http://greatervalleyglencouncil.org/,GVGC,2002-08-27T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.4190990702779 34.18315131466198),34.18315125,-118.4190995,21 +32,Greater Wilshire,Greater Wilshire,http://www.greaterwilshire.org/,GWNC,2003-12-02T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.3270892879138 34.07003858858983),34.07003908,-118.3270896,119 +33,Harbor City,Harbor City,http://www.harborcitync.com/index.html,HARBORCITYNC,2002-03-26T00:00:00,12,REGION 12 - HARBOR,POINT (-118.2981554325133 33.79295234187936),33.79295324,-118.2981564,92 +34,Harbor Gateway North,Harbor Gateway North,http://www.harborgatewaynorth.org/,HGNNC,2002-11-12T00:00:00,12,REGION 12 - HARBOR,POINT (-118.2817834323391 33.91092758009806),33.91093128,-118.2817815,90 +35,Harbor Gateway South,Harbor Gateway South,http://www.harborgatewaysouth.org/,HGSNC,2003-04-08T00:00:00,12,REGION 12 - HARBOR,POINT (-118.2990452440352 33.84814616007689),33.84814882,-118.2990437,91 +36,Hermon,Hermon,https:/www./hermonnc.org/,hnc/,2017-05-25T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.1839477804204 34.10501556906247),34.10501566,-118.1839476,126 +37,Historic Cultural,Historic Cultural,http://www.hcncla.org/,HCNC,2002-04-27T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.234921310926 34.04479522136338),34.04479553,-118.2349215,46 +38,Historic Cultural North,Historic Cultural North,HCNNC,HCNNC,2018-10-29T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.236006323693 34.06441207862523),34.0644123,-118.2360063,128 +39,Historic Highland Park,Historic Highland Park,http://highlandparknc.com/,HHPNC,2002-05-28T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.1931931941714 34.11438088625195),34.11438159,-118.1931928,41 +40,Hollywood Hills West,Hollywood Hills West,http://www.hhwnc.org/,HHWNC,2002-05-07T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.343962528015 34.1241531982548),34.12415483,-118.3439591,29 +41,Hollywood Studio District,Hollywood Studio District,http://hsdnc.org/,HSDNC,2005-11-01T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.3151072611953 34.09165636547882),34.09165657,-118.3151074,33 +42,Hollywood United,Hollywood United,http://www.hollywoodunitednc.org/,HUNC,2002-10-15T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.3191495185648 34.1190385602006),34.11903941,-118.3191493,30 +43,LA-32,LA-32,http://www.la32nc.org/,LA32,2002-05-21T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.1783388663027 34.08040524182896),34.08040605,-118.1783385,48 +44,Lake Balboa,Lake Balboa,http://lakebalboanc.org/,LBNC,2004-09-09T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.492571957642 34.19381082976953),34.19381296,-118.4925728,19 +45,Lincoln Heights,Lincoln Heights,http://www.lincolnheightsnc.org/,LHNC,2002-04-27T00:00:00,8,REGION 8 - NORTH EAST LA,POINT (-118.2115805611637 34.07091363039747),34.07091413,-118.2115804,47 +46,Los Feliz,Los Feliz,http://www.losfeliznc.org/,LFNC,2002-06-11T00:00:00,7,REGION 7 - EAST,POINT (-118.2937601975047 34.12783336660284),34.12783592,-118.2937616,36 +47,Macarthur Park,Macarthur Park,http://macarthurparknc.org/,MPNC,2003-06-03T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.2826615676141 34.05816400222965),34.05816404,-118.2826614,54 +48,Mar Vista,Mar Vista,http://marvistacc.org/,MVCC,2002-08-13T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4336562876058 34.01413198700523),34.01413266,-118.4336558,67 +49,Mid City,Mid City,http://mincla.org/,MINC,2002-02-19T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.3492152425754 34.04026150594676),34.04026103,-118.3492146,73 +50,Mid City West,Mid City West,http://www.midcitywest.org/,MCWCC,2002-06-25T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.361084483703 34.07270867467082),34.07270911,-118.3610847,58 +51,Mission Hills,Mission Hills,http://mhnconline.org/,MHNC,2005-04-19T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.4579592716846 34.26736181684345),34.26736254,-118.4579591,101 +52,Noho,Noho,http://www.midtownnoho.org/,NOHONC,2002-09-24T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.3764662155099 34.17782595734782),34.17782678,-118.3764672,24 +53,Noho West,Noho West,http://nohowest.org/,NOHOWESTNC,2011-01-11T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.4153182878103 34.20759149743712),34.20759208,-118.4153182,22 +54,North Hills East,North Hills East,http://www.northhillseastnc.org/,NHENC,2010-09-14T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.4652193326845 34.23552548330465),34.23552642,-118.4652189,112 +55,North Hills West,North Hills West,http://www.nhwnc.net/,NHWNC,2003-02-25T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.4841452405758 34.23389407063686),34.23389459,-118.4841449,111 +56,North Hollywood Northeast,North Hollywood Northeast,http://www.nhnenc.org/,NHNENC,2002-09-24T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.390762933733 34.20608871520223),34.20608912,-118.3907635,23 +57,North Westwood,North Westwood,https://empowerla.org/nwwnc/,NWWNC,2010-01-19T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4460755154948 34.06712308385536),34.06712341,-118.4460756,127 +58,Northridge East,Northridge East,http://nenc-la.org/,NENC,2004-11-30T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.5171666464766 34.24943938587247),34.24943975,-118.5171679,120 +59,Northridge South,Northridge South,http://www.northridgesouth.org/,NSNC,2010-05-04T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.5289975667231 34.22686431821182),34.22686322,-118.5289979,124 +60,Northridge West,Northridge West,http://www.northridgewest.org/,NWNC,2004-10-26T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.5494221063152 34.25432279457436),34.25432405,-118.549422,113 +61,Northwest San Pedro,Northwest San Pedro,http://www.nwsanpedro.org/,NWSPNC,2002-02-12T00:00:00,12,REGION 12 - HARBOR,POINT (-118.3014618637792 33.75435298501034),33.75435496,-118.3014602,94 +62,Olympic Park,Olympic Park,http://opnc.org/,OPNC,2003-12-02T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.3256653201005 34.05132663727489),34.0513261,-118.3256657,104 +63,P.I.C.O.,P.I.C.O.,http://piconc.com/,PICO,2002-03-12T00:00:00,5,REGION 5 - CENTRAL 1,POINT (-118.3630763743008 34.04959051589627),34.04959043,-118.3630762,60 +64,Pacoima,Pacoima,http://pacoimanc.com/,PacoimaNC,2002-03-07T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.4104427845713 34.26587249489363),34.26587282,-118.4104428,7 +65,Palms,Palms,http://palmsla.org/,PALMSNC,2004-12-14T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4066489609371 34.02346348770288),34.02346356,-118.4066486,115 +66,Panorama City,Panorama City,http://www.panoramacitync.org/,PCNC,2007-03-15T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.4455738730732 34.22437053862654),34.22437121,-118.4455746,100 +67,Park Mesa Heights,Park Mesa Heights,http://www.pmhcc90043.org/Home.html,PMHCC,2002-03-23T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.3300056362523 33.98593340952002),33.98593398,-118.3300055,80 +68,Pico Union,Pico Union,http://www.picounionnc.org/,PUNC,2003-06-03T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.2869861988439 34.04469810429748),34.04469806,-118.2869862,76 +69,Porter Ranch,Porter Ranch,http://www.prnc.org/,PRNC,2003-07-01T00:00:00,2,REGION 2 - NORTH WEST VALLEY,POINT (-118.562215616158 34.28598487556995),34.2859843,-118.5622161,114 +70,Rampart Village,Rampart Village,http://www.rvnc.org/,RVNC,2007-03-05T00:00:00,7,REGION 7 - EAST,POINT (-118.2847192597357 34.07088347324307),34.07088361,-118.2847193,53 +71,Reseda,Reseda,http://www.resedacouncil.org/,RNC,2002-10-08T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.5403533301718 34.20362401185736),34.20362451,-118.5403533,15 +72,Sherman Oaks,Sherman Oaks,http://www.shermanoaksnc.org/,SONC,2002-10-29T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.4432314293441 34.15133351797734),34.15133426,-118.443231,26 +73,Silver Lake,Silver Lake,http://silverlakenc.org/,SLNC,2003-02-11T00:00:00,7,REGION 7 - EAST,POINT (-118.2691970982457 34.09313719570143),34.09313801,-118.2691961,38 +74,South Central,South Central,https://www.southcentralnc.org/,SCNC,2003-06-24T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2605488204562 34.01856723948038),34.01856711,-118.2605492,78 +75,South Robertson,South Robertson,http://www.soronc.org/,SORONC,2002-08-13T00:00:00,11,REGION 11 - WEST LA,POINT (-118.3901134018774 34.04490947883532),34.04491007,-118.3901133,61 +76,Studio City,Studio City,http://studiocitync.org/,SCNC,2002-10-29T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.3925366215019 34.13963487514444),34.13963488,-118.3925371,27 +77,Sun Valley Area,Sun Valley Area,http://svanc.org/,SVANC,2002-05-07T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.3782324095869 34.22721767160239),34.22721806,-118.3782356,8 +78,Sunland-Tujunga,Sunland-Tujunga,http://stnc.org/,STNC,2003-05-27T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.2866666166133 34.2603659251053),34.260366,-118.2866652,10 +79,Sylmar,Sylmar,http://www.sylmarneighborhoodcouncil.org/,SNC,2003-05-06T00:00:00,1,REGION 1 - NORTH EAST VALLEY,POINT (-118.4485575662035 34.31291423045551),34.31291286,-118.4485591,5 +80,Tarzana,Tarzana,http://www.tarzananc.org/,TNC,2003-01-14T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.5473571788664 34.15824713342111),34.1582499,-118.5473562,17 +81,UNNC,"United Neighborhoods Of The Historic Arlington Heights, West Adams, And Jefferson Park Community",http://www.unnc.org/index.html,UNNC,2002-05-14T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.319530115848 34.03453663232251),34.03453703,-118.3195294,74 +82,Valley Village,Valley Village,http://www.myvalleyvillage.com/,NCVV,2002-09-10T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.3964306513365 34.16345622002988),34.16345619,-118.396431,25 +83,Van Nuys,Van Nuys,http://www.vnnc.org/,VNNC,2002-07-23T00:00:00,4,REGION 4 - SOUTH EAST VALLEY,POINT (-118.4543316659152 34.19402890472718),34.19402999,-118.4543316,20 +84,Venice,Venice,http://www.venicenc.org/,VNC,2002-03-12T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4613984067937 33.99155093177755),33.99155165,-118.4613983,68 +85,Voices,Voices Of 90037,https://www.voicesnc.org,VOICES,2008-06-16T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2903494855091 33.99670591462755),33.99670659,-118.2903495,109 +86,Watts,Watts,http://thewattsnc.com/,WATTS,2002-12-03T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2415027599432 33.94026951079903),33.94026987,-118.2415027,88 +87,West Adams,West Adams,http://www.westadamsnc.org/,WANC,2002-02-19T00:00:00,10,REGION 10 - SOUTH LA 1,POINT (-118.3538755305511 34.02735632587908),34.02735594,-118.3538756,75 +88,West Hills,West Hills,http://www.westhillsnc.org/,WHNC,2002-01-22T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.6360286128366 34.20987622944665),34.20987768,-118.6360267,11 +89,West Los Angeles,West Los Angeles,http://www.wlanc.com/,WLANC,2003-10-07T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4528695208101 34.03861048739904),34.03861056,-118.4528699,66 +90,Westchester/Playa,Westchester/Playa,http://www.ncwpdr.org/,NCWP,2002-03-12T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4084702842671 33.95407842664186),33.95407903,-118.4084697,71 +91,Westlake North,Westlake North,https://www.westlakenorthnc.org,WNNC,2011-06-07T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.2666925259844 34.06113926827859),34.0611393,-118.2666927,97 +92,Westlake South,Westlake South,https://www.wsncla.org,WSNC,2011-06-07T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.271875696698 34.05352414310207),34.05352424,-118.2718758,121 +93,Westside,Westside,http://www.wncla.org/,WNC,2002-06-04T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4208924824571 34.04326676500184),34.04326706,-118.4208925,62 +94,Westwood,Westwood,http://www.wwnc.org/,WWNC,2010-01-19T00:00:00,11,REGION 11 - WEST LA,POINT (-118.4343530138543 34.06545025233254),34.06545057,-118.4343528,63 +95,Wilmington,Wilmington,http://www.wilmingtonneighborhoodcouncil.com/,WILMINGTON,2001-12-11T00:00:00,12,REGION 12 - HARBOR,POINT (-118.2608253550639 33.77008189173235),33.77008619,-118.2608243,93 +96,Wilshire Center - Koreatown,Wilshire Center - Koreatown,http://wcknc.org/,WCKNC,2003-08-05T00:00:00,6,REGION 6 - CENTRAL 2,POINT (-118.3007022194004 34.06686632993485),34.06686712,-118.3007023,55 +97,Winnetka,Winnetka,http://www.winnetkanc.com/,WINNETKA,2003-07-22T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.5759577742129 34.21026903490154),34.21027067,-118.575958,14 +98,Woodland Hills-Warner Center,Woodland Hills-Warner Center,http://www.whcouncil.org/index.php,WHWCNC,2002-03-06T00:00:00,3,REGION 3 - SOUTH WEST VALLEY,POINT (-118.6048554299391 34.16795005401535),34.1679494,-118.6048572,16 +99,Zapata King,Zapata King,http://www.zapatakingnc.org/,ZKNC,2015-02-03T00:00:00,9,REGION 9 - SOUTH LA 2,POINT (-118.2686572983062 34.00020608721262),34.00020636,-118.2686573,125 \ No newline at end of file diff --git a/server/api/alembic/versions/8f2ffbc5c2e8_add_request_type_table.py b/server/api/alembic/versions/8f2ffbc5c2e8_add_request_type_table.py index 272aa3279..4e945ab59 100644 --- a/server/api/alembic/versions/8f2ffbc5c2e8_add_request_type_table.py +++ b/server/api/alembic/versions/8f2ffbc5c2e8_add_request_type_table.py @@ -32,8 +32,7 @@ def upgrade(): sa.Column('type_name', sa.VARCHAR(), nullable=False), sa.Column('agency_id', sa.SMALLINT(), nullable=False), sa.Column('color', sa.VARCHAR()), - sa.Column('data_code', sa.VARCHAR(), nullable=False), - sa.Column('sort_order', sa.SMALLINT()) + sa.Column('data_code', sa.VARCHAR(), index=True, nullable=False), ) with open(DATA_FOLDER + 'request_types.csv') as f: diff --git a/server/api/alembic/versions/be025aca45ef_adding_region_geometry.py b/server/api/alembic/versions/be025aca45ef_adding_region_geometry.py index 0e7a57f08..becd26ba0 100644 --- a/server/api/alembic/versions/be025aca45ef_adding_region_geometry.py +++ b/server/api/alembic/versions/be025aca45ef_adding_region_geometry.py @@ -45,7 +45,8 @@ def upgrade(): sa.Column('twitter', sa.VARCHAR()), sa.Column('region_id', sa.SMALLINT(), index=True, nullable=False), sa.Column('latitude', sa.FLOAT(), nullable=True), - sa.Column('longitude', sa.FLOAT(), nullable=True) + sa.Column('longitude', sa.FLOAT(), nullable=True), + sa.Column('data_code', sa.SMALLINT(), index=True, nullable=False) ) with open(DATA_FOLDER + 'councils.csv') as f: diff --git a/server/api/alembic/versions/f605be47c1ec_add_agencies.py b/server/api/alembic/versions/f605be47c1ec_add_agencies.py index 4bf9ce1c7..3f3f78215 100644 --- a/server/api/alembic/versions/f605be47c1ec_add_agencies.py +++ b/server/api/alembic/versions/f605be47c1ec_add_agencies.py @@ -33,18 +33,18 @@ requests.closeddate::DATE as closed_date, request_types.type_id as type_id, agencies.agency_id, - COALESCE(requests.nc, 0)::SMALLINT as council_id, + COALESCE(councils.council_id, 0)::SMALLINT as council_id, COALESCE(councils.region_id, 0)::SMALLINT as region_id, requests.address::VARCHAR(100), requests.latitude, requests.longitude, requests.cd::SMALLINT as city_id FROM - requests + requests LEFT JOIN request_types on requests.requesttype = request_types.data_code LEFT JOIN - councils on requests.nc = councils.council_id + councils on requests.nc = councils.data_code LEFT JOIN agencies on requests.owner = agencies.data_code WHERE diff --git a/server/api/tests/integration/test_api_models.py b/server/api/tests/integration/test_api_models.py index 2ee5127eb..677ab0420 100644 --- a/server/api/tests/integration/test_api_models.py +++ b/server/api/tests/integration/test_api_models.py @@ -14,14 +14,14 @@ def test_councils(client): def test_council(client): - url = "/councils/6" + url = "/councils/1" response = client.get(url) assert response.status_code == 200 assert response.json()["councilName"] == "Arleta" def test_council_open_counts(client): - url = "/councils/6/counts/open/types" + url = "/councils/1/counts/open/types" response = client.get(url) assert response.status_code == 200 assert len(response.json()) == 1 diff --git a/server/api/tests/integration/test_api_requests.py b/server/api/tests/integration/test_api_requests.py index 65e58f8bb..5167cd173 100644 --- a/server/api/tests/integration/test_api_requests.py +++ b/server/api/tests/integration/test_api_requests.py @@ -10,32 +10,32 @@ def test_service_requests_start(client): url = "/requests?start_date=2020-01-01" response = client.get(url) assert response.status_code == 200 - assert len(response.json()) == 9910 + assert len(response.json()) == 9989 def test_service_requests_end(client): url = "/requests?start_date=2020-01-01&end_date=2020-01-02" response = client.get(url) assert response.status_code == 200 - assert len(response.json()) == 8240 + assert len(response.json()) == 8304 def test_service_requests_type(client): url = "/requests?start_date=2020-01-01&end_date=2020-01-02&type_id=2" response = client.get(url) assert response.status_code == 200 - assert len(response.json()) == 297 + assert len(response.json()) == 298 def test_service_requests_council(client): - url = "/requests?start_date=2020-01-01&end_date=2020-01-02&council_id=4" + url = "/requests?start_date=2020-01-01&end_date=2020-01-02&council_id=27" response = client.get(url) assert response.status_code == 200 assert len(response.json()) == 55 def test_service_requests_all(client): - url = "/requests?start_date=2020-01-01&end_date=2020-01-02&type_id=2&council_id=4" + url = "/requests?start_date=2020-01-01&end_date=2020-01-02&type_id=2&council_id=27" response = client.get(url) assert response.status_code == 200 assert len(response.json()) == 6 @@ -45,11 +45,11 @@ def test_updated_service_requests(client): url = "/requests/updated?start_date=2020-01-01&end_date=2020-01-02" response = client.get(url) assert response.status_code == 200 - assert len(response.json()) == 9715 + assert len(response.json()) == 9792 def test_updated_service_requests_council(client): - url = "/requests/updated?start_date=2020-01-01&end_date=2020-01-02&council_id=4" + url = "/requests/updated?start_date=2020-01-01&end_date=2020-01-02&council_id=27" response = client.get(url) assert response.status_code == 200 assert len(response.json()) == 64 @@ -64,7 +64,7 @@ def test_service_request(client): assert response.json()["typeName"] == "Illegal Dumping" assert response.json()["agencyId"] == 2 assert response.json()["agencyName"] == "Sanitation Bureau" - assert response.json()["councilId"] == 19 + assert response.json()["councilId"] == 44 assert response.json()["councilName"] == "Lake Balboa" assert response.json()["createdDate"] == "2020-01-01" assert response.json()["closedDate"] == "2020-01-02" @@ -95,7 +95,7 @@ def test_service_request_pins(client): "startDate": "2020-01-01", "endDate": "2020-01-02", "ncList": [ - 29 + 40 ], "requestTypes": [ 4 @@ -113,7 +113,7 @@ def test_service_request_points(client): "startDate": "2020-01-01", "endDate": "2020-01-02", "ncList": [ - 29 + 40 ], "requestTypes": [ 4 diff --git a/server/api/tests/integration/test_api_shim.py b/server/api/tests/integration/test_api_shim.py index 24448830d..966f49a5c 100644 --- a/server/api/tests/integration/test_api_shim.py +++ b/server/api/tests/integration/test_api_shim.py @@ -18,23 +18,23 @@ def test_map_pins(client): "startDate": "01/01/2020", "endDate": "01/02/2020", "ncList": [ - 29, - 30, + 9, + 14, + 16, 32, - 33, - 34, - 46, - 52, - 54, - 55, - 58, - 60, - 76, - 97, - 104, - 119, - 121, - 128 + 37, + 38, + 40, + 41, + 42, + 47, + 50, + 62, + 63, + 68, + 91, + 92, + 96 ], "requestTypes": [ "Dead Animal Removal", @@ -66,23 +66,23 @@ def test_visualizations(client): "startDate": "01/01/2020", "endDate": "01/02/2020", "ncList": [ - 29, - 30, + 9, + 14, + 16, 32, - 33, - 34, - 46, - 52, - 54, - 55, - 58, - 60, - 76, - 97, - 104, - 119, - 121, - 128 + 37, + 38, + 40, + 41, + 42, + 47, + 50, + 62, + 63, + 68, + 91, + 92, + 96 ], "requestTypes": [ "Bulky Items", From f4d0a31b8da9e3e3d0057ff61798d56c5843267b Mon Sep 17 00:00:00 2001 From: Matt Webster Date: Sun, 28 Feb 2021 23:46:32 -0800 Subject: [PATCH 2/2] Adding data code to councils data load (Alembic) Fixes #971 - CORS changes --- .github/workflows/create_release_dev.yml | 1 + server/api/code/lacity_data_api/config.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create_release_dev.yml b/.github/workflows/create_release_dev.yml index d0bbf197a..8ebf064e6 100644 --- a/.github/workflows/create_release_dev.yml +++ b/.github/workflows/create_release_dev.yml @@ -20,6 +20,7 @@ jobs: echo GITHUB_SHA=${{ github.sha }} >> server/api/.env echo DEBUG=True >> server/api/.env echo DB_ECHO=True >> server/api/.env + echo API_ALLOWED_ORIGINS=[https://dev.311-data.org,http://localhost:3000,https://311-data.matt-webster.net] >> server/api/.env - name: Build and Push Image to Docker Hub uses: docker/build-push-action@v1 with: diff --git a/server/api/code/lacity_data_api/config.py b/server/api/code/lacity_data_api/config.py index 8740fdb7e..d96c081d1 100644 --- a/server/api/code/lacity_data_api/config.py +++ b/server/api/code/lacity_data_api/config.py @@ -21,7 +21,7 @@ # string array of allows client URLs API_ALLOWED_ORIGINS = config( "API_ALLOWED_ORIGINS", - default=["http://localhost:3000", "https://dev.311-data.org"] + default=["https://www.311-data.org", "https://dev.311-data.org"] ) # getting database configuration