mauro-moreno/openstreetmap-api-client

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

A PHP OpenStreetMap API Client

v1.0.0 2016-02-11 03:24 UTC

This package is auto-updated.

Last update: 2021-05-28 17:36:21 UTC


README

Build Status Build Status Code Coverage

A PHP OpenStreetMap API Client

Installation

composer require mauro-moreno/openstreetmap-api-client

Usage

Nominatim

<?php
$config = [
    'format' => 'json'
];
$client = new MauroMoreno\OpenStreetMap\NominatimClient($config);
$client->reverse(40.748817, -73.985428);

// Returns Empire State address.