Skip to content

Commit be723dc

Browse files
authored
Fix height from DOB endpoint index.php (#18)
They added an underscore ugh
1 parent c389e1f commit be723dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ function hexToABGR($hex) {
389389
if ($_GET['height_radio_1'] == 'dob') {
390390
$dob_get = file_get_contents('https://data.cityofnewyork.us/resource/5zhs-2jue.json?bin=' . $bin_1);
391391
print_r($dob_get);
392-
$meters_1 = json_decode($dob_get, true)['0']['heightroof'] * 0.3048;
392+
$meters_1 = json_decode($dob_get, true)['0']['height_roof'] * 0.3048;
393393
$alt_mode_1 = "relativeToGround";
394394
}
395395
// Get height using cell in db
@@ -430,7 +430,7 @@ function hexToABGR($hex) {
430430
if ($_GET['height_radio_2'] == 'dob') {
431431
$dob_get = file_get_contents('https://data.cityofnewyork.us/resource/5zhs-2jue.json?bin=' . $bin_2);
432432
print_r($dob_get);
433-
$meters_2 = json_decode($dob_get, true)['0']['heightroof'] * 0.3048;
433+
$meters_2 = json_decode($dob_get, true)['0']['height_roof'] * 0.3048;
434434
$alt_mode_2 = "relativeToGround";
435435
}
436436
// Get height using cell in db

0 commit comments

Comments
 (0)