NasalPositioned: Expose actual postion of parkings
This commit is contained in:
parent
373d511c69
commit
a876ff93e1
1 changed files with 7 additions and 2 deletions
|
@ -1291,8 +1291,13 @@ static naRef f_airport_parking(naContext c, naRef me, int argc, naRef* args)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
naRef nm = stringToNasal(c, park->getName());
|
const SGGeod& parkLoc = park->getGeod();
|
||||||
naVec_append(r, nm);
|
naRef ph = naNewHash(c);
|
||||||
|
hashset(c, ph, "name", stringToNasal(c, park->getName()));
|
||||||
|
hashset(c, ph, "lat", naNum(parkLoc.getLatitudeDeg()));
|
||||||
|
hashset(c, ph, "lon", naNum(parkLoc.getLongitudeDeg()));
|
||||||
|
hashset(c, ph, "elevation", naNum(parkLoc.getElevationM()));
|
||||||
|
naVec_append(r, ph);
|
||||||
}
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Add table
Reference in a new issue