Maps Mania: Mapping the MutiVerse


Each city, each mountain, and each quiet river had its personal poem ready to be found. 

Meet MultiVerse – an interactive map the place a single click on anyplace on this planet generates a singular poem impressed by that location. From the bustling streets of Tokyo to the silent hills of the Scottish Highlands, MultiVerse allows you to discover not simply geography, however language, emotion, and creativeness.

Why?

On Saturday, I stumbled upon No Time to Discourse, an interactive map that procedurally generates local weather catastrophe micro-fictions and pins them to a map of america. In my evaluate, I identified that it by no means really used actual place names in its tales. So, to be honest, I needed to see if it was even doable to create procedurally generated literature that really got here from anyplace on the map. The result’s MultiVerse.

✨ How It Works

MultiVerse blends real-world location knowledge with a language engine to craft poetry that modifications as you roam the map. Underneath the hood are two primary drivers:

1. Overpass API: Discovering the Soul of a Place

Once you click on on the map, MultiVerse must know the place you might be. That’s the place the Overpass API is available in.

  • Overpass is a question engine for OpenStreetMap (OSM) knowledge.

  • Once you click on the map, MultiVerse sends a request asking: “What’s the closest city, village, or metropolis so far?”

  • The API responds with particulars in regards to the location, similar to its identify.

Because of this each poem is tied to an actual place. If there’s an OSM document, MultiVerse can discover it.

2. RiTa.js: The Language Engine

As soon as MultiVerse is aware of the place you clicked, it turns that location into verse utilizing RiTa.js, a JavaScript library for generative language.

  • RiTa makes use of grammars – units of guidelines that describe how phrases can mix.

  • MultiVerse feeds the placement identify right into a grammar after which generates a brief poem.

  • The consequence may look one thing like:

    Winter light breeze  
    Wakes softly in Kyoto’s streets  
    Fading with the nightfall
    

As a result of the grammar is versatile and randomized, every poem is (largely) distinctive – and every city can have a whole lot of doable variations, every providing a brand new manner of seeing the place.

I say “(largely) distinctive” as a result of MultiVerse makes use of a algorithm that randomly mix adjectives, verbs, and nouns. For the time being, my MultiVerse grammar (algorithm) and vocabulary (phrase dictionary) are fairly restricted, so you’ll in all probability discover some repetition within the poems it generates. Nonetheless, the great thing about RiTa.js is you can simply develop the grammar guidelines and the vocabulary knowledge. With a bigger vocabulary and a extra advanced grammar, the possibilities of recognizing repetitive patterns would drop dramatically.

Be happy to create an improved model of MutiVerse your self by forking it on GitHub.



Supply hyperlink

We will be happy to hear your thoughts

Leave a reply

mapsa
Logo
Compare items
  • Total (0)
Compare
0
Shopping cart