BBBikeDownloader.get_coordinates_of_cities

BBBikeDownloader.get_coordinates_of_cities(update=False, confirmation_required=True, verbose=False)[source]

Get location information of cities (geographic regions).

Parameters
  • update (bool) – whether to check on update and proceed to update the package data, defaults to False

  • confirmation_required (bool) – whether to prompt a message for confirmation to proceed, defaults to True

  • verbose (bool or int) – whether to print relevant information in console, defaults to False

Returns

location information of BBBike cities

Return type

pandas.DataFrame or None

Example:

>>> from pydriosm.downloader import BBBikeDownloader

>>> bbbike_downloader = BBBikeDownloader()

>>> coords_of_cities = bbbike_downloader.get_coordinates_of_cities()

>>> print(coords_of_cities.tail())
          City            Real name  ... ur_longitude ur_latitude
233     Zagreb   de!Agram,en!Zagreb  ...       16.291       45.94
234    Zuerich  de!Zürich,en!Zurich  ...         8.87       47.58
238     bbbike                       ...    14.249353   52.355108
240      dummy                       ...      44.5259     33.4238
241  Finowfurt                       ...      13.8591     52.8787

[5 rows x 13 columns]