NYCPlanning / labs-geosearch-docker

Main repository for running the Planning Labs geosearch API powered by pelias
12 stars 3 forks source link

Running "pelias normalize nycpad" fails with HTTP 404 #4

Closed toolness closed 4 years ago

toolness commented 4 years ago

Hello! I tried following the instructions in the README and got as far as the second step, where I'm supposed to run pelias normalize nycpad (the README seems to imply the PAD version is optional from the square brackets, and given that I had no idea what a version number looked like, I left it out).

Below is the output of the command. ``` [1] "No PAD version specified. Using default 19a" ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ── ✔ ggplot2 3.2.1 ✔ purrr 0.3.3 ✔ tibble 2.1.3 ✔ dplyr 0.8.3 ✔ tidyr 1.0.0 ✔ stringr 1.4.0 ✔ readr 1.3.1 ✔ forcats 0.4.0 ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ── ✖ dplyr::filter() masks stats::filter() ✖ dplyr::lag() masks stats::lag() Attaching package: ‘jsonlite’ The following object is masked from ‘package:purrr’: flatten trying URL 'https://www1.nyc.gov/assets/planning/download/zip/data-maps/open-data/pad19a.zip' Content type 'application/zip' length 27562656 bytes (26.3 MB) ================================================== downloaded 26.3 MB trying URL 'https://planninglabs.carto.com/api/v2/sql?q=SELECT%0A%20%20bbl,%0A%20%20Round(ST_X(ST_Centroid(the_geom))::numeric,5)%20AS%20lng,%0A%20%20Round(ST_Y(ST_Centroid(the_geom))::numeric,5)%20AS%20lat%0AFROM%20mappluto&format=csv' downloaded 25.3 MB trying URL 'https://data.cityofnewyork.us/api/views/r94s-f34j/rows.csv?accessType=DOWNLOAD' Error in download.file(url, method = method, ...) : cannot open URL 'https://data.cityofnewyork.us/api/views/r94s-f34j/rows.csv?accessType=DOWNLOAD' Calls: source ... withVisible -> eval -> eval -> download -> download.file In addition: Warning message: In download.file(url, method = method, ...) : cannot open URL 'https://data.cityofnewyork.us/api/views/r94s-f34j/rows.csv?accessType=DOWNLOAD': HTTP status was '404 Not Found' Execution halted ```

Any suggestions?

SPTKL commented 4 years ago

building footprint data url changes all the time, but it's now fixed NYCPlanning/labs-geosearch-pad-normalize/pull/62

toolness commented 4 years ago

Awesome, that definitely seems to fix it, thanks! I'll close this issue now.