zo6-xzz commited on
Commit
09f6fee
·
verified ·
1 Parent(s): 34b1857

Upload README-GoogleAPI-dataset.md

Browse files
Files changed (1) hide show
  1. README-GoogleAPI-dataset.md +119 -0
README-GoogleAPI-dataset.md ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: EV Charging Stations in Finland (Google Places API)
3
+ size_categories:
4
+ - 1K<n<10K
5
+ tags:
6
+ - electric-vehicles
7
+ - ev-charging
8
+ - finland
9
+ - geospatial
10
+ - google-places
11
+ ---
12
+
13
+ # EV Charging Stations in Finland (Google Places API)
14
+
15
+ This dataset lists every public EV charging station in Finland that Google Places returns. Each row is one Google place of type `electric_vehicle_charging_station`. For each place it gives the location and address, opening hours and Google rating. It also lists the connectors at the site, with each connector's type, maximum charging power and, for most sites, live availability.
16
+
17
+
18
+ | | |
19
+ |---|---|
20
+ | Rows | **4,958** charging locations |
21
+ | Columns | 17 |
22
+ | Geography | Finland, including Åland: 554 towns, 1,092 postal codes |
23
+ | Source | Google Places API (New) |
24
+ | Snapshot | Availability data is timestamped **17 Sep 2026, 06:00–07:10 UTC** (09:00–10:10 Helsinki time) |
25
+ | Primary key | `id`, the Google Place ID. Unique, with no duplicate rows. |
26
+ | Coordinates | WGS84. `lat` 59.82–70.08, `lng` 19.86–30.94. All points are inside Finland. |
27
+
28
+ ## Files
29
+
30
+ | File | Size | Contents |
31
+ |---|---|---|
32
+ | `ev_finland.csv` | 2.7 MB | Flattened table, one row per place. **This README describes this file.** |
33
+ | `ev_finland_google_api.json` | 6.4 MB | The raw Places API records with nested fields (`displayName`, `location`, `regularOpeningHours`, `evChargeOptions`, `postalAddress`, …). This is the file the Hugging Face viewer shows. |
34
+
35
+ In the CSV, `name` comes from `displayName.text`, and `lat`/`lng` come from `location`. `openingHours` is `regularOpeningHours.weekdayDescriptions` joined with `; `. `connectorCount` and `connectors` come from `evChargeOptions`. `postalCode` and `regionCode` come from `postalAddress`.
36
+
37
+ ## Quick start
38
+
39
+ ```python
40
+ import pandas as pd, json
41
+
42
+ df = pd.read_csv("hf://datasets/data-sci-project/ev-count-google-api/ev_finland.csv",
43
+ dtype={"postalCode": str}) # keep leading zeros, e.g. "00580"
44
+
45
+ # One row per connector group
46
+ conn = (df.dropna(subset=["connectors"])
47
+ .assign(connectors=lambda d: d.connectors.map(json.loads))
48
+ .explode("connectors"))
49
+ conn = pd.concat([conn[["id", "name"]].reset_index(drop=True),
50
+ pd.json_normalize(conn.connectors.tolist())], axis=1)
51
+
52
+ # Highest power per site. A site counts as a fast charger if it reaches at least 50 kW.
53
+ df["max_kw"] = df.id.map(conn.groupby("id").maxChargeRateKw.max())
54
+ fast = df[df.max_kw >= 50] # 1,337 sites
55
+ ```
56
+
57
+ ---
58
+
59
+ ## Columns
60
+
61
+ | Column | Type | Filled | Distinct | Description |
62
+ |---|---|---|---|---|
63
+ | `id` | str | 4,958 | 4,958 | Google Place ID (`ChIJ…`, 27 chars). |
64
+ | `name` | str | 4,958 | 192 | Display name. This is almost always a **brand label** such as "Plugit Charging Station", not the name of the site. |
65
+ | `primaryType` | str | 4,958 | 1 | Always `electric_vehicle_charging_station`. |
66
+ | `primaryTypeDisplayName` | str | 4,958 | 1 | Always `Electric vehicle charging station`. |
67
+ | `pureServiceAreaBusiness` | bool | 25 | 1 | `False` on 25 rows and empty elsewhere. Carries no information. |
68
+ | `formattedAddress` | str | 4,958 | 4,670 | Full address, e.g. `Kauppamiehentie 1, 21710 Pargas`. |
69
+ | `postalCode` | str | 4,909 | 1,092 | Finnish postal code. Empty on 49 rows. |
70
+ | `regionCode` | str | 4,958 | 1 | Always `FI`. |
71
+ | `lat`, `lng` | float | 4,958 | 4,953 | Coordinates. |
72
+ | `rating` | float | 1,508 | 37 | Average Google rating, 1.0–5.0. |
73
+ | `userRatingCount` | float | 1,508 | 45 | Number of ratings, 1–2,880. |
74
+ | `priceLevel` | float | **0** | — | Always empty. |
75
+ | `priceRange` | float | **0** | — | Always empty. |
76
+ | `connectorCount` | float | 4,273 | 64 | Total connectors at the place, 1–367. It always equals the sum of `count` in `connectors`. |
77
+ | `connectors` | JSON str | 4,273 | 1,466 | List of connector groups. See below. |
78
+ | `openingHours` | str | 4,180 | 71 | Weekly hours as text, e.g. `Monday: Open 24 hours; Tuesday: …`. |
79
+
80
+ ### The `connectors` field
81
+
82
+ This column is a JSON list with one object per connector type and power level at the site. For example:
83
+
84
+ ```json
85
+ [{"type": "EV_CONNECTOR_TYPE_CCS_COMBO_2", "maxChargeRateKw": 250, "count": 4,
86
+ "availableCount": 4, "outOfServiceCount": 0,
87
+ "availabilityLastUpdateTime": "2026-09-17T07:05:00Z"},
88
+ {"type": "EV_CONNECTOR_TYPE_TYPE_2", "maxChargeRateKw": 22, "count": 2}]
89
+ ```
90
+
91
+ | Key | Present in | Meaning |
92
+ |---|---|---|
93
+ | `type` | all 5,673 groups | Connector standard (see table below). |
94
+ | `maxChargeRateKw` | 5,672 groups | Maximum power of this connector group, in kW. |
95
+ | `count` | all | Number of connectors in the group. |
96
+ | `availableCount` | 5,112 groups (90%) | Connectors free at the snapshot time. |
97
+ | `outOfServiceCount` | 5,112 groups | Connectors reported broken at the snapshot time. |
98
+ | `availabilityLastUpdateTime` | 5,112 groups | UTC time when the availability was last updated. |
99
+
100
+ ---
101
+
102
+ ## Known issues
103
+
104
+ 1. **Brand names are inconsistent.** Casing and suffixes vary, e.g. `Virta`, `VIRTA`, `Virta Global`, `Liikennevirta`, and `korttelilataus` alongside `Korttelilataus`. Normalise names before grouping by brand:
105
+ ```python
106
+ brand = (df.name.str.lower()
107
+ .str.replace(r" charging station| global|\.fi|-lataus| oy.*", "", regex=True)
108
+ .str.strip().replace({"liikennevirta": "virta"}))
109
+ ```
110
+ 2. **The same site sometimes appears twice.** 8 rows share 4 coordinate pairs. Helsinki Airport P2 appears as two places, each with 246 connectors. Remove duplicates before summing connectors by area.
111
+ 3. **Some postal codes and addresses are bad.** 49 rows have no `postalCode`. Two codes are invalid: `115610` (Lahti) and `NR9 3LL` (Lappeenranta). 217 addresses contain only a postal code and town. A few are garbled, e.g. `unknown, -, 20520 Turku`, `Hanko`, and an address containing "SWEDEN" for a site in Kuusisto. For location, use `lat`/`lng`.
112
+ 4. **Addresses use different formats.** Åland addresses put the house number first and end in `Åland` (`8, Nyhemsvägen 22150, Åland`). The regex `\d{5},?\s+([^,]+)` pulls the town from 4,955 of the 4,958 addresses.
113
+ 5. **Some power values have floating-point noise.** 88 connector groups have values like `13.800000190734863`. Round `maxChargeRateKw` to 1 decimal place.
114
+ 6. **Opening hours need cleaning before parsing.** 24 rows write all-day opening as `12:00 AM - 11:59 PM` instead of `Open 24 hours`. 127 rows use thin spaces (U+2009) and narrow no-break spaces (U+202F) around the times.
115
+
116
+
117
+ ## Note
118
+
119
+ - This was merged with data from Digitraffic, and the merged data is included in another repo.