Download the PHP package arraypress/wp-mapsco-geocoding without Composer
On this page you can find all versions of the php package arraypress/wp-mapsco-geocoding. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arraypress/wp-mapsco-geocoding
More information about arraypress/wp-mapsco-geocoding
Files in arraypress/wp-mapsco-geocoding
Package wp-mapsco-geocoding
Short Description A PHP library for integrating with the Maps.co Geocoding API in WordPress, providing both forward and reverse geocoding capabilities with WordPress transient caching.
License GPL-2.0-or-later
Homepage https://github.com/arraypress/wp-mapsco-geocoding/
Informations about the package wp-mapsco-geocoding
Maps.co Geocoding
Turn an address into coordinates, and back, using Maps.co — free at low volume and no card required.
What it does
Same job as Google's Geocoding API, from a service you can use without a billing account. Maps.co is built on OpenStreetMap data: less precise than Google on individual buildings, entirely adequate for a town, a postcode or a delivery radius.
The response is an object with named methods, and lookups are cached, since an address does not move.
Features
- Turn a written address into latitude and longitude
- Turn coordinates back into a display address
- Get map links for Google, Apple, Bing and OpenStreetMap without building URLs
- Read the OpenStreetMap type and id behind a result
- Cache lookups for as long as suits, and clear one on demand
- Start without a billing account, which Google's equivalent requires
Installation
Quick start
Geocode an address when it is saved:
And a link somebody can actually open:
What it does not do
It will not reliably find a specific flat in a building, or a new-build street.
For that, Google's Geocoding API is worth the billing account —
arraypress/wp-google-geocoding is the same shape.
Requirements
- PHP 8.3 or later
- WordPress 7.1 or later
- A Maps.co API key (free tier, no card)
License
GPL-2.0-or-later