Published on bearblog

How many attractions are there in Disneyland?

How many attractions are there in Disneyland? I make it 59 (according to OpenStreetMap data). Whether Disney would agree is another matter, but I now have a tool that gives me a verifiable answer.

If you’ve ever wanted to ask OpenStreetMap a question like that, you’ve probably come across Overpass Turbo. It’s a great tool, and enormously useful - you type a query on the left, press the button, and then (maybe) you get a result on a map. But the query language is inscrutable. LLMs are pretty good at it now, but I’ve never got my head around it enough to actually be confident.

Then there’s the backend. Overpass Turbo depends on an Overpass server hosted by public-spirited volunteers. This makes sense, you’re not going to download the whole world just to do queries on it in your browser. But these servers are shared, and thanks to the aforementioned LLMs being pretty good at writing these queries, are incredibly overloaded. When they are, a perfectly good query can sit in the queue and eventually get turned away after an agonising timeout. Or it might work. But more often than not my experience has been that you get timed out.

GeoDesk is an improvement. If you have the space on your machine, you can download a compressed GOL file for an area of interested, and then query it locally from the CLI. But it’s not as slick an interface as Overpass, and there’s a different barrier to entry in terms of running real programs on your computer, installation, &c.

Its query language is rather approachable, too. Take na[amenity=cafe]. Simple - na means nodes (points) or areas tagged with amenity=cafe. That’s all - and pretty easy to keep in your mind when you use the tool only occasionally..

Rewrite it in Rust?

It’s a trope, but for good reason. I wanted to make use of GeoDesk’s GOL files and fast queries in a Rust project I was building, but the GeoDesk project doesn’t have any Rust bindings. So the opportunity naturally presented itself to have a go at writing my own reader library.

I wanted to keep GeoDesk’s file format and see how much quicker I could make building and querying the files. (As it turns out, about twice as fast for the querying!) And it just made sense to add in a CLI - easy enough with LLMs, after all. The new engine is regol and is available to download with the source Apache 2.0 licensed.

Things did spiral a bit from there though, I was far enough into the project that I realised it wasn’t that much further to get that map with a query box, and since the library was Rust, why not do the computations on the client side by compiling to a WASM target!

Thus we now have regol Live. The same Rust query engine that runs on my machine compiles to WebAssembly and runs in your browser. Turns out the GOL file format is indexed fairly well and tiled, so you can download just the parts of the file you need to execute queries over a certain area of the map. For central London, UK, that’s ~50MB of download and then unlimited querying locally, with no backend to rely on.

OpenPlanetData hosts regularly updated GOL files for the whole planet, that regol Live can hook into.

Of course, this is still reliant on OpenPlanetData having the bandwidth to spare for the initial GOL download. So regol Live works offline as well. You can download a GOL file to your local machine, then regol live example.gol will spin up a local server with an even more performant native executor to run your queries.

Back to Disneyland

Now, notwithstanding my dislike of the Overpass Query Language, somebody out there must like it, and there are workflows built around executing OpQL queries. So regol Live can also run a useful subset of Overpass QL. Here’s the Disneyland query in GOQL. Select the planet dataset and get the whole park in Anaheim on screen, as GOQL searches the current map view.

$park = a[name="Disneyland"][tourism=theme_park]
$attractions = *[tourism=attraction]
  | intersects($park)
show($attractions)

That draws the attractions on the map and gives me the count beside Results. I tried within($park) too, which came back with 58 and left out Dumbo the Flying Elephant.

In Overpass QL I can ask for the count directly. Its named-area lookup also finds Disneyland wherever I’ve left the map.

area[name="Disneyland"][tourism=theme_park]->.park;
nwr[tourism=attraction](area.park);
out count;

On the 23 November planet file that came back with 19 nodes, 39 ways and one relation. Those are the 59 things somebody has tagged tourism=attraction inside the park in Anaheim. Change the last line to out center; and you can inspect them individually. The list includes both the Casey Jr. Circus Train and the Sleeping Beauty Castle Walkthrough, which gives you some idea of what counts as an attraction.

Regol Live showing the Disneyland query, its 59 results and a map of the attractions around Fantasyland and Tomorrowland.

If I want to send somebody that map, I can choose HTML map beside Results and hit Export. That gives me a single HTML file with the attractions saved in it. Open it in a browser and you’ve got a slippy map you can pan and zoom, and you can click a dot to see which ride it is. The background tiles come from OpenFreeMap as you move about. GeoJSON is there in the same menu if you want to take the data into QGIS.

Another Example: Somewhere to sit down

Suppose I’m in Monte Carlo and I’d like to sit in a garden. A map of all the benches is a start, but I’d rather see which ones are actually in a garden. Open the Monaco sample, move the map to the casino and enter this query:

$gardens = a[leisure=garden]
$benches = n[amenity=bench]
  | within($gardens)
show($gardens, $benches)

The first line finds the gardens in view. The next two find benches and keep the ones inside those gardens. I asked to see both, so I can check the answer against the map. In this view I get four garden shapes and ten benches. There’s a whole row of them on the seaward side of the casino.

The GOQL query beside a map of Monte Carlo. Garden outlines are shaded red and ten mapped benches appear as green dots near the casino.

If you’d rather work on a local file, the command-line version is handy. Here’s a count you can reproduce with the Monaco sample in the Regol Live repository. I get seven cafés in this little rectangle.

cargo install --locked regol-cli
regol query web/data/monaco-2026-01-01.gol 'na[amenity=cafe]' --bbox 7.414,43.733,7.426,43.742

Change the output with -f geojson and you’ve got something to take into QGIS. Or run regol-live with the same file to explore it in your browser with the queries running locally. Regol Live source and installation instructions

I’d be interested to hear what you try looking up, particularly if the answer looks a little odd. Those tend to be the more interesting maps.

Comments

No comments yet!

To leave a comment, please send it via email here. Comments are licensed CC-BY as with the rest of the site. Your sender name will be published along with the comment unless you ask for a different name. Your email address will only be published with your permission. If you're replying to a specific comment, include its number.


Articles from other blogs I follow

Giant mud doughnut lands at the Barbican — and yes, it’s art

A giant muddy doughnut has arrived in the middle of the Barbican, and of course, it’s art.Read more ›

via ianVisits May 15, 2026

UK Government Kicks Out Palantir

The UK Government, for all its faults, is pretty good at publishing contracts it has awarded. That's why I get depressed when I see rage-bait nonsense about how companies have been award "Top Secret" deals. Right now you can go to https://www…

via Terence Eden’s Blog May 15, 2026

banning all Anthropic employees

Per my policies, I need to ban every employee and contractor of Anthropic Inc from ever contributing code to any of my projects. Anyone have a list? Any project that requires a Developer Certificate of Origin or similar should be doing this, because Anthropic…

via see shy jo April 1, 2026

Generated by openring


All posts on bearblog are licensed as CC-BY rss