Geo Services
Besides the map itself, WP-ImmoMakler uses three further services that deal with addresses. Each one can be configured individually — independently of what draws your maps.
The three services
Section titled “The three services”| Service | What it does | Available options |
|---|---|---|
| Geocoding | Converts the addresses of your properties into coordinates so they sit in the right place on the map | Google Maps, Geoapify, MapTiler, Mapbox |
| Map preview images (static maps) | Creates the preview image for the consent box and the PDF view | Google Maps, Geoapify, MapTiler, Mapbox, your site’s own map tiles |
| Address suggestions (autocomplete) | Suggests addresses in the radius search field while your visitors type | Google Places, Mapbox, MapTiler, Geoapify |
You will find all three in the backend of your website (wp-admin) under WP-ImmoMakler > Integrations > Geo Services.
Each choice applies to that one service only. So you can draw your maps with MapLibre, keep geocoding addresses through Google, and assemble the preview images from your own map tiles. That is deliberate: geocoding runs on your server during the import and has nothing to do with what is displayed in the browser.
What you need for each
Section titled “What you need for each”- Google Maps – the server API key at the top of this tab. See Creating Google Maps API keys.
- Geoapify – a key from your account at myprojects.geoapify.com. One key covers all three services. Enter it under Geoapify API key.
- MapTiler – a key from your account at cloud.maptiler.com. One key covers all three services. Enter it in this tab under MapTiler Server Key. If MapTiler draws your maps, the key for your map is on the Maps tab under MapTiler API key; if the MapTiler Server Key field is empty, WP-ImmoMakler also uses that key for the geo services, see MapTiler: a separate key for your server. If you have selected MapTiler as the preview image base layer in the Customizer under WP-ImmoMakler → Maps and entered a key there, that key is used as long as both fields are empty.
- Mapbox – an access token from your Mapbox account. Enter it in this tab under Mapbox Server Token. If Mapbox draws your maps, the token for your map is on the Maps tab under Mapbox access token; if the Mapbox Server Token field is empty, WP-ImmoMakler also uses that token for the geo services, see Mapbox: a separate token for your server.
- Your site’s own map tiles – nothing at all. This option assembles the preview image from the map tiles you select in the Customizer under WP-ImmoMakler → Maps → “Preview image base layer” and caches it on your server. No additional service, no cost per image. If the selected base layer requires a key (MapTiler or Mapbox Streets), WP-ImmoMakler loads the tiles with the MapTiler Server Key or the Mapbox Server Token from this tab if you have entered one, and otherwise with the Key for the basemap from the Customizer.
If no key is stored for the service you picked, WP-ImmoMakler falls back to the first service that does have one. An incomplete setting therefore never brings your website to a halt.
Key check
Section titled “Key check”When you open the Maps or Geo Services tab in the backend of your website (wp-admin) under WP-ImmoMakler → Integrations, WP-ImmoMakler sends a test request to each service you have selected, using the key it uses from your server. For Google Maps the result appears below the server API key, for Geoapify below Geoapify API key, for MapTiler below MapTiler Server Key and for Mapbox below Mapbox Server Token. If you have also selected Mapbox for the preview images, WP-ImmoMakler additionally checks whether the token is allowed to fetch preview images.
If a provider rejects the key, the message lists the usual causes and the Geo Services tab turns red. With Mapbox and Geoapify the key is then usually invalid or restricted. MapTiler reports an invalid key and a restriction under Allowed HTTP origins in the same way, so the message names both. A result is valid for ten minutes; if you change a key, WP-ImmoMakler checks it again on the next visit.
If a provider rejects a key during normal operation – during the import, for address suggestions or for the preview images – WP-ImmoMakler records this in a log file immomakler-geo-… in the import directory, at most once per hour for each provider. The log contains only the provider and its response, neither the key nor the address that was looked up.
If the Mapbox Access Token field on the Maps tab contains a secret token (starting with sk.), a notice below the field points out that your maps will therefore not be drawn with Mapbox.
MapTiler: a separate key for your server
Section titled “MapTiler: a separate key for your server”If MapTiler draws your maps, the MapTiler API key from the Maps tab is necessarily visible in the source code of your pages, because your visitors’ browsers need it to load the map. Anyone can read it there. In your MapTiler account you can restrict it to your website under Allowed HTTP origins. However, MapTiler then also rejects the requests that WP-ImmoMakler makes from your server, because these do not send an origin.
Geocoding, address suggestions and preview images can therefore use a second key that never appears in the source code of your pages:
-
Create a key
In your MapTiler account at cloud.maptiler.com, create another key with no restriction under Allowed HTTP origins.
-
Enter the key
In the backend of your website (wp-admin), enter it under WP-ImmoMakler → Integrations → Geo Services in the MapTiler Server Key field and save.
-
Restrict the map key
In your MapTiler account, under Allowed HTTP origins for the MapTiler API key of your map, enter the domain of your website, for example
www.your-website.com.
If the “MapTiler Server-Key” field is empty, WP-ImmoMakler also uses the MapTiler API key from the Maps tab on the server. WP-ImmoMakler never passes the server key on to the browser, so it is not sufficient for the map alone. If you have selected MapTiler as the preview image base layer in the Customizer, WP-ImmoMakler also loads its tiles with the server key. The Key for the basemap in the Customizer may then be restricted to your website.
Mapbox: a separate token for your server
Section titled “Mapbox: a separate token for your server”The Mapbox access token of your map (Maps tab) inevitably appears in the source code of your pages, because your visitors’ browsers need it to draw the map. Anyone can read it there. A URL restriction in your Mapbox account prevents other websites from using it for their own maps. Outside a browser, however, it can be bypassed, because a program can tell Mapbox any origin it likes.
WP-ImmoMakler, on the other hand, fetches geocoding, address suggestions and preview images from your server. For these you can store a second token that never appears in the source code of your pages:
-
Create the token
In your Mapbox account at console.mapbox.com, create a new token without a URL restriction. For the preview images it needs the
styles:tilesscope; for geocoding and address suggestions any valid token will do.If you additionally give the token a secret scope, Mapbox marks it as a secret token (starting with
sk.) and shows it only once. WP-ImmoMakler does not require this: a token starting withpk.also stays secret as long as you only enter it in this field. -
Enter the token
In the backend of your website (wp-admin) under WP-ImmoMakler → Integrations → Geo Services, enter it in the field Mapbox Server Token and save.
-
Restrict the map token
Now restrict the Mapbox access token of your map in your Mapbox account to the address of your website, without a path – for example
https://www.your-website.com.
If the field Mapbox Server Token is empty, WP-ImmoMakler also uses the Mapbox access token of your map on the server. WP-ImmoMakler never passes a secret token (sk.) on to the browser: if one is accidentally entered in the Mapbox access token field on the Maps tab, WP-ImmoMakler draws your maps with a different provider instead of writing the token into your pages.
If you have selected Mapbox Streets as the preview image base layer in the Customizer, WP-ImmoMakler also loads its tiles with the server token. If Mapbox rejects it for this, for example because it lacks the styles:tiles scope, WP-ImmoMakler uses the Key for the basemap from the Customizer.
Comparing the providers
Section titled “Comparing the providers”| Provider | Geocoding | Preview images | Address suggestions | To note |
|---|---|---|---|---|
| Google Maps | ✓ | ✓ | ✓ | Account and API keys required. Free monthly allowance, then paid. The only one to supply four extra address details |
| Geoapify | ✓ | ✓ | ✓ | Account and key required, one key for all three services. Free allowance, then paid |
| MapTiler | ✓ | paid tier only | ✓ | Account and key required, one key for all three services and for the MapTiler map too. Storing the coordinates requires attribution |
| Mapbox | ✓ | ✓ | ✓ | Account and access token required. Storing the coordinates is only covered on the “Permanent Geocoding” tier – see below |
| Your site’s own map tiles | – | ✓ | – | No account, no key, no cost per image. The preview image is generated on your own server |
All four providers offer a free allowance – with one exception: Mapbox’s “Permanent Geocoding” tier bills from the very first request. For context: geocoding happens once per property during the import, not on every page view – a portfolio of 300 properties therefore generates around 300 requests.
Differences in detail
Section titled “Differences in detail”Extra address details. Only Google supplies the district and three administrative levels alongside the coordinates. With Geoapify, MapTiler and Mapbox, these four fields stay empty. They are only displayed anyway if you have explicitly switched them on through a filter.
Speed of address suggestions. With Google Places, the request runs through a fast API proxy; with every other service, through your website’s REST endpoint. The proxy only ever talks to Google and is skipped automatically as soon as a different service is configured – suggestions therefore appear marginally later.
Country selection and proximity to your portfolio. The Radius search address autocomplete: country selection setting applies equally to every service. Likewise, preference for addresses near your own property portfolio is preserved with every service.
Can the coordinates be stored?
Section titled “Can the coordinates be stored?”WP-ImmoMakler converts each address once — during the import — and stores the result permanently in your website’s database. Without this storage, every map view would have to convert the addresses again, which would generate requests and costs on every page load.
Whether storage is allowed depends on the provider:
| Service | Storage allowed | Condition |
|---|---|---|
| Google Maps | yes | none |
| Geoapify | yes | none |
| MapTiler | yes | attribution on the resulting data |
| Mapbox | only on the “Permanent Geocoding” tier | see below |
Mapbox splits geocoding into two tiers:
- The standard tier is free up to 100,000 requests a month (above that, from $0.75 per 1,000). Its terms, however, do not allow you to store the results — not even temporarily.
- The Permanent Geocoding tier allows permanent storage. It has no free allowance: billing starts with the first request, currently at $5.00 per 1,000.
If you have unlocked “Permanent Geocoding” with Mapbox, tick Mapbox: “Permanent Geocoding” tier unlocked in the Geo Services tab. WP-ImmoMakler then flags the requests accordingly, and Mapbox bills them under that tier.
Without the checkbox, requests run on the standard tier. Technically you won’t notice a difference — the addresses are still converted and the markers are placed correctly, and in most cases no costs are incurred. What isn’t covered, though, is permanent storage.
To put the amounts in perspective: geocoding happens once per property during the import. A portfolio of 300 properties generates around 300 requests, not tens of thousands — on the “Permanent Geocoding” tier that would be about $1.50.
Switching off a single service entirely
Section titled “Switching off a single service entirely”Each of the three selection fields also offers No service. That switches the respective task off completely: no geocoding during the import, no preview image, no address suggestions. The other two services are unaffected.
If you also want no maps at all, select No map for the Map provider in the Customizer under WP-ImmoMakler → Maps. The detail view then shows a link to Google Maps instead of the map.
Postcode areas
Section titled “Postcode areas”The Highlight postcode areas setting in the Customizer under WP-ImmoMakler > Maps shades the postcode areas of properties without an exact address. It relies on the Google Maps feature layers, so it is only available when Google Maps draws your maps.
With MapLibre, MapTiler and Mapbox, the setting isn’t offered in the Customizer. Your saved value is preserved and applies again as soon as you select Google Maps as the map provider.
Data protection
Section titled “Data protection”This setting is part of what decides which service receives your data. Geocoding and map preview images run server-side — the preview image is fetched once to your server and served from there, so no visitor IP address reaches the provider, not even in the consent box. Address suggestions, by contrast, are generated while your visitors are typing. Review the statements in your privacy policy when you change a service.
For preview images, the your site’s own map tiles option is the most restrained choice here: it fetches the tiles from the base layer you selected in the Customizer and involves no further provider.