Skip to content
Sign in

Simple Location

Adds geographic location and weather support to WordPress.

Not scanned yet WordPress plugin 300 installs

Install in

No install steps yet

Follow the steps on the source page.

Supports adding geo coordinates, a location taxonomy, and a textual location description to a post, comment, user, or attachment. Supports adding weather data to a post or to a widget based on location.
Offers choice of map displays. It supports retrieving location using the HTML5 geolocation API by default. Clicking the location icon or ‘Lookup Location’ will retrieve the location.

As it stores the GeoData in the classic WordPress format, Geodata can also be added from other plugins.

Automatically saves location data from image metadata when uploaded as well.

Offers the opportunity to change the displayed timezone on a per-post basis for those posts from far off locations and set this based on the coordinates of the location.
While Gutenberg compatible, this is not built for Gutenberg.

Privacy and Data Notice

Simple Location stores location and weather data inside posts, attachments, comments, and term meta…optionally other post types. This data respects a public, private or
protected setting. Attachment data is automatically extracted from images if location is present, which could be extracted by any third-party downloading the picture
unless removed. For all other data, it is provided by the user, who decides its ultimate use. Location data is made available through a geolocation provider…the default is currently
HTML5 browser geolocation, for which the user must give consent to share). Other information is secured through use of third-party APIs to identify a
location, calculate elevation, display maps, and weather conditions.

If you choose readings under Fill In Missing Readings, the location of each post whose weather is missing them, including posts at a private location, is sent to Open-Meteo, rounded to about a kilometer, to fill them in.

Locations and Venues

Locations uses WordPress taxonomies to allow you to generate an archive page of all posts from that location and giving it a permalink on your site. Locations are meant to reflect a more general
location…for example, “Here are posts I made in California.”

Locations are divided by administrative areas. The hierarchy for locations is:
* Country
* Region – state, county, or province level.
* Locality – city, town, or village level

You can choose to display the location over the textual address field. There is an option in settings to change this behavior.

The reverse geocoding system attempts to consistently retrieve the country code, region code, and locality for the location and add them to the location taxonomy. This can be potentially problematic, as if the returns
from the locations added aren’t consistent, it will duplicate and explode the list of terms. This is the same issue that has held back venues.

Locations are matched using the country code, region code, and locality field, and therefore, you can edit the displayed name or the region code without issue. Due to matching issues, you may have to make some manual changes and there may be some occasional duplication.

When duplicates are created, such as two localities for the same city, select them in the Locations list and choose Merge. On the next screen, pick the location to keep; the oldest is picked by default. You can merge only locations of the same kind: countries, regions or localities. Their posts and child locations move to the one kept, the others’ names and codes are added to it so future lookups find it instead of creating the duplicate again, and the others are deleted, with their archive addresses redirecting to it.

There is no top level Location page, /location included in the plugin. You can create a page at this location and use a custom template to allow it to show a list of your locations.

Venues

Venues are meant to reflect a specific location, such as a business or point of interest. Venues were originally set up as a taxonomy, and were in the plugin unimplemented for several versions. However,
due to various changes since that was set up, they were switched to a custom post type. Under this setup, each venue is represented by a URL on the site that posts can be linked to. The URL contains
information about the venue. At this time, venues are shared between users and it is not assumed that each user has unique venues, though this may be a consideration in future.

Venues can be set to hide the actual location for privacy purposes, for example ‘Home’.
A venue can also set the visibility of posts made there with “Visibility of Posts Here”, for example Private at home. It applies when a post’s location is looked up in the editor, found in the background, sent by Micropub, or a check-in. A visibility chosen on the post, or sent by a Micropub client, still wins.

A venue is created when you check in, such as from a Micropub client, or with a bulk location lookup of check-ins. Before creating one, Simple Location looks for the venue you already have: the same place at a venue provider, the same website or page, or the same name close by. Checking in again from another provider adds to the venue you have instead of making a second one.

In the post editor, Find Venues lists the venues near the post’s latitude and longitude: those on your site, marked Site venue, and those from your venue providers, marked New venue, each in its own group. Choosing one of your venues sets it as the post’s venue; choosing a provider’s place creates the venue first, or uses the one you already have for it.

A Micropub post whose check-in or location is a place from q=places is linked to that venue: by its page on your site, or by the provider’s identifier it was found with. A location links a venue you already have but never creates one. A private venue is only linked for users who can edit it.

