Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdir/geocode-cache-bundle
GeoCode Bundle extension for Contao 4
https://github.com/pdir/geocode-cache-bundle
Last synced: 14 days ago
JSON representation
GeoCode Bundle extension for Contao 4
- Host: GitHub
- URL: https://github.com/pdir/geocode-cache-bundle
- Owner: pdir
- License: lgpl-3.0
- Created: 2019-06-20T08:12:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-28T10:36:55.000Z (about 4 years ago)
- Last Synced: 2024-04-19T16:22:21.271Z (8 months ago)
- Language: PHP
- Homepage: https://pdir.de
- Size: 31.3 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
GeoCode Bundle extension for Contao 4
============================================================[![Latest Stable Version](https://poser.pugx.org/pdir/geocode-cache-bundle/v/stable)](https://packagist.org/packages/pdir/geocode-cache-bundle)
[![Total Downloads](https://poser.pugx.org/pdir/geocode-cache-bundle/downloads)](https://packagist.org/packages/pdir/geocode-cache-bundle)
[![License](https://poser.pugx.org/pdir/geocode-cache-bundle/license)](https://packagist.org/packages/pdir/geocode-cache-bundle)About
-----The extension adds a new route */api/geocode/* to Contao and determines the latitude and longitude of an address.
As a service, the OpenCage geocoder is used. 2000 requests per day are free - see https://opencagedata.com/pricing.
All requests are stored in a database table.**Deutsch**
Die Erweiterung fügt eine neue Route api/geocode zu Contao hinzu und ermittelt die Latitude und Longitude Angaben einer Adresse.
Als Dienst wird der OpenCage Geocoder verwendet. 2000 Anfrage pro Tag sind frei - see https://opencagedata.com/pricing.
Alle Anfragen werden in einer Datenbanktabelle gespeichert.Example
-------
Calling https://example.org/api/geocode/Ringstraße+9+28309+Bremen returns the following Json:
{ "lat": "53.0529439", "lng": "8.887199"}Set API key and other parameters
-----------
app/config/parameters.ymlparameters:
pdir_gcb_opengage_api_key: INSERT_YOUR_OPENCAGE_API_KEY_HERE
pdir_gcb_cache_time: 1 day (default is 1 hour if noting is set)System requirements
-------------------* [Contao 4.0](https://github.com/contao/contao-bundle) or higher
Installation & Configuration
----------------------------
* [Dokumentation](https://docs.pdir.de/#/geocode-cache-bundle/index)Dependencies
------------- [opencage/geocode](https://github.com/opencagedata/php-opencage-geocode)
License
-------
GNU Lesser General Public License v3.0Tests & Coding Standard Checks
------------------------------Run the PHP-CS-Fixer and the unit test before you release your bundle:
```bash
vendor/bin/php-cs-fixer fix -v
vendor/bin/phpunit
```