2017 © Pedro Peláez
 

symfony-bundle fkr-nominatim-bundle

Integrates nominatim api (Geolocation API based on OpenStreetMap) into Symfony2

image

rinat-gizatullin/fkr-nominatim-bundle

Integrates nominatim api (Geolocation API based on OpenStreetMap) into Symfony2

  • Friday, December 18, 2015
  • by Rinat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 81 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 0 Open issues
  • 6 Versions
  • 3 % Grown

The README.md

FkrNominatimBundle

Integrates nominatim api (Geolocation API based on OpenStreetMap) into Symfony2., (*1)

What you need

curl must be enabled on your server., (*2)

Installation

Bring in the vendor library

This can be done in three different ways:, (*3)

Method #1) Use composer, (*4)

"require": {
    "fkr/nominatim-bundle": "*"
}

Method #2) Use git submodules, (*5)

git submodule add git://github.com/fkrauthan/FkrNominatimBundle.git vendor/bundles/Fkr/NominatimBundle

Method #3) Use deps file, (*6)

[FkrNominatimBundle]
    git=git://github.com/fkrauthan/FkrNominatimBundle.git
    target=bundles/Fkr/NominatimBundle

Register the Fkr namespace

// app/autoload.php
$loader->registerNamespaces(array(
    'Fkr' => __DIR__.'/../vendor/bundles',
    // your other namespaces
));

Add FkrNominatimBundle to your application kernel

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Fkr\NominatimBundle\FkrNominatimBundle(),
        // ...
    );
}

Configuration

# app/config.yml
fkr_nominatim:
    app_name:
    app_mail:
  • app_name: You must set your app name here (It's needed for OpenStreetMap API)
  • app_mail: You should set your mail here (It's needed that OpenStreetMap can contact you if any errors occours by using there API)

Usage

To get a GeolocationApi class instance just use the following code, (*7)

$this->get('fkr_nominatim.geolocation_api')->locateAddress('My Street, 8888 MyCity');
$this->get('fkr_nominatim.geolocation_api')->locateAddress(array('My Street', '8888', 'MyCity'));

The result would be: * null: If nothing was found * Location object: If only one result was found * array with Location objects: If more then one result was found, (*8)

Licence

Resources/meta/LICENSE, (*9)

Nominatim usage policy

Please respect the usage policy specified by Open Street Map for use of the Geocoding API., (*10)

The Versions

18/12 2015

dev-master

9999999-dev https://github.com/fkrauthan/FkrNominatimBundle

Integrates nominatim api (Geolocation API based on OpenStreetMap) into Symfony2

  Sources   Download

MIT

The Requires

 

by Florian Krauthan

geolocation geo symfony bundle osm open street map nominatim

18/12 2015

v1.0.4

1.0.4.0 https://github.com/fkrauthan/FkrNominatimBundle

Integrates nominatim api (Geolocation API based on OpenStreetMap) into Symfony2

  Sources   Download

MIT

The Requires

 

by Florian Krauthan

geolocation geo symfony bundle osm open street map nominatim

21/08 2014

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/fkrauthan/FkrNominatimBundle

Integrates nominatim api (Geolocation API based on OpenStreetMap) into Symfony2

  Sources   Download

MIT

The Requires

 

by Florian Krauthan

geolocation geo symfony bundle osm open street map nominatim

21/08 2014

v1.0.3

1.0.3.0 https://github.com/fkrauthan/FkrNominatimBundle

Integrates nominatim api (Geolocation API based on OpenStreetMap) into Symfony2

  Sources   Download

MIT

The Requires

 

by Florian Krauthan

geolocation geo symfony bundle osm open street map nominatim

12/09 2013

v1.0.2

1.0.2.0 https://github.com/fkrauthan/FkrNominatimBundle

Integrates nominatim api (Geolocation API based on OpenStreetMap) into Symfony2

  Sources   Download

MIT

The Requires

 

by Florian Krauthan

geolocation geo symfony bundle osm open street map nominatim

10/03 2013

v1.0.1

1.0.1.0 https://github.com/fkrauthan/FkrNominatimBundle

Integrates nominatim api (Geolocation API based on OpenStreetMap) into Symfony2

  Sources   Download

MIT

The Requires

 

by Florian Krauthan

geolocation geo symfony bundle osm open street map nominatim