transbigdata.visualization_data

transbigdata.visualization_data(data, col=['lon', 'lat'], accuracy=500, height=500, maptype='point', zoom='auto')

The input is the data points, this function will aggregate and then visualize it

Parameters:
  • data (DataFrame) – The data point

  • col (List) – The column name. The user can choose a non-weight Origin-Destination (OD) data, in the sequence of [longitude, latitude]. For this, The aggregation is automatic. Or, the user can also input a weighted OD data, in the sequence of [longitude, latitude, count]

  • zoom (number) – Map zoom level (Optional). Default value: auto

  • height (number) – The height of the map frame

  • accuracy (number) – Grid size

  • maptype (str) – Map type, ‘point’ or ‘heatmap’

Returns:

vmap – Visualizations provided by keplergl

Return type:

keplergl.keplergl.KeplerGl