Download bus line from the Internet
This repo show you how to download bus line and bus station based on map providers (such as amap, in this case). They can be used for bus operation analysis and many potential applications.
Step 1: Open the map website and the "Developer Mode" (Chrome recommended)
Step 2: Switch to Network/All/Preview
, then search for your expected bus line
Step 3: Click the first item, then you will see the information under the keyword data
.
Step 4: Copy the information and paste it into your local scripts (See shanghai_bus_line.py
for example)
Step 5: Get the bus line information and bus station information (See get_bus_geo_info_manually.ipynb
)
The following image shows 10 bus lines for demonstration
Note:
- Geopandas package is required.
- The GPS coordinator converter is copied from 知名博主小旭学长
- This repo is used for academic purpose only.