Home / Blog / Four OSM tags, one winery
June 16, 2026· Wine World Map
Four OSM tags, one winery
A "winery" in OpenStreetMap is not one thing. It's at least four overlapping tag combinations, and the overlap is messy enough that the import script spent its first three weeks producing wrong answers.
The naive query is craft=winery. That's what the OSM wiki tells
you. It returns roughly 11,000 nodes worldwide, which sounds about
right until you notice that most German Weingüter aren't tagged
that way, and neither are many Italian cantine. The actual import
has to look at four tags and then decide which ones to keep.
The four tags
[out:json][timeout:120];
(
nwr["craft"="winery"](area.country);
nwr["industrial"="winery"](area.country);
nwr["shop"="wine"](area.country);
nwr["tourism"="attraction"]["name"~"winery|weingut|cantina|domaine|bodega",i](area.country);
);
out center tags;
Each tag means something slightly different in practice. craft=winery
is what the wiki recommends: a small-to-medium producer. industrial=winery
is the same idea at a bigger scale, used for cooperatives and industrial
facilities. shop=wine is technically a wine shop, but in wine country
the line between "we sell wine" and "we make wine and you can buy it
here" is paper-thin and contributors guess. tourism=attraction catches
the wineries that someone added because they're on a wine route, never
mind that the same place is probably tagged twice.
What the tags actually correlate with
We ran the four queries against five countries and looked at how many results each one returned, and how much they overlapped:
| Country | craft | industrial | shop=wine | tourism | Final after dedup | |---|---:|---:|---:|---:|---:| | France | 2,140 | 38 | 410 | 290 | 2,460 | | Italy | 1,820 | 95 | 270 | 180 | 2,050 | | Germany | 510 | 12 | 380 | 60 | 720 | | USA | 1,610 | 22 | 880 | 410 | 2,180 | | Spain | 940 | 110 | 95 | 70 | 1,140 |
Germany is the interesting one. A lot of Weingüter are tagged
shop=wine because the Strausswirtschaft — the on-site tasting
room and sales counter — is what's actually visible from the street.
The producer is upstairs in a building that doesn't get its own node.
If we'd skipped shop=wine we'd have missed roughly a third of
German wineries.
The USA is the opposite: shop=wine includes a lot of pure retail
wine stores in cities. We have to filter.
The filter
After collecting all four tag sets, we run a heuristic on each node.
A wine retail shop in Manhattan looks different from a winery: it's
in a dense urban node, it has no wine:region, no produce tag, and
its name usually contains "Wine Shop", "Liquor", "Cellars" (American
retail), or just a generic surname-plus-Wines.
function isLikelyProducer(tags: OsmTags, lat: number, lng: number) {
if (tags.craft === 'winery') return true
if (tags.industrial === 'winery') return true
if (tags['produce']?.toLowerCase().includes('wine')) return true
if (tags['wine:region'] || tags['wine:appellation']) return true
// shop=wine in a known wine region → likely producer
if (tags.shop === 'wine' && insideWineRegion(lat, lng)) return true
// shop=wine in a city centre → likely retail, skip
if (tags.shop === 'wine') return false
// tourism=attraction needs a producer-ish name
if (tags.tourism === 'attraction') {
return /weingut|cantina|domaine|bodega|château|winery/i.test(tags.name ?? '')
}
return false
}
insideWineRegion is a point-in-polygon check against the region
boundaries we imported earlier — the same hulls described in
the OSM vineyard hulls post. If a
shop=wine falls inside the Mosel hull, it's almost certainly a
Weingut. If it falls in Berlin, it's almost certainly a bottle
shop. Same tag, opposite verdict, based on geography.
What we still get wrong
The remaining false positives are mostly Vinotheken — tasting rooms operated by a regional wine association that sells multiple producers' wine. They're tagged exactly like a single-producer cellar door, they're inside the region polygon, and there's no machine-readable way to tell them apart. The enrichment pass catches some of them when the Wikidata description says "association" or "cooperative tasting room", but a handful slip through and end up on the map as a "winery" that doesn't actually make wine.
The false negatives are smaller producers who haven't been mapped at all. There's nothing to do about those except wait for a local contributor to add them.
Lesson
The OSM tag schema is a description of what mappers chose to write
down, not a taxonomy of the world. When the wiki says "use craft=winery",
that means some mappers will use craft=winery and others will use
whatever felt obvious at the time. If you're importing, you have to
query all the plausible tags and then reconcile them with a heuristic
that knows something about the domain. In wine country, a shop is
usually a winery; in a city, it's usually not. The map has to know
the difference.
#openstreetmap#import#data-quality