transparency-everywhere/position-api ? reverse-engineered prompt
Reverse engineered prompt
Build me a small local API that gives live position data for ships and planes. I want to be able to look up a vessel by MMSI and an aircraft by ICAO and get back clean JSON with the latest location. For ships, also include the older style routes so I can query the last position, find vessels in one or more named areas, find vessels near a latitude and longitude within a distance, and list vessels in a port.
Please make it work as a TypeScript Node service that I can run locally with an env file, and make sure the scraping side is set up so it can pull data from MarineTraffic for AIS and ADS B Exchange for aircraft. Keep the API straightforward and compatible with the example routes in the readme, including running on a local port like 5000.
If anything is unclear, look up current docs online if you need to. Also make sure it can build, run in dev and production, and pass its tests.
Have a live product UI? Try website reverse