Public dataset · Government, society and transport
London Bicycle Hires in BigQuery
The london_bicycles dataset has 83 million hires from London's public cycle hire scheme with start and end station, times and duration, plus a station table. It is 9.6 GiB and stored in the EU multi-region, so you must run queries in the EU and cannot join it with US datasets.
bigquery-public-data.london_bicycles holds London's public cycle hire data from Transport for London. Unlike most public datasets it is located in the EU multi-region. Neither table has a description in the metadata.
cycle_hire has one row per hire with rental_id, duration (seconds) and duration_ms, bike_id and bike_model, start and end date, and start and end station id and name. It was last modified in July 2025. cycle_stations has 800 stations with coordinates, number of docks and bikes, install and removal dates.
Tables and sizes
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
cycle_hireOne row per hire. | 83,434,866 | 9.6 GiB | $0.06 | None |
cycle_stationsStations with coordinates and docks. | 800 | 78.2 KiB | under $0.01 | None |
Example queries
Busiest start stations, grouped by name
Grouping on the station name string reads that whole text column.
SELECT start_station_name, COUNT(*) AS hires
FROM `bigquery-public-data.london_bicycles.cycle_hire`
GROUP BY start_station_name
ORDER BY hires DESC
LIMIT 20;Busiest start stations, grouped by id and joined to stations
The cheaper version: group on the integer start_station_id and take names and coordinates from cycle_stations. About a quarter of the bytes.
SELECT
s.name,
s.docks_count,
s.latitude,
s.longitude,
COUNT(*) AS hires
FROM `bigquery-public-data.london_bicycles.cycle_hire` AS h
JOIN `bigquery-public-data.london_bicycles.cycle_stations` AS s
ON h.start_station_id = s.id
GROUP BY s.name, s.docks_count, s.latitude, s.longitude
ORDER BY hires DESC
LIMIT 20;Hires and average duration by hour of day
start_date is a TIMESTAMP, and EXTRACT(HOUR FROM start_date) returns the hour in UTC. Add AT TIME ZONE 'Europe/London' inside EXTRACT for London local time.
SELECT
EXTRACT(HOUR FROM start_date) AS hour,
COUNT(*) AS hires,
ROUND(AVG(duration) / 60, 1) AS avg_minutes
FROM `bigquery-public-data.london_bicycles.cycle_hire`
GROUP BY hour
ORDER BY hour;Every hire from one station with SELECT * (expensive)
No partitioning or clustering, so filtering one station still reads every column of every hire.
SELECT *
FROM `bigquery-public-data.london_bicycles.cycle_hire`
WHERE start_station_id = 154;Querying it cheaply
- Run queries with the processing location set to EU. Querying from a US location fails with a dataset not found in location error, and results can only be written to EU datasets.
- Station names are the heaviest columns. Group by station id and join names from the 800-row
cycle_stationstable. cycle_hireis not partitioned or clustered, so date and station filters do not reduce bytes.- On-demand pricing in the EU multi-region is the same $6.25 per TiB as in the US.
FAQ
How much does it cost to query London bicycles in BigQuery?
Aggregate queries read 0.6 to 2.3 GiB, and SELECT * reads 9.6 GiB, about $0.06 at the $6.25 per TiB on-demand list price. Everything fits easily in the free 1 TiB a month.
Is the London bicycles dataset free?
Yes for storage: the data sits in the bigquery-public-data project and Google pays to store it. You pay for the queries you run from your own project. On-demand, the first 1 TiB scanned each month is free, then you pay per TiB scanned (see BigQuery pricing).
Why do I get "Not found: Dataset bigquery-public-data:london_bicycles"?
The dataset is in the EU multi-region and your query ran in another location, usually US. Set the query location to EU in the console's query settings or with --location=EU in the bq CLI.
Can I join london_bicycles with a US dataset?
Not in one query. BigQuery queries run in a single location. Copy the data you need into datasets in the same location first.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
