amphinicy / marine-traffic-client-api

A python client for Marine Traffic API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vessel.ship_name.value does not seem to work.

stephansemerad opened this issue · comments

Tried to pull following vessel, I get Lat, Long, Status and mmsi value fine, but not anything else.


api = MarineTrafficApi(api_key=api_key)
vessel = api.single_vessel_positions(time_span=20,mmsi=310593000)

vessel = vessel.models[0]

vessel.mmsi.value
vessel.longitude.value
vessel.latitude.value
vessel.status.value
vessel.ship_name.value
vessel.ship_type.value
vessel.call_sign.value
vessel.current_port.value

Nevermind. I see you have to put the msg_type = 'extended',