Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/numero2/contao-storelocator
Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data.
https://github.com/numero2/contao-storelocator
bing contao4 google-maps heremaps maps nominatim openstreetmap
Last synced: 3 days ago
JSON representation
Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data.
- Host: GitHub
- URL: https://github.com/numero2/contao-storelocator
- Owner: numero2
- License: lgpl-3.0
- Created: 2011-11-25T08:20:49.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T08:35:42.000Z (about 2 months ago)
- Last Synced: 2024-12-07T03:21:18.996Z (16 days ago)
- Topics: bing, contao4, google-maps, heremaps, maps, nominatim, openstreetmap
- Language: PHP
- Homepage: https://www.numero2.de/contao/erweiterungen/storelocator.html
- Size: 983 KB
- Stars: 13
- Watchers: 8
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Contao StoreLocator
======================[![](https://img.shields.io/packagist/v/numero2/contao-storelocator.svg?style=flat-square)](https://packagist.org/packages/numero2/contao-storelocator) [![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg?style=flat-square)](http://www.gnu.org/licenses/lgpl-3.0)
About
--This extension offers the possibility to create multiple lists containing address data, contact information as well as opening times. From the Frontend the user can enter any possible address to see which stores are nearby (like on Google Maps). [Read more](https://www.numero2.de/contao/erweiterungen/storelocator.html)
Screenshot
--![Editing a single store](./docs/screenshot.png)
System requirements
--* [Contao 4.13](https://github.com/contao/contao) or newer
* [Google API Key](https://github.com/numero2/contao-storelocator/wiki/Google-Keys)Installation
--* Install via Contao Manager or Composer (`composer require numero2/contao-storelocator`)
* Run a database update via the Contao-Installtool or using the [contao:migrate](https://docs.contao.org/dev/reference/commands/) command.Using other providers
--StoreLocator comes pre-bundled with a provider for Google Maps.
If you want to use another provider you'll need to install additional packages:| Package | Provider |
| ------------------------------------------------ | ----------------------- |
| `numero2/contao-storelocator-bing-maps-provider` | Bing Maps |
| `numero2/contao-storelocator-here-provider` | HERE Maps |
| `numero2/contao-storelocator-nominatim-provider` | OpenStreetMap Nominatim |
| `numero2/contao-storelocator-open-cage-provider` | OpenCage |Events
--By default the importer will populate the model with the fields for the current row and the key provided in the first row of the file. For custom handling feel free to use the `contao.storelocator_store_import` event:
```php
// src/EventListener/StoreImportListener.php
namespace App\EventListener;use numero2\StoreLocatorBundle\Event\StoreImportEvent;
use numero2\StoreLocatorBundle\Event\StoreLocatorEvents;
use Symfony\Component\EventDispatcher\Attribute\AsEventListener;#[AsEventListener(StoreLocatorEvents::STORE_IMPORT)]
class StoreImportListener {public function __invoke( StoreImportEvent $event ): void {
// …
}
}
```