Solidres draws a map on each property page, places a property from its address, shows the properties of a destination, lists the properties near the one a guest is looking at and shows where your guests come from. This article explains the two map providers Solidres offers, the settings behind them and when to change them, and how the distances of the Surroundings module are worked out.
PREREQUISITES:
- Solidres 4.8.0 or later. Before 4.8.0, OpenStreetMap was marked Experimental and several of the features below needed Google.
- For the maps of the add-ons: Hub 2.6.0, Experience 2.6.0, Dashboard 1.1.3 and the Map module 1.1.0, or later.
- A Joomla Super User account, or one allowed to change the Solidres Options.
On this page:
- Choosing a map provider
- The map servers
- Placing a property on the map
- Where maps show
- Distances in the Surroundings module
- If a map does not show
Choosing a map provider
Open Solidres → Options, tab Integrations, and choose the Map provider:
| OpenStreetMap | Google Maps | |
|---|---|---|
| Key | None | Google Map API Key on the Integrations tab, and with the Hub the Google Map Static API Key on the Hub tab |
| Cost | Free on the OpenStreetMap Foundation's servers, for light use (see The map servers) | A Google Cloud billing account; Google bills by use above its free allowance |
| Finding an address | Fill in the address, then click Show address in map | The same, or type in the search box above the map and choose one of the places suggested |
| Default | Since Solidres 4.8.0 | Kept by every site that chose it |
OpenStreetMap is the default: a new site has working maps from its first page, with nothing to sign up for. A site that chose Google Maps keeps it through updates.
With Google Maps, create the keys in the Google Cloud console and enable the Maps JavaScript API, the Places API and the Geocoding API, used by the property form, and for the Hub's thumbnails the Maps Static API, as How to generate Google Maps API key shows. Google no longer opens its older Places API to new customers, and the address search's suggestions use it: with a key created since March 2025 the suggestions may not appear, but you can still drag the map's pin to the property. The System page warns while a Google site has no key.
NOTE Whatever the provider, Solidres no longer asks Google for distances or for your guests' cities. Google's terms do not allow keeping those answers, or showing them on another map, so the Surroundings module and the Dashboard use the services below on Google sites too.
The map servers
OpenStreetMap is open map data, which anyone may serve. Solidres starts on the servers of the OpenStreetMap Foundation, and the Integrations tab lets you point it at others, with no update needed:
| Setting | What it does | Default |
|---|---|---|
| Tile server URL | Where the visitor's browser loads the map's images from. {z} stands for the zoom level, {x} and {y} for the image, and {s} for a server's subdomains, if your service uses them. Shown for OpenStreetMap. | https://tile.openstreetmap.org/{z}/{x}/{y}.png |
| Map attribution | The credit in the corner of each map. Keep the OpenStreetMap credit and its link, which the data's licence requires, and add the one your tile service asks for. Shown for OpenStreetMap. | © OpenStreetMap contributors, linked |
| Geocoder URL | The Nominatim-compatible service Solidres asks where an address or a city lies: for Show address in map on the property form, the Dashboard's guest map and the places of an experience. Used whatever the map provider. | https://nominatim.openstreetmap.org |
When to change them
The Foundation's servers are run by volunteers and paid for by donations. They are meant for light use, and the Foundation may turn away a site without notice. Change the settings when:
- Your site is busy. Each visitor of a page with a map loads its images from the tile server. A site with heavy traffic should use a commercial tile service, many of which serve OpenStreetMap maps, or a tile server of its own. Paste the address the service gives you, its key included, into Tile server URL, and its credit into Map attribution.
- Maps or address searches stop working. If the Foundation blocks your site, the maps show grey squares or the address search finds nothing. Switch to another service in the same settings.
- You want another look. Tile services offer other styles of the same map.
The geocoder needs less: Solidres asks it at most once a second for the whole site, keeps every answer, and never asks for the same place twice. A city it cannot find is asked again after 30 days. Show address in map asks it from your browser, so a geocoder of your own must allow cross-origin requests (CORS) from your site; the Foundation's does.
Placing a property on the map
A property is drawn where its latitude and longitude say. Set them in the property's Location section, on the Details tab:
- Fill in the address, city, postcode and country.
- On OpenStreetMap, click Show address in map. Solidres asks the geocoder for the full address, and for the city and country only when the full address finds nothing. The place found is named under the map, or Location not found when there is none. On Google Maps the button asks Google, or you can type in the search box above the map and choose one of its suggestions.
- Drag the pin to the property's entrance. Latitude and Longitude fill in as it moves.
- Save the property.
Solidres never looks up a property's address on its own. A property without a map position appears on no map and in no Surroundings list. With the Hub, the System page counts the published properties that have none. Hub partners place their properties the same way on their property form. See also Setting up a property.
Where maps show
| Map | Where | Good to know |
|---|---|---|
| Property map | The property page, and the Show map popup of the property lists, the wishlist and the Hub's results | The marker opens a popup with the property's name and address. |
| Map module | Solidres - Module Map, for one property, in a position of your template | Enter the property's ID. Display type Close shows a Show map button and loads the map only when a visitor presses it; Expand shows the map at once. The module shows nothing until the property is published and has a map position. |
| Location map | Hub: the map of the properties in a destination, its thumbnail on the search results, and the Location Map module | On Google Maps the thumbnail is a picture that needs the Google Map Static API Key; on OpenStreetMap it needs no key. |
| Experience location cards | Experience with the Hub: the base and end location of an experience | Saving an experience looks up where its places are, so a place with no properties opens on itself. Save an experience again after changing its places. |
| Guest map | Dashboard: the Maps widget | Each guest's city is placed through the geocoder when the booking is saved, with Enable geocoding on, on the Reservation tab. See Using the Dashboard. |
| Surroundings | Hub: the Surroundings module, on property pages | A list, not a map: see below. |
Distances in the Surroundings module
The Hub's Surroundings module lists the properties nearest to the one a guest is looking at, each with its distance, such as 2.4 km in a straight line. The distances are worked out ahead of time by a scheduled task and kept, so a property page only reads them: it asks no outside service, however many properties your Hub has.
The settings
In Solidres → Options, tab Hub:
- Show surroundings within (km): how far to look. Empty means 50 km.
- Number of surroundings: how many properties the list shows at most, nearest first: 10 by default, up to 50.
- Distance: Straight line, which Solidres works out from the properties' positions, or By road, which needs a routing server.
- Routing server (OSRM-compatible): shown with By road, see Road distances.
In the module itself, Origin based on Auto lists the surroundings of the property whose page is open, on property pages only; Property always lists those of the property you select.
The task
The task Solidres Hub: property distances, of the type Solidres Hub - Property distances, does the work. Installing the Hub package creates it, set to run every 15 minutes, when your site has none. Find it in System → Scheduled Tasks. If it is missing, create one there with New and that type. Each run:
- works out the distances of every property that is new, has moved, or was computed for another radius, and keeps every pair within the radius;
- with By road, fetches road distances (see below);
- stops when it has done enough for one run and carries on at the next. A large Hub is complete after a few runs.
Joomla runs scheduled tasks when visitors open pages, unless you run the scheduler from cron. With few visitors, the lists fill slowly: set up cron as How to set up Joomla cron for the Task Scheduler shows. The System page warns while the module is published and the task is missing or disabled, or while its plugin, Task - Solidres Hub, is disabled.
The lists stay right without waiting for the task where it matters:
- A property whose map position changes, from the administrator, a partner, the REST API or an import, leaves every list at once, and comes back with its new distances after the next run.
- A property unpublished or deleted leaves every list at once. Only published properties the visitor may see are listed, and on a multilingual site only those of the page's language.
- Lowering the radius shortens the lists at once. Raising it keeps the lists as they are until the next run adds the farther properties.
To start again from nothing, open the task, turn on Rebuild everything and save. The next run forgets every stored distance, road distances included, and works them all out again; the switch turns itself off after that run.
Road distances
Guests know the distances of booking sites, which are usually by road. To show the same, set Distance to By road and enter a Routing server (OSRM-compatible): an OSRM server you run with the map data of your region, or a routing service whose terms allow keeping its answers. Google's do not, so Google cannot be used here. The OSRM demo server, router.project-osrm.org, is for non-commercial use only, which a booking site is not.
The task then sends the routing server one request per property, a second apart, for about 20 seconds a run, and keeps each answer for both directions. A list shows road distances, 37 km by road, once every property in it has one, with Road distances © OpenStreetMap contributors under it, and straight lines until then. One list never mixes the two.
If a map does not show
- The map is grey, or its squares are missing: the tile server did not answer. Check Tile server URL, and if you use the Foundation's server, whether it has turned your site away (see When to change them). The Foundation's server also expects to know which site a map is on: if you set a Referrer-Policy in Joomla's HTTP Headers plugin, keep a value that sends it, such as Joomla's default.
- Show address in map says Location not found: try the city alone, or drag the pin to the place. With a geocoder of your own, check that it allows requests from your site (CORS).
- The Surroundings module shows nothing: check the warnings on the System page: the task may be missing, disabled or not yet run, the property may have no map position, or no other property is within the radius.
- The guest map is empty: check that Enable geocoding is on, then open the Dashboard: it places the cities of earlier bookings, one a second, while it is open.
- A Google map does not load: check the System page's warnings, that the key is entered, that billing is set up for its Google Cloud project, and that the APIs above are enabled for it.