dereuromark/cakephp-geo

A CakePHP plugin around geocoding tools and helpers.

Installs: 52 640

Dependents: 3

Suggesters: 0

Security: 0

Stars: 43

Watchers: 7

Forks: 25

Open Issues: 5

Type:cakephp-plugin

2.0.0 2020-04-10 02:40 UTC

This package is auto-updated.

Last update: 2020-09-06 11:15:32 UTC


README

Build Status 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 4.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

Legacy versions

Please see the original Tools plugin if you need the Geo tools for CakePHP 2.x versions.

TODOs

  • Write own Geocoder provider to leverage all of MapsGoogle data that is being returned.