Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
trip
int64
0
98
step
int64
0
468
x0
int64
-8,728,263
-8,376,696
y0
int64
41.1M
41.6M
x1
int64
-8,729,766
-8,376,696
y1
int64
41.1M
41.6M
prior_count
int64
0
19
entered
listlengths
0
15
exited
listlengths
0
9
0
0
-8,585,676
41,148,522
-8,585,712
41,148,639
9
[]
[]
0
1
-8,585,712
41,148,639
-8,585,685
41,148,855
9
[]
[]
0
2
-8,585,685
41,148,855
-8,585,730
41,148,927
9
[]
[]
0
3
-8,585,730
41,148,927
-8,585,982
41,148,963
9
[ 116 ]
[ 51, 234 ]
0
4
-8,585,982
41,148,963
-8,586,396
41,148,954
8
[]
[ 27 ]
0
5
-8,586,396
41,148,954
-8,586,072
41,148,720
7
[ 51, 234 ]
[]
0
6
-8,586,072
41,148,720
-8,586,324
41,147,847
9
[]
[ 51, 234 ]
0
7
-8,586,324
41,147,847
-8,586,999
41,147,460
7
[ 101 ]
[]
0
8
-8,586,999
41,147,460
-8,586,576
41,147,154
8
[]
[ 101 ]
0
9
-8,586,576
41,147,154
-8,584,884
41,146,623
7
[ 155 ]
[ 116, 248 ]
1
0
-8,610,876
41,145,570
-8,610,858
41,145,579
13
[]
[]
1
1
-8,610,858
41,145,579
-8,610,903
41,145,768
13
[ 90 ]
[ 255 ]
1
2
-8,610,903
41,145,768
-8,610,444
41,146,191
13
[ 58 ]
[ 77, 90 ]
1
3
-8,610,444
41,146,191
-8,609,445
41,146,758
12
[ 28, 32, 109, 124 ]
[]
1
4
-8,609,445
41,146,758
-8,608,896
41,147,118
16
[ 91, 125 ]
[]
1
5
-8,608,896
41,147,118
-8,608,968
41,147,127
18
[]
[]
1
6
-8,608,968
41,147,127
-8,608,707
41,147,532
18
[]
[]
1
7
-8,608,707
41,147,532
-8,608,347
41,148,117
18
[ 89 ]
[ 38, 124, 223, 242 ]
1
8
-8,608,347
41,148,117
-8,608,149
41,148,351
15
[ 158 ]
[]
1
9
-8,608,149
41,148,351
-8,608,041
41,148,576
16
[]
[]
1
10
-8,608,041
41,148,576
-8,607,654
41,149,260
16
[]
[ 28, 68, 91, 109 ]
1
11
-8,607,654
41,149,260
-8,607,348
41,149,899
12
[]
[]
1
12
-8,607,348
41,149,899
-8,607,393
41,149,899
12
[]
[]
1
13
-8,607,393
41,149,899
-8,607,357
41,149,962
12
[]
[]
1
14
-8,607,357
41,149,962
-8,606,817
41,150,979
12
[ 206 ]
[ 58 ]
1
15
-8,606,817
41,150,979
-8,606,358
41,151,915
12
[ 44, 92 ]
[ 17 ]
1
16
-8,606,358
41,151,915
-8,605,719
41,152,788
13
[ 170, 220 ]
[ 11, 89 ]
1
17
-8,605,719
41,152,788
-8,604,981
41,153,319
13
[ 248 ]
[ 220 ]
1
18
-8,604,981
41,153,319
-8,604,783
41,154,345
13
[]
[]
1
19
-8,604,783
41,154,345
-8,604,828
41,154,372
13
[]
[]
1
20
-8,604,828
41,154,372
-8,604,801
41,155,353
13
[ 230 ]
[ 71, 221, 248 ]
1
21
-8,604,801
41,155,353
-8,604,648
41,156,775
11
[]
[ 122 ]
1
22
-8,604,648
41,156,775
-8,604,522
41,158,197
10
[]
[ 5, 32 ]
1
23
-8,604,522
41,158,197
-8,604,513
41,159,943
8
[ 23, 34, 128, 188 ]
[]
1
24
-8,604,513
41,159,943
-8,604,378
41,160,555
12
[]
[ 167 ]
1
25
-8,604,378
41,160,555
-8,604,378
41,160,600
11
[]
[]
1
26
-8,604,378
41,160,600
-8,604,369
41,160,645
11
[]
[]
1
27
-8,604,369
41,160,645
-8,604,360
41,160,807
11
[ 42 ]
[]
1
28
-8,604,360
41,160,807
-8,604,162
41,161,176
12
[]
[ 158 ]
1
29
-8,604,162
41,161,176
-8,604,126
41,161,248
11
[]
[]
1
30
-8,604,126
41,161,248
-8,604,090
41,161,293
11
[]
[]
1
31
-8,604,090
41,161,293
-8,604,090
41,161,266
11
[]
[]
1
32
-8,604,090
41,161,266
-8,604,108
41,161,239
11
[]
[]
1
33
-8,604,108
41,161,239
-8,604,126
41,161,194
11
[]
[]
1
34
-8,604,126
41,161,194
-8,604,135
41,161,275
11
[]
[]
1
35
-8,604,135
41,161,275
-8,603,910
41,162,049
11
[]
[ 42, 44 ]
1
36
-8,603,910
41,162,049
-8,602,929
41,162,832
9
[ 131 ]
[ 125, 206 ]
1
37
-8,602,929
41,162,832
-8,602,551
41,163,111
8
[]
[]
1
38
-8,602,551
41,163,111
-8,601,894
41,163,597
8
[]
[ 34 ]
2
0
-8,585,739
41,148,558
-8,585,730
41,148,828
9
[]
[]
2
1
-8,585,730
41,148,828
-8,585,721
41,148,972
9
[]
[ 51, 234 ]
2
2
-8,585,721
41,148,972
-8,586,288
41,149,017
7
[ 116 ]
[ 27 ]
2
3
-8,586,288
41,149,017
-8,586,117
41,148,567
7
[ 51 ]
[]
2
4
-8,586,117
41,148,567
-8,586,198
41,148,315
8
[]
[]
2
5
-8,586,198
41,148,315
-8,586,279
41,147,919
8
[]
[ 51 ]
2
6
-8,586,279
41,147,919
-8,587,152
41,147,325
7
[ 101 ]
[]
2
7
-8,587,152
41,147,325
-8,585,685
41,146,839
8
[]
[ 101, 116 ]
2
8
-8,585,685
41,146,839
-8,584,281
41,146,200
6
[ 155 ]
[ 115, 248 ]
2
9
-8,584,281
41,146,200
-8,583,075
41,145,111
5
[]
[]
2
10
-8,583,075
41,145,111
-8,581,365
41,144,850
5
[]
[ 119 ]
2
11
-8,581,365
41,144,850
-8,579,511
41,145,651
4
[]
[]
2
12
-8,579,511
41,145,651
-8,579,349
41,145,858
4
[]
[]
2
13
-8,579,349
41,145,858
-8,579,232
41,146,308
4
[]
[]
2
14
-8,579,232
41,146,308
-8,579,700
41,147,847
4
[ 186 ]
[]
2
15
-8,579,700
41,147,847
-8,578,728
41,150,241
5
[ 98 ]
[ 186 ]
2
16
-8,578,728
41,150,241
-8,580,024
41,152,077
5
[]
[]
2
17
-8,580,024
41,152,077
-8,581,518
41,153,292
5
[ 80 ]
[]
2
18
-8,581,518
41,153,292
-8,582,022
41,153,832
6
[]
[]
2
19
-8,582,022
41,153,832
-8,582,409
41,154,390
6
[]
[]
2
20
-8,582,409
41,154,390
-8,582,679
41,154,903
6
[ 214 ]
[]
2
21
-8,582,679
41,154,903
-8,582,895
41,155,578
7
[ 26, 119, 176 ]
[ 146 ]
2
22
-8,582,895
41,155,578
-8,582,985
41,156,487
9
[]
[]
2
23
-8,582,985
41,156,487
-8,582,949
41,156,991
9
[ 152 ]
[ 155, 203 ]
2
24
-8,582,949
41,156,991
-8,582,742
41,157,774
8
[]
[ 119 ]
2
25
-8,582,742
41,157,774
-8,582,508
41,158,386
7
[ 126 ]
[]
2
26
-8,582,508
41,158,386
-8,582,346
41,158,773
8
[ 240 ]
[ 126 ]
2
27
-8,582,346
41,158,773
-8,582,130
41,159,295
8
[]
[ 240 ]
2
28
-8,582,130
41,159,295
-8,581,500
41,160,816
7
[ 161 ]
[ 214 ]
2
29
-8,581,500
41,160,816
-8,580,978
41,162,715
7
[]
[ 41, 98 ]
2
30
-8,580,978
41,162,715
-8,580,411
41,163,966
5
[]
[]
2
31
-8,580,411
41,163,966
-8,579,871
41,164,038
5
[]
[]
2
32
-8,579,871
41,164,038
-8,578,791
41,164,767
5
[ 193 ]
[]
2
33
-8,578,791
41,164,767
-8,577,621
41,165,361
6
[]
[]
2
34
-8,577,621
41,165,361
-8,577,513
41,165,415
6
[]
[]
2
35
-8,577,513
41,165,415
-8,577,342
41,165,739
6
[]
[]
2
36
-8,577,342
41,165,739
-8,576,946
41,166,441
6
[ 123 ]
[ 161 ]
2
37
-8,576,946
41,166,441
-8,575,902
41,167,233
6
[]
[ 123, 176 ]
2
38
-8,575,902
41,167,233
-8,574,903
41,167,719
4
[]
[ 193 ]
3
0
-8,613,963
41,141,169
-8,614,125
41,141,124
8
[]
[]
3
1
-8,614,125
41,141,124
-8,615,088
41,140,926
8
[ 140 ]
[]
3
2
-8,615,088
41,140,926
-8,615,277
41,140,818
9
[]
[]
3
3
-8,615,277
41,140,818
-8,615,259
41,140,809
9
[]
[]
3
4
-8,615,259
41,140,809
-8,615,241
41,140,800
9
[]
[]
3
5
-8,615,241
41,140,800
-8,615,052
41,140,818
9
[]
[]
3
6
-8,615,052
41,140,818
-8,614,638
41,140,980
9
[]
[ 140 ]
4
0
-8,619,903
41,148,036
-8,619,894
41,148,036
12
[]
[]
5
0
-8,630,613
41,178,249
-8,630,613
41,178,249
6
[]
[]
5
1
-8,630,613
41,178,249
-8,630,739
41,178,231
6
[]
[]
5
2
-8,630,739
41,178,231
-8,631,513
41,178,141
6
[ 54 ]
[ 143 ]
5
3
-8,631,513
41,178,141
-8,631,306
41,178,114
6
[ 143 ]
[]
End of preview. Expand in Data Studio

Porto Geofence Membership Changes

Given two consecutive taxi positions, which subscribed regions gained or lost the taxi? This correctness fixture pairs 4469 historical GPS updates from 99 Porto trip prefixes with 256 reproducible synthetic rectangles. You can test a geofencing engine, a spatial subscription router, or your own implementation against exact per-update labels.

1937 updates change at least one membership. 2532 change none, including 116 stationary updates. Across the full replay there are 1955 entries and 2016 exits. The dataset fits in memory and has a single test split.

File Contents
moves.jsonl.gz Gzip-compressed UTF-8 JSON Lines, one movement per line
zones.json Array of 256 rectangles in zone-ID order, each given as [xmin, ymin, xmax, ymax]

Load and score a geofencing engine

from datasets import load_dataset
from huggingface_hub import hf_hub_download
import json

repo = "pgg-engineering/edgechime-bench"
moves = load_dataset(repo, "porto-256", split="test")
with open(hf_hub_download(repo, "zones.json", repo_type="dataset")) as file:
    zones = json.load(file)

def predict(row):
    def contains(box, x, y):
        x_lo, y_lo, x_hi, y_hi = box
        return x_lo <= x < x_hi and y_lo <= y < y_hi

    old = {i for i, box in enumerate(zones) if contains(box, row["x0"], row["y0"])}
    new = {i for i, box in enumerate(zones) if contains(box, row["x1"], row["y1"])}
    return new - old, old - new

