Position API

A Node.js/TypeScript API for retrieving real-time positions of vessels and aircraft from various sources, including MarineTraffic (AIS) and ADS-B Exchange.

Features

Getting Started

Prerequisites

Installation

git clone https://github.com/transparency-everywhere/position-api.git
cd position-api
npm install

Configuration

Copy the environment template and adjust as needed:

cp .env.template .env

Build

npm run build

Run

Development mode (with auto-reload):

npm run dev

Production mode:

npm start

API Endpoints

Vessel Position

Aircraft Position

Legacy Endpoints

Development

Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

License

ISC


Powered by Node.js, Express, Puppeteer, and TypeScript. curl http://localhost:5000/legacy/getVesselsInArea/WMED,EMED

Legacy: Get vessels near a location

curl http://localhost:5000/legacy/getVesselsNearMe/37.7749/-122.4194/10

Legacy: Get vessels in port

curl http://localhost:5000/legacy/getVesselsInPort/Hamburg


---

## Notes

- All endpoints return JSON.
- Replace `localhost:5000` with your server's address and port if different.
- Pull requests and issues are welcome!

---

## Notes

- All endpoints return JSON.
- Replace `localhost:5000` with your server's address and port if different.
- Pull requests and issues are welcome!

---
- **Get latest location by ICAO**

GET /adsb/adsbe/:icao/location/latest **Example:** curl http://localhost:5000/adsb/adsbe/abc123/location/latest ```

Legacy Vessel Routes

Notes