Finding garden coordinates - roman-gardens/gre GitHub Wiki

The point coordinates for each garden are stored in the front matter at the top of the markdown document for the garden, and look something like this:

latlon: [ 41.887578, 12.487496 ]

In many cases, the coordinates for articles were acquired by an automated process that matched a place name in the article to a Pleiades entry of the same name. Most of the time, this gives us a point that is at least near the actual garden, but sometimes the point you see on the website map can be completely wrong, or might not display at all (if the coordinates are [ 0, 0 ], meaning unknown).

To update the point location, you only need to update the coordinates in the markdown, and the map will update automatically.

To assist in this process, some special features are available when previewing the site on your local computer.

  1. Run hugo server in the commandline to start up a local copy of the website.
  2. Go to localhost:1313 to view the site
  3. Search or navigate to your garden page
  4. Use the map to find the actual location of the garden. It may help to switch to the aerial imagery view (available only on localhost for now).
  5. Ctrl-click the map to copy the coordinates at the desired location. This copies the coordinates in the form needed in markdown.
  6. In the markdown document in VSCode, select the old coordinates (including the square brackets) and paste to replace with the new coordinates from the map.
  7. Save the document, which should prompt Hugo to refresh the page.
  8. Check the new location on the map on localhost.