Haven’t posted on Facebook since June 10, 2018 because it doesn’t allow me to link back to my own site. Someone created a tool that might allow that again, so testing it with this post to see if I can pull back responses.

Simple Location for WordPress 4.4.0 Released

Simple Location 4.4.0 was released early today, and I’m already working on 4.4.1, as there are things I’ve noticed in production that I did not in testing.

The smaller items:

  • Add MapQuest’s own API in addition to the existing OpenMapQuest Geo Provider, which is a hosted Nominatim.
  • OpenMapQuest and LocationIQ are now descendants of the nominatim provider, as they all use the same output format.
  • Add Pelias Provider. OpenRoute is a hosted instance of Pelias, so the OpenRoute class inherits its workings from this class, but allows for using a self-hosted Pelias provider, though I didn’t test that.
  • Fixed an issue with the Google geo return.
  • Reviewed all geolocation APIs and updated the returns.
  • Standardized the country codes returned on all APIs to the ISO2 2 letter country codes.
  • Standardized the addition of region codes, special casing US and Canada.
  • Added a Home Country setting to allow omitting the home country from location displays. Example: If you live in the United States, it won’t say New York, NY, US. It will just say New York, NY.
  • Support generating street addresses for countries where the house number appears after the street name, instead of assuming it will always be before.
  • Tried to put labels on the weather form fields for accessibility.
  • Added historic weather lookup to Micropub enhancements.
  • Add a bulk action to lookup and add location(private by default) for multiple posts.

The biggest piece is the introduction of the location taxonomy. This is different from the proposed venue taxonomy. Location is a coarse location, whereas venue is a fine location.

The new Location taxonomy is designed with three levels. Country, region, and locality. Locality is the city, village, or town. So, the system is not designed to go down more than 3 levels. By default, this allows for archive pages like /location/us/ny/new-york for all posts in the locality or city of New York. Or /location/us/ny for all posts in the region or state of New York.

When you look up any location, it should automatically create the terms reflecting that location. This is where the problem comes in. Despite my attempts to standardize the returns from the reverse geolocation lookup, not only will the returns vary by provider(if you switch), but the return will not always match what you’d expect.

For example, Rome sometimes shows up as the Italian, Roma. So, I am already working to try to improve matching different versions of the same location. But this may require some manual action(merging, marking, etc not sure yet) to garden. But you have this same problem when trying to organize your digital music collection, or anything you categorize. The goal is to make the need as infrequent as possible.

What might be next? Other than 4.4.1, which will address some of the more obvious issues I discover as I use the feature myself(or from others), possible features related to this include:

  • Displaying the location taxonomy instead of the location text.
  • Functions to improve the archive experience, possibly if the theme is aware

Curious to see opinions as people have them.

Differing Results in Reverse Geocoding

My Simple Location plugin offers the option of several different reverse geocoders. All of the providers, like the weather providers, standardize the output into a modified array based on microformats properties.

  • street-address – house/apartment number, floor, street name
  • extended-address – additional street details
  • locality – city/town/village
  • region – state/county/province
  • postal-code – postal code, e.g. ZIP in the US
  • country-name – full name of country or country code.

The problem is, returns are not so consistent.  Not only will the same coordinates not always produce consistent results, but the fields always change. So, the logic to map to the above properties isn’t always consistent or easy to write.

The second part of the problem is display. How to actually display the information. This isn’t the same as traditional address issue, this is how to display it in context on posts.

For example, for the White House…

    • Nominatim – White House, 1600, Pennsylvania Avenue Northwest, Washington, Washington, D.C., 20500, United States
    • Mapquest – 1602 Pennsylvania Avenue, Washington, District Of Columbia, United States
    • OpenMapquest and LocationIQ – White House, 1600, Pennsylvania Avenue Northwest, Golden Triangle, Washington, District of Columbia, 20500, United States of America
    • Google – 1600 Pennsylvania Avenue Northwest, District of Columbia
    • HERE – 1600 Pennsylvania Ave NW, Washington, DC 20500-0005, United States, Washington, District of Columbia, United States
    • Bing – 1600 Pennsylvania Ave NW, Washington, DC 20006
    • Geonames – District of Columbia, District of Columbia, United States
    • OpenRoute – 1600 Pennsylvania Avenue NW, Washington, DC, USA, White House Grounds, Washington, District of Columbia, United States

