I created a simple dashboard using Streamlit to visualize local search performance across multiple locations. Here's the core code for displaying a map with markers:
python
import streamlit as st
import pandas as pd
import pydeck as pdk
df = pd.read_csv('locations_with_metrics.csv')
st.pydeck_chart(pdk.Deck(
map_style='mapbox://styles/mapbox/light-v9',
initial_view_state=pdk.ViewState(latitude=df['lat'].mean(), longitude=df['lng'].mean(), zoom=10),
layers=[pdk.Layer('ScatterplotLayer', data=df, get_position='[lng, lat]', get_radius='100', get_fill_color='[255, 0, 0, 160]')]
))
To populate the dataset, I pull location-specific rankings using SERPSpur's API. What's your preferred tool for building SEO dashboards?
Top comments (0)