In [1]:
from bokeh.io import output_notebook, show
output_notebook()


Loading BokehJS ...

In [3]:
from bokeh.models import (
    Circle, GMapPlot, DataRange1d, ColumnDataSource,
    PanTool, WheelZoomTool, BoxSelectTool, BoxZoomTool, GMapOptions)

In [4]:
import pandas as pd
stations = pd.read_json('stations.json').T
stations = stations.rename(columns={
        1: 'longitude',
        0: 'latitude',
        2: 'name',
        3: 'data'
    })

In [6]:
x_range = DataRange1d()
y_range = DataRange1d()

map_options = GMapOptions(
    lat=37.76487, lng=-122.41948, zoom=8, map_type="roadmap"
)

plot = GMapPlot(
    x_range=x_range, y_range=y_range, map_options=map_options, title=None,
)

circle = Circle(y="longitude", x="latitude", size=10, fill_color="red", line_color=None)
plot.add_glyph(ColumnDataSource(stations), circle)
plot.add_tools(PanTool(), WheelZoomTool())

show(plot)


Out[6]:

<Bokeh Notebook handle for In[6]>


In [ ]: