Datasets:
image image | doc_id string | lat float64 | lon float64 | year int64 | timestamp timestamp[s] | road_category string | road_number int64 | road_section string | meter float64 | lane string | heading float64 | county_number int64 | image_type string | detected_objects string | address_text string | embedding list |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Vegbilder_2025.2025-05-20T13.51.51_FV06502_S1D1_m00552_Planar_1 | 63.071942 | 9.620846 | 2,025 | 2025-05-20T11:51:51 | F | 6,502 | S1D1 | 551.88 | 1 | 157.81566 | 50 | Planar | {} | Kvamsveien 72, 7336 MELDAL, ORKLAND | [
-0.005299612,
-0.0367192,
-0.00019356469,
0.0029332244,
0.020228269,
-0.004132226,
0.0065778876,
-0.0038851078,
0.010688422,
-0.013285757,
0.015532495,
0.018945986,
0.0058150813,
0.00097421824,
-0.00490402,
0.01410968,
-0.019319408,
0.013722877,
-0.005532299,
0.004508142,
0.0... | |
Vegbilder_2025.2025-05-20T13.51.29_FV06502_S1D1_m00232_Planar_1 | 63.074592 | 9.618516 | 2,025 | 2025-05-20T11:51:29 | F | 6,502 | S1D1 | 231.84 | 1 | 146.964081 | 50 | Planar | {} | Losveien 571, 7334 STORÅS, ORKLAND | [
-0.019359551,
-0.028692905,
0.00958028,
0.002060543,
0.019676743,
0.00032364065,
0.016727038,
0.0069696405,
0.0060354457,
-0.008288331,
0.0019310024,
0.01473053,
-0.006828027,
0.0019133602,
-0.010853198,
0.0032255028,
-0.013364697,
0.008061573,
-0.004712719,
-0.012708815,
0.0... | |
Vegbilder_2025.2025-05-20T13.51.57_FV06502_S1D1_m00652_Planar_1 | 63.071135 | 9.621678 | 2,025 | 2025-05-20T11:51:57 | F | 6,502 | S1D1 | 651.88 | 1 | 150.650831 | 50 | Planar | {} | Kvamsveien 72, 7336 MELDAL, ORKLAND | [
-0.013950691,
-0.022888854,
0.0059601413,
0.0067472435,
0.010984389,
-0.0035961587,
0.009508427,
0.0019718332,
0.016527737,
-0.020317132,
0.01152663,
0.009948673,
0.011246843,
-0.0061149253,
-0.010911985,
0.010406325,
-0.012913918,
0.011586065,
0.00048659366,
-0.002232811,
0.... | |
Vegbilder_2025.2025-05-20T13.51.10_FV06502_S1D1_m00032_Planar_1 | 63.07578 | 9.61566 | 2,025 | 2025-05-20T11:51:10 | F | 6,502 | S1D1 | 31.79 | 1 | 113.519916 | 50 | Planar | {"car": "1"} | Hovsveien 3, 7336 MELDAL, ORKLAND | [
-0.011876624,
-0.024803303,
0.0019964764,
0.013651338,
0.012796442,
-0.011160987,
0.01615238,
-0.007495464,
0.010263167,
-0.032151256,
0.025859443,
0.02315592,
-0.00022117863,
0.0001069022,
-0.0012963916,
0.012977038,
-0.013605552,
0.0070871916,
-0.0030755016,
-0.009713193,
0... | |
Vegbilder_2025.2025-05-20T13.51.21_FV06502_S1D1_m00132_Planar_1 | 63.07527 | 9.617245 | 2,025 | 2025-05-20T11:51:21 | F | 6,502 | S1D1 | 131.82 | 1 | 129.783136 | 50 | Planar | {} | Losveien 571, 7334 STORÅS, ORKLAND | [-0.016700374,-0.0217573,0.0074187,-0.0013872605,0.0142502915,0.008159651,0.03027026,-0.002843432,0.(...TRUNCATED) | |
Vegbilder_2025.2025-05-20T13.51.43_FV06502_S1D1_m00432_Planar_1 | 63.07294 | 9.619991 | 2,025 | 2025-05-20T11:51:43 | F | 6,502 | S1D1 | 431.88 | 1 | 158.403209 | 50 | Planar | {} | Kvamsveien 72, 7336 MELDAL, ORKLAND | [-0.015172335,-0.032663018,0.012531767,0.015679698,0.02621437,-0.004893418,0.017392443,0.0018178006,(...TRUNCATED) | |
Vegbilder_2025.2025-05-20T13.49.47_FV06502_S1D1_m00412_Planar_2 | 63.07288 | 9.620077 | 2,025 | 2025-05-20T11:49:47 | F | 6,502 | S1D1 | 411.96 | 2 | 338.733171 | 50 | Planar | {} | Kvamsveien 72, 7336 MELDAL, ORKLAND | [-0.021447027,-0.03459037,0.000101272606,0.0035847311,0.01819545,-0.004703401,0.021061346,-0.0038027(...TRUNCATED) | |
Vegbilder_2025.2025-05-20T13.50.06_FV06502_S1D1_m00112_Planar_2 | 63.075239 | 9.617372 | 2,025 | 2025-05-20T11:50:06 | F | 6,502 | S1D1 | 111.7 | 2 | 311.571217 | 50 | Planar | {} | Losveien 571, 7334 STORÅS, ORKLAND | [-0.016165042,-0.022502022,0.028490955,0.0047709653,0.009995689,0.010676637,0.025584057,-0.013563454(...TRUNCATED) | |
Vegbilder_2025.2025-05-20T13.49.34_FV06502_S1D1_m00632_Planar_2 | 63.071065 | 9.621791 | 2,025 | 2025-05-20T11:49:34 | F | 6,502 | S1D1 | 632.06 | 2 | 324.622757 | 50 | Planar | {} | Kvamsveien 72, 7336 MELDAL, ORKLAND | [-0.018459285,-0.027577681,0.0131309135,0.0030044543,0.021541264,0.0009824956,0.009034577,-0.0002553(...TRUNCATED) | |
Vegbilder_2025.2025-05-20T13.50.00_FV06502_S1D1_m00212_Planar_2 | 63.074546 | 9.618619 | 2,025 | 2025-05-20T11:50:00 | F | 6,502 | S1D1 | 211.74 | 2 | 333.969554 | 50 | Planar | {} | Losveien 571, 7334 STORÅS, ORKLAND | [-0.0235465,-0.038811523,0.007833424,-0.0017334144,0.019417943,0.0018341034,0.009949838,0.007589305,(...TRUNCATED) |
End of preview. Expand in Data Studio
Norwegian Road Images with Embeddings (Trondheim Area)
A dataset of 34,908 road images from the Trondheim region of Norway (~40km radius), captured by Statens vegvesen (Norwegian Public Roads Administration) in 2025. Each image is paired with rich geospatial metadata, nearest address information, and a 3072-dimensional image embedding from Google's gemini-embedding-2-preview model.
Dataset Structure
Each example contains:
| Field | Type | Description |
|---|---|---|
image |
Image | Road camera JPEG image (4011x2018) |
doc_id |
string | Unique identifier from Vegbilder |
lat |
float | Latitude (WGS84) |
lon |
float | Longitude (WGS84) |
year |
int | Capture year (2025) |
timestamp |
string | Capture time (ISO 8601) |
road_category |
string | Road type: E (European), R (National), F (County) |
road_number |
int | Road number |
road_section |
string | Road section (e.g., "S2D1") |
meter |
float | Meter position along road segment |
lane |
string | Lane code (1 or 2, indicating direction) |
heading |
float | Camera heading in degrees |
county_number |
int | Norwegian county number (50 = Trondheim region) |
image_type |
string | Camera type (Planar) |
detected_objects |
string | Auto-detected objects as JSON (e.g., {"car": "1"}) |
address_text |
string | Nearest address from Geonorge (e.g., "Innherredsveien 1, 7014 TRONDHEIM, TRONDHEIM") |
embedding |
list[float] | 3072-dim image embedding from gemini-embedding-2-preview |
Road Category Distribution
| Category | Count | Description |
|---|---|---|
| F (County) | 31,412 | County roads |
| E (European) | 3,499 | European highways (e.g., E6, E39) |
| R (National) | 183 | National roads |
~82% of images have a resolved nearest address from Geonorge.
Usage
Load the dataset
from datasets import load_dataset
ds = load_dataset("thomasht86/road-images-and-embeddings", split="train")
# Access a single example
example = ds[0]
print(example["address_text"]) # "Kvamsveien 72, 7336 MELDAL, ORKLAND"
print(example["image"].size) # (4011, 2018)
print(len(example["embedding"])) # 3072
Stream the dataset (recommended for large datasets)
from datasets import load_dataset
ds = load_dataset("thomasht86/road-images-and-embeddings", split="train", streaming=True)
for example in ds:
image = example["image"]
embedding = example["embedding"]
lat, lon = example["lat"], example["lon"]
# Process...
Use embeddings for similarity search
import numpy as np
from datasets import load_dataset
ds = load_dataset("thomasht86/road-images-and-embeddings", split="train")
# Build embedding matrix
embeddings = np.array(ds["embedding"]) # (34908, 3072)
# Find similar images to the first one
query = embeddings[0]
similarities = embeddings @ query / (np.linalg.norm(embeddings, axis=1) * np.linalg.norm(query))
top_k = np.argsort(similarities)[-5:][::-1]
for idx in top_k:
print(f" {ds[int(idx)]['address_text']} (similarity: {similarities[idx]:.3f})")
Filter by location or road type
# Only European highways
e_roads = ds.filter(lambda x: x["road_category"] == "E")
# Only images near Trondheim city center
import math
def near_center(example):
dlat = example["lat"] - 63.43
dlon = example["lon"] - 10.40
return math.sqrt(dlat**2 + dlon**2) < 0.05
city_center = ds.filter(near_center)
Data Collection
- Image metadata was collected via the Vegbilder WFS endpoint, tiling the bounding box into 0.01-degree chunks
- Address enrichment was performed using the Geonorge punktsok API, with coordinate-grid caching at ~100m resolution
- Image thinning was applied at 100m minimum spacing along each road segment to reduce redundancy (original dataset: 243,418 images)
- Embeddings were generated using Google Gemini Batch API with the
gemini-embedding-2-previewmultimodal embedding model at 3072 dimensions
Intended Uses
- Visual road condition monitoring and analysis
- Geospatial image search and retrieval
- Multimodal search applications (text-to-image via shared embedding space)
- Training and evaluation of road scene understanding models
- Urban and infrastructure planning research
Limitations
- Images are from 2025 only (single year snapshot)
- Coverage is limited to the Trondheim area (~40km radius)
- ~18% of images lack address information (rural/remote areas)
- 186 images from the original selection could not be downloaded (0.5%)
- Embeddings are from a preview model (
gemini-embedding-2-preview) which may change
Citation
If you use this dataset, please credit the original data source:
Statens vegvesen (2025). Vegbilder. Norwegian Public Roads Administration.
Licensed under NLOD 2.0: https://data.norge.no/nlod/en/2.0
- Downloads last month
- 2,871
Source
(OGC WFS 2.0.0)
License
(Norwegian Licence for Open Government Data) - free to use with attribution
Attribution
: Statens vegvesen / Norwegian Public Roads Administration
Area
: Trondheim, Norway (~40km radius, bbox: 63.07-63.79N, 9.61-11.19E)
Spacing
: Images sampled at ~100m intervals along each road segment
Resolution
: 4011 x 2018 pixels (planar road camera images)
Embeddings
gemini-embedding-2-preview
Number of rows:
4,900
Total file size:
37.1 GB