Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

demollc/sputnik-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Deprecated]Sputnik Geocoder provider

Latest Stable Version Total Downloads Software License

This is the Sputnik provider from DemoLLC.

Install

composer require demollc/sputnik-provider

Usage

The API may require an API key. See here for more information.

use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
$httpClient = new \Http\Adapter\Guzzle7\Client();
$geocoder = new \Geocoder\Provider\Sputnik\Sputnik($httpClient, null, '<your-api-key>');

$result = $geocoder->geocodeQuery(GeocodeQuery::create('ул. Генерала Лизюкова, 4, Воронеж'));
$result = $geocoder->reverseQuery(ReverseQuery::fromCoordinates(...));

Note

Reverse Query endpoint is frequently down and methods are created by manual.

Contribute

Contributions are very welcome!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages