# python3版的SeaRoute **Repository Path**: wyne2017/searoute-python ## Basic Information - **Project Name**: python3版的SeaRoute - **Description**: python3版的searoute 使用geojson标准格式数据的FeatureCollection类型及LineString类型 和js版本的searoute一样,使用的dijkstra寻路算法 - **Primary Language**: Python - **License**: WTFPL - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-27 - **Last Updated**: 2023-05-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SeaRoute ## GeoJSON的LineString寻路python版SeaRoute * geojson.json文件,使用标准GeoJSON(type=FeatureCollection,features type=LineString)数据即可 * geojson.json也可由geojson相关的工具绘制导出 * 示例代码test.py : ``` from SeaRoute import SeaRoute sr = SeaRoute('geojson.json') routes,dist = sr.find((31.3,122.9),(21.7,114.1)) print(routes) print('%s km' % dist) ```