codelayer/columbus

Provider agnostic address autocomplete

v1.0 2020-02-13 11:56 UTC

This package is auto-updated.

Last update: 2024-11-16 07:56:46 UTC


README

Latest Version on Packagist

This package allowes accessing the address lookup api from different geocoding providers using a unified interface.

Installation

You can install the package using composer:

composer require codelayer/columbus

After that you can load the default config and modify if you need to:

php artisan vendor:publish --provider="Codelayer\Columbus\ColumbusServiceProvider"

By default the required api tokens will be loaded from the LOCATION_SEARCH_ID and LOCATION_SEARCH_SECRET env variables

Usage

Currently only autocomplete suggestion is implemented:

Columbus::suggest($request->input('q'));

Supported providers

To create a new provider implement the Codelayer\Columbus\Contracts\AddressSearchProvider interface and update the columbus.provider key in your config.

About Us

codelayer is a web development agency based in Karlsruhe, Germany. This package was developed for use in our product likvi.

License

The MIT License (MIT).