If a venue keeps being matched or listed when it shouldn’t be, check “Leave out of venue lists and check-in matching” on the venue. Find Venues and Micropub clients then won’t list it, and check-ins aren’t matched to it by name, link or identifier. You can still choose it from the Venue list or link to its page, and posts at its location still find it.

Micropub clients can ask for the places near a location with the experimental query q=places, giving lat and lon or a geo URI as uri. It returns places, a list of h-cards in mf2 JSON: your own venues first, nearest first, then those of your venue provider in its own order, without the ones you already have. Each place says where it is from in provider, local for your own. Your own venues also say how many times you have been there, in visits, and when last, in last-visit, counting the posts the user asking may see. limit sets the most places, offset skips that many at the start of the list, for the next page, radius sets the search radius in meters (providers that don’t take one ignore it), filter finds places whose name matches, and local=1 lists only your own venues. Foursquare, Google, HERE, TomTom, Geoapify, Pelias, Stadia Maps and Overpass search for the filter themselves, so they can find places beyond the nearest ones; for the others, the places they return are matched by name. A private venue is only listed for users who can edit it, and a venue whose location is protected is listed without it.

The experimental query q=geo gives the details of a location: lat and lon, a geo URI as uri, url for a post or venue on your site whose location the user may see, airport for an airport’s three-letter IATA code, or plus_code for a Plus Code. It returns geo, with latitude, longitude, plus-code, elevation, timezone, localtime, address as an h-card, and map, a link to a static map on your site that never holds your map provider’s API key. width, height, zoom and style set the map. The address, an elevation that isn’t known, the map and the place after a short Plus Code ask your providers, so they need a user who can edit posts.

For a venue’s page, the Micropub source query q=source&url= returns an h-card with the venue’s details: its location as q=places gives it, visits and last-visit, parent for the venue it is inside, photo for its featured image and the photos of posts there that anyone could see, and the venues inside it under children.

A venue’s website is shown on its page. Its pages on other sites, such as OpenStreetMap, Google Maps, Foursquare or Wikipedia, are shown too when the venue’s location is public, since a map link gives away where it is. You can edit both on the venue, under Website and Other Pages.

A new venue gets one of your venue types when one fits, such as Food for a restaurant, but Simple Location doesn’t create types. When a venue has no type, the venue editor offers one, which you can add.

To combine duplicate venues, select them in the Venues list and choose Merge. On the next screen, pick the venue to keep; the oldest is picked by default. Its posts, photos, child venues, links and types then include those of the others, check-ins by the others’ names or links find it, and the others are deleted, with their addresses redirecting to it.

What is kept from venue providers

Venue providers have different terms on what a site may keep. The plugin follows the maintainers’ reading of them, below. It is your site and your decision: if you read a provider’s terms differently, or aren’t comfortable with them, choose another provider.

  • OpenStreetMap Overpass, Nominatim, LocationIQ, Geoapify and your own Pelias server – the place’s details are kept: address, phone, categories and links. OpenStreetMap data is under the Open Database License, which allows this with credit to OpenStreetMap contributors; a Pelias server’s other sources, such as Who’s On First and Foursquare’s open places, are open data too.
  • Google, Foursquare, HERE, TomTom and Stadia Maps – only the place’s identifier and links are kept, such as its Google Maps or Foursquare link and its own website. The name is the one you checked in with, the coordinates are your own, and the address is looked up with your geocoding providers. Their phone numbers, categories and addresses are not stored.
  • A check-in from a Micropub client that doesn’t name a venue provider is your own, and is kept as sent.

A search for venues is remembered for 10 minutes, so a check-in app asking again from the same place doesn’t use up your quota. This applies to the OpenStreetMap-based providers, Geoapify, Pelias and HERE, whose terms allow it, but not to Google, Foursquare, TomTom or Stadia Maps.

Weather

Weather consists of at minimum the current conditions and temperature but includes future parameters for use such as pressure, wind speed, wind direction degree, etc. Weather widgets are available
that can be set to a specific location, a user, station ID, or airport code. Station ID is available from supported providers for weather stations, for example from a Personal Weather Station(PWS).

Stations

