使用MarineTrafficAPI需要进行认证,以确保数据的安全性和合法性。认证方式主要有两种: APIKey:通过注册MarineTraffic账户,获取APIKey。在请求API时,将APIKey作为参数传递。 OAuth2.0:通过OAuth2.0认证机制,获取访问令牌。这种方式更安全,适用于需要长期访问或频繁访问的情况。 2.2API请求格式 MarineTrafficAPI支持多种请求格...
MarineTraffic Live Ships Map. Discover information and vessel positions for vessels around the world. Search the MarineTraffic ships database of more than 550000 active and decommissioned vessels. Search for popular ships globally. Find locations of port
变量名设置为MARINE_TRAFFIC_API_KEY,变量值设置为您的API密钥。 macOS/Linux: 打开终端。 编辑~/.bashrc或~/.zshrc文件,添加以下行: exportMARINE_TRAFFIC_API_KEY=your_api_key 使配置生效: source~/.bashrc #或 source~/.zshrc 1.4创建项目结构
通过MarineTrafficAPI获取指定MMSI的船舶AIS数据 :parammmsi:船舶的MMSI号码 :return:船舶AIS数据 url=f/vessel_details/{mmsi} api_key=your_api_key_here params={ api_key:api_key } response=requests.get(url,params=params) ifresponse.status_code==200: ...
Jean-Charles brings over a decade of experience in the maritime industry, having held key positions at maritime intelligence firms, satellite technology startups, and within the government sector. His extensive expertise in maritime data analytics, vessel tracking technologies, and data quality programs...
defget_vessel_historical_track(mmsi,start_time,end_time,api_key): 获取船舶历史轨迹数据 :parammmsi:船舶的MMSI码 :paramstart_time:开始时间,格式为ISO8601(YYYY-MM-DDTHH:MM:SSZ) :paramend_time:结束时间,格式为ISO8601(YYYY-MM-DDTHH:MM:SSZ) :paramapi_key:MarineTrafficAPI密钥 :return:船舶历史轨迹...
- More than 20 key metrics - 7-days sea meteogram Subscription name: Weather Maps Layers Monthly Cost: $8.99 (USD) Renewed every month i.e. you will be charged monthly Subscription name: Weather Maps Layers Annual Cost: $95.99 (USD) ...