who-owns-what icon indicating copy to clipboard operation
who-owns-what copied to clipboard

About 1,000 bbls do not have lat/lng or unit counts because there is no record in PLUTO

Open sraby opened this issue 4 years ago • 1 comments

We have a couple of issues that seem to all stem from the same place— currently 1059 bbls in our wow_buildings table do not have matching records in PLUTO, meaning that their values for lat, lng, yearbuilt, and unitsres are all NULL. While these buildings only account for 0.6% of all potential buildings searchable on WOW, there are a couple of issues that stem from this problem:

  • Some building searches crash because the search address is unmappable (no lat/lng) (Ex: whoownswhat.justfix.nyc/en/address/BROOKLYN/3070/BRIGHTON%2014TH%20STREET )
  • Some buildings show up near coord 0,0 on the properties map and when clicked, crash the browser session (Ex: whoownswhat.justfix.nyc/en/address/BROOKLYN/654/PARK%20PLACE )

sraby avatar Mar 16 '20 13:03 sraby

One other way that this error manifests itself is when a user clicks on a "View Detail" button on the Portfolio tab for a building without lat/lng coordinates. Try this example: https://demo-whoownswhat.herokuapp.com/en/address/QUEENS/10319/68TH%20ROAD If you go to the Portfolio tab and click on View Detail for 55 WEST 46TH STREET, you should get an Invalid LngLat object: (NaN, NaN) error logged in the console.

sraby avatar Jul 27 '20 12:07 sraby