Automatically Geolocate Santa

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!
 

Advent 2024 - 24 days of automation

Door number 7
7
Door number 10
10
Door number 14
14
Door number 19
19
Door number 6
6
Door number 17
17
Door number 1
1
Door number 4
4
Door number 16
16
Door number 22
22
Door number 3
3
Door number 21
21
Door number 5
5
Door number 2
2
Door number 11
11
Door number 9
9
Door number 15
15
Door number 12
12
Door number 8
8
Door number 13
13
Door number 18
18
Door number 20
20
Door number 23
23
Door number 24
24

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.

Drupal Canvas — Block HTML (locked)

  • Allowed HTML tags: <strong> <em> <u> <a href> <p> <br> <ul> <ol> <li>

Drupal Canvas — Inline HTML (locked)

  • Allowed HTML tags: <strong> <em> <u> <a href>