The format
Version 1, a draft. One row per hole and day, the same columns in CSV and GeoJSON. Developers start at Use the files.
A record
On this date, on this hole, the pin was here.
That is all a record says. There is no course ID: the coordinate tells you the course and the green. The hole number is the club's own; don't use it as a key.
date,date_basis,hole,lat,lon,source,accuracy_m,front_m,left_m,input_front,input_offset,input_side,input_unit,channel,missing,play_bearing_deg,correction 2027-04-12,local,7,52.1234561,13.1234573,estimated,,12,9.5,12,5,right,m,openyardage,,274.5, 2027-04-12,local,8,52.1241077,13.122915,mapped,,,,,,,,openyardage,,, 2027-04-12,local,9,,,,,,,,,,,,1,,
The last row is a hole where a pin was set that day but its position has been lost. It stays in the file, because a pin did stand there.
Sources
Positions say how they were obtained; entries made before a tool stored coordinates carry no source.
The column source tells an estimate from a measurement.
estimated
Metres or yards from the front edge and from the left or right edge, as a greenkeeper reads them off. Converted to a coordinate against the green outline in OpenStreetMap on that day. What was typed stays in the record. Where the record also gives the direction of the line of play, anyone can redo the conversion.
How well it matches the ground depends on how well the outline matches
the green. That has not been measured, so an estimate carries no
accuracy_m.
surveyed
GNSS with corrections, for example the OpenPinMarker. correction says which: ppp, rtk, ppk or none. accuracy_m is required: the radius that holds the true position with 95 % probability. A receiver that reports the RMS of one axis gives it times 2.4477.
mapped
Placed on a map or an aerial image. accuracy_m is optional.
detectedno partner delivers this yet
A camera or LiDAR finds the pin. accuracy_m is required.
phone GPSnot accepted
Two metres at best, which on a green is the difference between two pin positions.
Columns
One row per hole and day. The same names are used in the CSV and in the
properties of the GeoJSON. Empty means unknown, never zero.
| Column | Meaning |
|---|---|
| When and where | |
| date | Calendar date at the course, YYYY-MM-DD. |
| date_basis | local, or utc where the local date was not recorded. In New Zealand the two can be a day apart. |
| hole | The hole as the club names it: 7, later perhaps B3. |
| lat, lon | WGS84 in degrees, up to seven decimals. A position measured in ETRS89, for example against SAPOS, is transformed to WGS84 first; in Europe the two differ by about 80 cm. |
| How it was obtained | |
| source | estimated, surveyed, mapped or detected. Empty for older entries made before a tool stored coordinates; then only front_m and left_m are given. |
| accuracy_m | Horizontal accuracy in metres, where one was measured: the radius that holds the true position with 95 % probability. |
| correction | How a surveyed position was corrected: none, ppp (precise point positioning, including Galileo HAS), rtk (real time against a base or a network) or ppk (worked out afterwards against a reference station). |
| front_m, left_m | Metres from the front and the left edge, seen from the line of play, read against the OpenStreetMap green of that day. |
| input_front, input_offset | What was typed: distance from the front and from the side edge, in the unit typed. |
| input_side | left or right: which edge the offset is measured from. |
| input_unit | m or yd. |
| play_bearing_deg | Direction of the line of play at the green, in degrees clockwise from true north, as used to convert what was typed. Only with input_*. |
| Who vouches for it | |
| channel | The data partner the record came through. See Data partners. |
| missing | 1 if a pin was set that day but its position is lost. Everything else after hole is then empty. |
Not in the data
- No IDs for courses, holes, greens or people, and no OpenStreetMap IDs. They change; a coordinate does not.
- No names and no e-mail addresses.
- No time of day. At a small club, the time the pins were set is one person's working hours.
- No pin sets, rotations or plans. Those belong to the tool a club works with.
Files
A day is published three days later, once no course anywhere can still enter pins for it. After that the file does not change. Corrections and withdrawals get files of their own, so what was published on a day can always be checked.
v1/index.json list of files, sizes, sha256, format version v1/days/2027-04-12.csv v1/days/2027-04-12.geojson v1/years/2027.csv all days of a year
Use the files
No account and no key. Everything lives under one address, and index.json lists every file with
its size, row count and sha256 checksum.
https://data.openpinsheet.com/v1/index.json https://data.openpinsheet.com/v1/days/YYYY-MM-DD.csv https://data.openpinsheet.com/v1/days/YYYY-MM-DD.geojson https://data.openpinsheet.com/v1/years/YYYY.csv
Until the first day is published, index.json does not exist and
the address answers 404.
index.json
{
"format": 1,
"generated": "2027-04-15",
"license": { "name": "Open Database License 1.0", "spdx": "ODbL-1.0", "url": "..." },
"files": [
{ "path": "days/2027-04-12.csv", "kind": "day", "date": "2027-04-12",
"bytes": 1234, "sha256": "...", "rows": 18 },
{ "path": "years/2027.csv", "kind": "year", "year": "2027", ... }
]
}
Caching and browsers
- Day files never change. They are served with a one-year cache, so download each one once.
index.jsonand the year files change when a day is added and are cached for five minutes. Checkingindex.jsononce a day is enough: a new day appears at most once a day.- Any website may fetch the files from a browser; cross-origin requests are allowed.
- Compare the sha256 in
index.jsonwith what you downloaded if you keep copies.
Python
import csv, io, json, urllib.request
BASE = "https://data.openpinsheet.com/v1/"
index = json.load(urllib.request.urlopen(BASE + "index.json"))
days = [f for f in index["files"] if f["kind"] == "day" and f["path"].endswith(".csv")]
latest = max(days, key=lambda f: f["date"])
text = urllib.request.urlopen(BASE + latest["path"]).read().decode("utf-8-sig")
lines = (line for line in io.StringIO(text) if not line.startswith("#"))
for row in csv.DictReader(lines):
print(row["date"], row["hole"], row["lat"], row["lon"], row["source"])
JavaScript
const BASE = "https://data.openpinsheet.com/v1/";
const index = await (await fetch(BASE + "index.json")).json();
const days = index.files.filter(f => f.kind === "day" && f.path.endsWith(".geojson"));
const latest = days.reduce((a, b) => (a.date > b.date ? a : b));
const day = await (await fetch(BASE + latest.path)).json();
for (const f of day.features) {
console.log(f.properties.hole, f.properties.source, f.geometry?.coordinates);
}
Delivering pins
Pins come in through data partners. Become one in the account: sign in with GitHub, name your tool or club, then send pins through the API or upload a CSV or KML file.
Licence
The data is under the Open Database License 1.0. Anyone may use, copy and share it. Whoever builds a database from it names the source and shares that database under the same licence. The licence cannot be withdrawn.
Attribution
Pin positions: OpenPinsheet and its data partners, Open Database License 1.0.
Estimated positions are computed against green outlines from OpenStreetMap: map data © OpenStreetMap contributors (ODbL).
The ODbL requires the second line, because a position computed against an OpenStreetMap outline derives from OpenStreetMap.