Stations allow for using a custom data source for weather data: a URL that returns the station’s current conditions as JSON. When using the Custom Station provider for weather,
it uses the nearest station within 10 km of your location, and the widgets can show any station by its ID. Readings more than an hour old are not used.

Each station has an ID, a URL, and optionally its latitude and longitude, which are read from the station when it gives them, and a credit with a link, shown with its weather.

The JSON should use the current conditions format, version 1, which the weewx-current-json extension writes for WeeWX stations:

{
  "format": "current-conditions",
  "version": 1,
  "time": 1761231600,
  "units": "metric",
  "station": { "id": "backyard", "name": "Backyard Weather", "latitude": 39.9524, "longitude": -75.1636, "altitude": 12,
               "attribution": { "text": "Weather from Backyard Weather", "url": "https://weather.example.com/" } },
  "observations": { "temperature": 21.5, "humidity": 61, "pressure": 1015.2, "windspeed": 3.58, "winddegree": 230, "rain": 1.27, "rainrate": 3.05, "code": 503 }
}
  • time is when the observations were made, in Unix seconds.
  • units is metric (degrees C, hPa, m/s, mm, mm/h, meters) or us (degrees F, inHg, mph, inches, inches per hour, miles).
  • observations has any of the plugin’s weather properties: temperature, humidity, dewpoint, heatindex, windchill, pressure, cloudiness, windspeed, winddegree, windgust, rain (in the last hour), rainrate, snow, visibility, radiation, illuminance, uv, aqi, and the pollutants pm1_0, pm2_5, pm10_0, co, co2, nh3, o3, pb and so2. Leave out what the station doesn’t measure.
  • code is a condition code, as listed in the weather settings, and summary is text; a known summary such as “Partly Cloudy” also gives a code. Without either, a station that measures solar radiation (or illuminance) gets an estimate of the sky by day: its reading is compared with what a clear sky would give at that time and place, from Clear Sky through Few, Scattered and Broken Clouds to Overcast. It isn’t estimated with the sun low in the sky, or at night.
  • station.attribution is the station’s credit. A credit set in the station settings replaces it.

For a WeeWX station, install weewx-current-json and use the WeeWX weather provider instead. Its stations, under WeeWX Stations on the same tab, only need the URL of the file the extension writes, such as https://weather.example.com/current.json: the station’s ID, name and location are read from it when you save. The extension also estimates the condition, such as rain or partly cloudy, from the station’s sensors, a nearby airport, or the National Weather Service forecast. A condition or cloud cover from an airport is credited to aviationweather.gov, with the airport, and one from the forecast to the National Weather Service. A post from the last day, such as one backdated or sent by Micropub with an earlier time, gets the station’s weather from then, from the history in its file; with the extension’s archives turned on, so does a post from the last week. That history has no wind direction, condition or cloud cover; choose the conditions and cloud cover under Fill In Missing Readings to have Open-Meteo fill them in. The Weather Station widget can also show a WeeWX station’s high and low for the day, the pressure and temperature trend, the storm’s rain, its webcam, and, with weewx-nws, weather alerts; choose them in the widget. Low batteries and a weak signal that the station reports are shown to administrators on the Dashboard, with the provider errors.

JSON without format is read in the earlier format: the weather properties at the top level, in metric units, with wind as wind: { speed, degree, gust }, timestamp for the time, and N/A for missing values.

WordPress GeoData

WordPress Geodata is an existing standardized way to store geodata about a post, user, comment, or term.

It consists of four fields: latitude, longitude, public, and address. This matches up with the HTML5 Geolocation …

Written by Joobi from the project's own listing. See the source page

geolocationlocationmapstimezonesweather
26 Nov 2026
Version 6.5.0 released. Not scanned yet.

