PHPackages                             jensostertag/geocoding-util - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. jensostertag/geocoding-util

ActiveLibrary

jensostertag/geocoding-util
===========================

PHP library for the Nominatim Geocoding API

1.1.0(11mo ago)09371GPL-2.0-onlyPHPPHP &gt;=8.0.0

Since Jun 8Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/Struktal/struktal-geocoding-util)[ Packagist](https://packagist.org/packages/jensostertag/geocoding-util)[ RSS](/packages/jensostertag-geocoding-util/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Geocoding-Util for PHP
======================

[](#geocoding-util-for-php)

This is a simple PHP library to (reverse-)geocode addresses with the Nominatim API.

> **Legal Note:** This library uses the [Nominatim](https://nominatim.org/) API. Please read the [Terms of Use](https://operations.osmfoundation.org/policies/nominatim/) before using it and comply with them.
>
> Data from OpenStreetMap is licensed under [ODbL](https://opendatacommons.org/licenses/odbl/).

> This library uses the [Curl-Adapter](https://github.com/Struktal/curl-adapter) library to send requests to the Nominatim API.
>
> The Curl-Adapter library is licensed under the [MIT License](https://github.com/Struktal/curl-adapter/blob/main/LICENSE). (c) 2023 Struktal

Installation
------------

[](#installation)

To install this library, include it in your project using composer:

```
composer require struktal/struktal-geocoding-util
```

Usage
-----

[](#usage)

**Geocode an address to coordinates**The following example shows how to geocode an address to coordinates:

```