def exact_match(row):
    entered, exited = predict(row)
    return sorted(entered) == row["entered"] and sorted(exited) == row["exited"]

print(sum(map(exact_match, moves)) / len(moves))  # 1.0 for this reference

Replace predict with your engine. Return all callbacks, including repeats, when checking an event emitter. The scorer accepts any order and counts a row as correct only if both directions and their multiplicities match. For timing, build the index before replay and report build time, steady-state query time, and correctness separately. A local clone can read the split with Python's gzip.open("moves.jsonl.gz", "rt") and json.loads(line).

Schema and geometry

Field Meaning
trip, step Zero-based trip ordinal in the selected sample and move ordinal within the trip. Each trip has its own sequence.
x0, y0, x1, y1 Previous and current longitude/latitude as signed integer microdegrees (WGS84). Divide each by 1,000,000 for degrees.
prior_count Number of zones containing the previous position, including memberships retained at the next position.
entered, exited Ascending lists of zero-based zone IDs whose membership changed between endpoints.

A point belongs to a zone when both coordinates meet its lower bounds and are strictly below its upper bounds. A move that passes through a zone with both endpoints outside yields no event for that zone. The ordering of rows is trip-major, then chronological within trip.

Provenance, generation and scope

The fixture takes the first 100 data records in file order from UCI's Porto_taxi_data_test_partial_trajectories.csv, retains records with MISSING_DATA=False and at least two positions, and rounds longitude and latitude to integer microdegrees. It retains all 4568 positions from the 99 selected partial tracks, including repeated observations. The source describes a nominal 15-second sample cadence. Only coordinates and a new trip ordinal are published.

