Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dereuromark/cakephp-geo
A CakePHP plugin around geocoding tools and helpers.
https://github.com/dereuromark/cakephp-geo
cakephp cakephp-plugin geocoder geocoder-provider geocoding php
Last synced: 7 days ago
JSON representation
A CakePHP plugin around geocoding tools and helpers.
- Host: GitHub
- URL: https://github.com/dereuromark/cakephp-geo
- Owner: dereuromark
- License: mit
- Created: 2014-09-19T16:57:00.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T13:07:09.000Z (about 2 months ago)
- Last Synced: 2024-10-11T06:32:43.543Z (29 days ago)
- Topics: cakephp, cakephp-plugin, geocoder, geocoder-provider, geocoding, php
- Language: PHP
- Size: 6.27 MB
- Stars: 47
- Watchers: 8
- Forks: 30
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: docs/Contributing.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cakephp - Geo plugin - Containing [Geocoder behavior](https://www.dereuromark.de/2012/06/12/geocoding-with-cakephp/) and [GoogleMaps helper](https://www.dereuromark.de/2010/12/21/googlemapsv3-cakephp-helper/). (Geolocation)
README
# CakePHP Geo Plugin
[![CI](https://github.com/dereuromark/cakephp-geo/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/dereuromark/cakephp-geo/actions/workflows/ci.yml?query=branch%3Amaster)
[![Coverage Status](https://coveralls.io/repos/dereuromark/cakephp-geo/badge.svg)](https://coveralls.io/r/dereuromark/cakephp-geo)
[![Latest Stable Version](https://poser.pugx.org/dereuromark/cakephp-geo/v/stable.svg)](https://packagist.org/packages/dereuromark/cakephp-geo)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%208.1-8892BF.svg)](https://php.net/)
[![License](https://poser.pugx.org/dereuromark/cakephp-geo/license.svg)](LICENSE)
[![Coding Standards](https://img.shields.io/badge/cs-PSR--2--R-yellow.svg)](https://github.com/php-fig-rectified/fig-rectified-standards)
[![Total Downloads](https://poser.pugx.org/dereuromark/cakephp-geo/d/total.svg)](https://packagist.org/packages/dereuromark/cakephp-geo)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](https://github.com/dereuromark/cakephp-geo/wiki#cakephp-version-map) for details.
Note that it uses the [willdurand/geocoder](https://github.com/geocoder-php/Geocoder) library and therefore supports
- 12+ address-based Geocoder providers
- 10+ IP-based Geocoder providersMost 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](https://sandbox.dereuromark.de/sandbox/geo-examples) for live demos of the GoogleMaps helper and the Geocoder behavior.## Installation & Docs
- [Documentation](docs/README.md)