derhuerst / flightradar24-client

Fetch aircraft data from Flightradar24.
ISC License
56 stars 19 forks source link

clarify the meaning of north, west, south, east #9

Closed E3V3A closed 6 years ago

E3V3A commented 6 years ago

Please write more clearly that those numbers actually represent! I think they mean the bounding box of:

# radar(north, west, south, east)
const radar = require('flightradar24-client/lib/radar')
radar(53, 13, 52, 14)

The fun part is of course converting distance (in km) to the correct (lat,lon)'s.

derhuerst commented 6 years ago

Please write more clearly that those numbers actually represent! I think they mean the bounding box of:

  • Northern edge latitude
  • Western edge longitude
  • Southern edge latitude
  • Easter edge longitude

Yes, I think it would be helpful to add these. A PR is welcome!

derhuerst commented 6 years ago

The fun part is of course converting distance (in km) to the correct (lat,lon)'s.

It's not the job of this library. You may have a different use case, and still want to use that data. Turf is a well-tested geoprocessing library, that will help you with this.

derhuerst commented 6 years ago

done as of #12.