filippo-toso/positionstack

A simple Laravel library to execute queries to positionstack.com

v1.0.1 2021-04-16 07:59 UTC

This package is auto-updated.

Last update: 2024-04-16 14:40:31 UTC


README

A simple Laravel client to execute forward and reverse queries on positionstack.com

Installation

You can install the package via composer:

composer require filippo-toso/positionstack

Laravel support

Edit your config/services.php file and add the following fields:

    'positionstack' => [
        'key' => env('POINTSTACK_KEY_ID'),
    ],

Usage

In your Laravel application, you can execute calls as follow:

$data = PositionStack::forward('1600 Pennsylvania Ave NW, Washington DC');

// ...

$data = PositionStack::reverse('40.7638435,-73.9729691');

Both methods include a second optional parameter you can fill with the optional parameters described in the official documentation.