Reverse geocoding…taking coordinates and returning a location name, will never be 100% consistent, But I decided I needed to do better than this, and am working to adjust to be more consistent. Unfortunately, with 9 different providers, it takes a while to figure out what I’m going to do. Redundancy is good, but has its challenges.

As I’ve been backfilling weather on old posts on my site, I’ve also been fixing photo markup so that old photos will show up in the photo grid I added not long ago at /kind/photo. You can also look by year by adding the year to the end of the URL(/2020 or such). May add some links.

Simple Location 4.3.0 Released

Simple Location 4.3.0 has been released. This continues on the work released last week in 4.2.2.

Measurements in Simple Location have been stored in scientific units(celsius, meters, etc) since 2019, with an option to display in imperial on the frontend. With 4.2.2, the admin will now show in imperial units if you set the setting. This can be overridden on any page by adding the ?sloc_units=metric or ?sloc_units=imperial to the end of the URL.

4.3.0 introduces Meteostat and Visual Crossing as weather providers. Visual Crossing is the first provider that not only offers 1000 queries per day, but pay per use at a fraction of a cent after that. All of the other providers offering a free tier require a monthly fee after that point that well exceeds justification for the amount of posts even the most dedicated poster makes.

Meteostat is a historic only provider. It offers not only an API(key required), but the ability to download all data on a specific weather station(which requires no key). A future version of the plugin could download and cache the weather stations you use the most. For now, only the list of stations is bundled with the plugin, which it uses to determine the closest station.

The National Weather Service, the Met Office(UK), and the Custom Station plugin also cycle through lists of stations to find the closest one.

Expect more enhancements in the weather station category, with so many different ways to get weather stations data.

4.3.0 introduces historic weather support, for providers who offer this without a premium account. This includes Dark Sky(if you still have an API key), Meteostat(which only offers historic data), and Visual Crossing. If someone is paying for premium service on OpenWeatherMap and wants to talk me into adding this, send me a note.

The Fallback Weather provider feature introduced in 4.2.0, which allows for a secondary provider, will be checked if the primary provider does not offer historic weather.

Please remember, somewhere on your site, to provide attribution to the services you use. I’m off to backfill weather on my old posts.

Replied to https://diggingthedigital.com/15584-2/ by Frank Meeuwsen (diggingthedigital.com)

https://boffosocko.com/2020/12/25/automating-syndication-of-reply-contexts-in-twitter-cards-using-ogp-metacrap-and-plugins-in-wordpress/ (boffosocko.com)
I think I understand what you’re working towards Chris and it’s very interesting. One of the problems I have with the current Post Kinds plugin…

But Frank, it already does this. If there is no mf2, it tries JSON-LD and OGP.

Refbacks for WordPress Version 2.0 Released

The Refbacks plugin is now updated after nearly two years. The plugin doesn’t need much attention, it always worked it’s based on the Webmentions plugin, and we’d done some work over there that I brought over, including a new retrieval class, improved type support, etc.

The way I implemented Refbacks is essentially this. When someone visits a page on my website, and it has a referer string, it forks into the background a process to retrieve that page, verify it does link, and creates a refback comment. Semantic Linkbacks parses microformats and enhances that comment. It excludes links on the same site, as these are handled already by webmention or even pingback.

One of the things I’ve used this for in the past is to show mentions of my site on the Indieweb wiki.

Book Signing, 1997
Last month, Herb Solow passed away at the age of 89. Solow was well known as the executive in charge of production of the original Star Trek. I recently found this picture of the time I met him and Bob Justman in Boston in 1997 when they were doing a signing of their book, Inside Star Trek.
WordPress allows for custom archive templates. For the longest time, I’ve wanted to change the archive for my photo posts to show them in a photo grid. So, I’ve now done that at /kind/photo. You have to click the photo to see the full context, but I like the presentation of all photos I’ve posted. This does not include photos in other types of posts, but it’s probably the most visual item I’ve put out in a while. I hope it causes me to post more photos.