Automatically Geolocate Santa

We've reached the last day of the calendar, and it's time for Santa's visit! Santa has been visiting some famous places all month. With the Geocoder module, Leaflet, a Geofield, and an Address field, you can automatically put each address Santa has visited on the map!

You do need to configure a geocoder source. We're using OpenStreetmap, from the geocoder-php/nominatim-provider.

We had Claude give us a list of addresses of famous landmarks around the world, putting one into each Advent Calendar day. We added a Geofield that is set to geocode the latitude and longitude of the address. 

We set up a custom view mode to show just the Geofield rendered as a Leaflet map, and created a view block that uses a Single Directory Component Swiper to show that custom view mode in a carousel, and now you can see where Santa visited each day.

Merry Christmas, Happy Holidays, enjoy this time of celebration, from all of us at Freelock!
 

Where's Santa?

Add new comment

The content of this field is kept private and will not be shown publicly.

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <blockquote cite> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h1> <h2 id> <h3 id> <h4 id> <h5 id> <p> <br> <img src alt height width>
  • Lines and paragraphs break automatically.