Skip to content

A CakePHP plugin around geocoding tools and helpers.

License

Notifications You must be signed in to change notification settings

dereuromark/cakephp-geo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 19, 2024
527378a · Dec 19, 2024
Nov 16, 2024
Nov 27, 2023
Feb 28, 2024
Nov 19, 2024
Dec 5, 2023
Nov 17, 2024
Dec 17, 2019
Mar 11, 2024
Nov 8, 2023
Jan 21, 2016
Jan 7, 2024
Mar 29, 2024
Oct 10, 2023
Dec 19, 2024
Oct 10, 2023

Repository files navigation

CakePHP Geo Plugin

CI Coverage Status Latest Stable Version Minimum PHP Version License Coding Standards Total Downloads

A CakePHP plugin to

  • geocode locations/ips and save the information (lat/lng) along with the records
  • reverse geocode data
  • querying geocoded data by distance (using custom finder)
  • display (Google) maps (dynamic and static)

This branch is for CakePHP 5.0+. See version map for details.

Note that it uses the willdurand/geocoder library and therefore supports

  • 12+ address-based Geocoder providers
  • 10+ IP-based Geocoder providers

Most of them also support reverse geocoding. And of course you can write your own providers on top.

Also:

  • MySQL support
  • PostgreSQL support
  • SQLite support (for easy local testing)

And also:

  • GeocodedAddresses Table class for caching of API requests to prevent rate limits and speed up lookups.

Demo

See Sandbox examples for live demos of the GoogleMaps helper and the Geocoder behavior.

Installation & Docs