transbigdata.getbusdata

transbigdata.getbusdata(city, keywords, accurate=True, timeout=20)

Obtain the geographic information of the bus station and bus line from the map service (Only in China)

Parameters:
  • city (str) – city name

  • keywords (list) – Keyword, the line name

  • accurate (bool) – Accurate matching

  • timeout (number) – Timeout of data fetching

Returns:

  • data (GeoDataFrame) – The generated bus line(WGS84)

  • stop (GeoDataFrame) – The generated bus station(WGS84)