PGG Engineering generated overlapping subscriptions at three sizes. A 32-bit linear congruential generator starts at 270113, selects observed positions uniformly with replacement, and draws independent half-widths and half-heights in integer microdegrees. For zone ID modulo three, the full ranges of possible half-extents are 250–499, 1,500–2,999, or 6,000–11,999 respectively. Every fourth box places an X edge at its sampled longitude, alternating left and right edges, to exercise boundary ties. Labels were generated by testing both endpoints against every rectangle. The exporter checks the full label stream against EdgeChime's index.

This fixture measures endpoint membership on one small nonrandom sample from one city. The rectangular zones are synthetic and depend on the sampled positions. The taxi source supplies movements only. Accuracy on this replay gives no production latency or accuracy guarantee for polygons, moving regions, or intermediate path crossings.

From the source archive, run node bench/export-dataset.mjs ./porto-export with Node 18+. The exporter uses the included trace. To regenerate the trace from UCI first, run python3 bench/trace_porto.py. SHA-256 of zones.json is a10b4cd73ef20dbce8519993cf4dca06993e45ae8fc513ced2caedf900b10b0e. SHA-256 of the decompressed JSON Lines is de43bdcfd3c72c546b65215f3b67e3235e2277b7a0e644ff9db0bf7522f2fb23.

Interactive Space · EdgeChime source and benchmark

Attribution and license

Original data by Luis Moreira-Matias, Michel Ferreira, Joao Mendes-Moreira, L. L., and J. J. (2013), Taxi Service Trajectory – Prediction Challenge, ECML PKDD 2015, UCI Machine Learning Repository. PGG Engineering selected partial trajectories, quantized coordinates, generated zones and computed the labels. This adapted dataset is distributed under Creative Commons Attribution 4.0 International. Original UCI record · CC BY 4.0

Downloads last month
40

Space using pgg-engineering/edgechime-bench 1