dpwoert / CityIO

City 's-Hertogenbosch rendered in 3D
http://www.CityIO.nl
GNU General Public License v2.0
11 stars 2 forks source link

Scrape AIS data #179

Closed dpwoert closed 10 years ago

dpwoert commented 10 years ago

new issue because we can scrape AIS data with a trial account now (see: #90).

url

http://data.aishub.net/ws.php?username=A&format=B&output=C&compress=D&latmin=E&latmax=F&lonmin=G&lonmax=H

API options

1) A - your AISHub username. You will receive it after joining AISHub.
2) B - format of data values (0 - AIS encoding , 1 - Human readable format)
3) C - output format (xml, json)
4) D - compression (0 - no compression, 1 - ZIP, 2 - GZIP, 3 - BZIP2)
5) E - South (minimum) latitude (default = -90)
6) F - North (maximum) latitude (default = +90)
7) G - West (minimum) longitude (default = -180)
8) H - East (maximum) longitude (default = +180)

@Hedva, can you determine latmin, latmax, lonmin and latmax?

dpwoert commented 10 years ago
{
      "MMSI": 636015265,
      "TIME": "1399109837",
      "LONGITUDE": 8496400,
      "LATITUDE": 22038474,
      "COG": 2829,
      "SOG": 112,
      "HEADING": 283,
      "NAVSTAT": 0,
      "IMO": 9224142,
      "NAME": "VECHTDIEP",
      "CALLSIGN": "A8ZO9",
      "TYPE": 70,
      "A": 104,
      "B": 14,
      "C": 11,
      "D": 4,
      "DRAUGHT": 72,
      "DEST": "ALICANTE",
      "ETA": 340224
    }

example row

dpwoert commented 10 years ago

scraper is made