6.5.0 ( 2026-11-26 )

  • Add the Traccar Geocoder provider, with several servers asked in order (#859)
  • Add an offline country, place and timezone lookup from bundled data, and an Offline geo provider that sends nothing anywhere (#861)
  • Fill a missing country, region or town from the location, for answers from partial extracts and places such as New York City’s boroughs (#863, #875)
  • Share one parser for Nominatim, LocationIQ and Traccar Geocoder addresses and venues, cleaning multiple values, district names and postcodes (#863)
  • Follow each country’s address conventions from OpenCage address-formatting: the house number now follows the street in about 120 countries, and the region is the one addresses name (#865)
  • Show region codes in display names only where addresses use them, such as the United States; elsewhere the region’s name (#865)
  • Show country and region names in the site’s language, keeping the provider’s names (#868)
  • Let a site choose a location’s country with the SLOC_COUNTRY_CODES constant and the sloc_country_codes and sloc_country_for_location filters (#867)
  • Add Tools > Location Repair and wp location repair, to bring older location data up to date with a preview first (#870)
  • Fix a region name containing a shorter region’s name getting that region’s code, such as Sofia City (#872)

6.4.0 ( 2026-11-09 )

  • Bring back the experimental Micropub q=geo query, without venues: a location’s coordinates, Plus Code, elevation, timezone, local time, address as an h-card and a static map link that never holds your provider’s API key, from coordinates, a geo URI, a post’s URL, an airport’s IATA code or a Plus Code
  • Add an offset to Micropub q=places, for the next page of places
  • Add a search radius to Micropub q=places and the sloc_geo/1.0/venue REST route
  • Add a filter to Micropub q=places and the venue REST route to find places by name; Foursquare, Google, HERE, TomTom, Geoapify, Pelias, Stadia Maps and Overpass search for it themselves
  • Report the visits to your own venues and the last one in q=places and the venue REST route, counting the posts the user asking may see
  • Give a venue’s details in the Micropub source query for its page: its location, visits, parent and child venues, and photos
  • Keep the venue provider’s own order after your own venues; Foursquare now ranks places by relevance and Google by popularity
  • Fix a Micropub check-in at a venue replacing the location visibility the client asked for with the venue’s

6.3.0 ( 2026-10-30 )

  • Find venues in the post editor, from your own venues and your venue providers, shown apart, and use one as the post’s venue
  • Replace the experimental Micropub q=geo query with q=places: your venues and your providers’ places as h-cards, with a limit and an option for only your own; a private venue is only listed for users who can edit it
  • Link a Micropub check-in or location to a venue by its page or the provider’s identifier, and with plain permalinks
  • Add a venue setting to leave it out of venue lists and check-in matching
  • Add apparent temperature, cloud base and lightning readings: from WeeWX stations, the apparent temperature from every provider that has it, and the cloud base from NWS
  • Get a WeeWX station’s weather for posts from the last day, or the last week with its archives, from the station’s history
  • Show a WeeWX station’s high and low, trend, storm rain, webcam and alerts in the Weather Station widget, and its low battery and weak signal warnings to administrators
  • Credit a WeeWX station’s condition or cloud cover from an airport’s METAR or the National Weather Service
  • Say to enter current.json when a station’s archive file is entered
  • Offer Meteocons for the weather condition icons
  • Add the sloc_content_location filter to leave the location and map out of post content
  • Fix a check-in whose link is another kind of post being linked to it as its venue
  • Remove the editor’s unused save venue script

6.2.0 ( 2026-10-29 )

  • Add rain and snow archive views, like the temperature view, with a bar chart of the posts with some rain or snow
  • Fill in weather readings the provider doesn’t give, such as a station’s conditions, snow or cloud cover, from Open-Meteo, and fill in existing posts with Tools > Weather Fill
  • Add snow depth and snow rate readings; Meteostat and Xweather snow depth is no longer stored as snowfall
  • Show the air quality index with its category and color, and store the VOC and NOx indices of gas sensors
  • Choose a map style family, such as Satellite, for each post
  • Get maps and weather for places outside a web page, such as email: map data with durable image URLs, plain maps without dark mode or high-density images, and plain-text weather
  • Get a post’s or comment’s map from the map REST route by its ID
  • Redraw the editor’s map preview when the zoom or style changes
  • Load the location styles and script when editing another user’s profile
  • Load the front-end stylesheet only on pages that need it
  • Check every setting and location field when it is saved
  • Use LocationIQ’s current endpoints, HTTPS for GeoNames, and the shared request handling for NWS and Weatherbit
  • The WeeWX provider is no longer in beta

6.1.1 ( 2026-10-25 )

  • Fix track maps showing the route as text: [sloc_map track] shortcodes from Tools > Location Track now escape the route
  • Say when a GeoPulse server is older than 2.1.0, or where it found nothing, instead of “Resource not found”
  • Label archive map markers with the post’s venue or location instead of its title
  • Show every location history account, such as Dawarich and GeoPulse, on the user profile, with the one in use open

6.1.0 ( 2026-10-24 )

  • Add weather providers: Open-Meteo, MET Norway, Environment Canada and WeeWX stations (beta); remove the Met Office provider
  • Add Photon geocoding, Open Topo Data elevation, Stadia Maps and TileServer GL maps, and Dawarich and GeoPulse location providers; set your own Nominatim server
  • Try fallback weather, geocoding, elevation and venue providers in order, and tell administrators when a provider fails
  • Credit weather providers where their weather is shown
  • Calculate wind chill, heat index, dew point or humidity, and cloud cover when a provider doesn’t give them, and estimate the sky from a station’s sunlight
  • Custom static maps: choose provider and style, sign URLs, store images on the site, and set format, markers, scale bar, overlays and credit
  • Every map provider: image format and marker settings, high-density archive maps, clickable archive markers, map style families and dark mode
  • Add the [sloc_map] shortcode for maps of several places and tracks, and Tools > Location Track
  • Add temperature and weather views of archives, and a GeoJSON feed of post locations
  • Venues: search within a set radius, nearest first, with shared categories; new providers Overpass, Geoapify, HERE, TomTom, Pelias, Stadia Maps and Foursquare; Google uses Places API (New)
  • Venues: match check-ins to existing venues by identifier, address or name, keep only what each provider’s terms allow, show and edit a venue’s website and other pages, suggest venue types, and cache searches
  • Merge duplicate venues and locations from their lists
  • Let a venue set the visibility of posts made there, and add an about URL to locations
  • Enter Plus Codes in the location box, and accept GeoJSON and geo URIs on the user location endpoint
  • Look up the typed address when the browser doesn’t give its location
  • Show weather in the editor at the precision stations report, keeping stored values
  • Fix clearing the location in the editor, keep the chosen venue after a lookup, and keep the loading spinner until a lookup ends
  • Save and read a latitude, longitude, altitude, speed or heading of 0
  • Fix distances for identical points, keep New York, NY, and name a locality and region once

6.0.0 ( 2026-10-18 )

  • Requires ClassicPress 2.7; tested with WordPress 7.1
  • Remove the Bing providers and MapQuest elevation, whose services were retired, and stop calling retired MapQuest hosts
  • Move HERE weather and maps to the current v3 APIs and fix Weatherstack, Pirate Weather, NWS, Meteostat, Visual Crossing, Xweather, GeoNames, Geoapify, Google, LocationIQ, Nominatim and Pelias parsing
  • Add optional map-only API keys for Google, HERE, LocationIQ and MapQuest, Google URL signing, and serve Geoapify map images from the site
  • Keep hidden locations out of ActivityPub, use the visibility a Micropub client sends, and honor location visibility in widgets, photos and archives
  • Let authors and commenters manage the location of their own content, and check permissions on bulk actions and lookups
  • Validate coordinates and location fields when saving, and from Micropub and Webmentions
  • Use the post’s timezone in sloc_get_comment_datetime(), and ignore invalid timezones instead of failing
  • Calculate sun and moon times for the local date and name moon phases correctly
  • Use the fallback weather provider when a provider can’t serve a time, and cache past weather by hour
  • Keep readings of 0 and convert units correctly
  • Find airports and weather stations from small sorted indexes instead of large data files, and refresh the airport data
  • Fix the map archive fatal error when no map provider is set
  • Fix widget forms, wrappers and errors, and keep service responses and credentials out of error messages
  • Escape output late and sanitize request input
  • Give static map images alternative text and keep them within provider limits
  • Fix PHP 8 deprecations
  • Deprecate ifset(), ifset_round() and Simple_Location_Plugin::load_textdomain()
  • Document all classes, functions and hooks, and add a test suite for WordPress and ClassicPress

5.0.25 ( 2026-07-27 )

  • Checked for compatibility with latest version
  • Remove live ability to use development sites
  • Lock airport and timezone lookup behind optional user login requirement
  • Remove ability for bulk update if the user does not have permission to do so

5.0.24 ( 2026-02-25 )

  • Fix issues with Last Seen Widget
  • Refresh data
  • Identify short circuit logic that was not triggering
  • Fix variable naming
  • Toggle srcset to false by default due load
  • Update weather providers to latest APIs where possible
  • Fix text domain warning error

Older releases are listed in changelog.md.

7 Apr 2015Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)