I looked for a free API solution to access machine readable AIS Data. This solution uses the free web solutions to crawl the data and returns them in json.
This is a nodejs web app.
Takes position from MT and from VT and returns the newest example: http://localhost:5000/getLastPosition/244140096
Returns position from VF example: http://localhost:5000/getLastPositionFromVF/244140096
Returns position from MT example: http://localhost:5000/getLastPositionFromMT/244140096
Requirements: npm & nodejs.
-
clone this repo
-
run
npm install -
run
node index.js
This application can be easily deployed to heroku, simply install the heroku cli and run the following commands:
heroku create
git push heroku master