joaorsbatista/cakephp-geo

A CakePHP plugin around geocoding tools and helpers.

Installs: 43

Dependents: 0

Suggesters: 0

Security: 0

Type:cakephp-plugin

dev-master 2018-06-29 19:29 UTC

This package is not auto-updated.

Last update: 2024-04-17 17:00:12 UTC


README

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

A CakePHP 3.x Plugin to

  • geocode locations/ips and save the information (lat/lng) along with the records
  • reverse geocode data
  • display (Google) maps

This plugin requires PHP 5.4+

Note that since CakePHP 3.x upgrade uses the willdurand/geocoder library and therefore now 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 new:

  • MYSQL support
  • PostgreSQL support

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

Branching strategy

The master branch is the currently active and maintained one and works with the current 3.x stable version. 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.