xolf / locationiq
Php Wrapper for https://locationiq.org
Installs: 8 702
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^5.3.3 || ^7.0
- guzzlehttp/guzzle: *
Requires (Dev)
- phpunit/phpunit: 4.8.*
This package is not auto-updated.
Last update: 2025-01-04 21:52:47 UTC
README
Php Wrapper for https://locationiq.org
Install
composer require xolf/locationiq
Make first request
$search = new \Xolf\LocationIQ\Search($apiKey); $result = $search->get("Empire State Building"); // 40.7487727 $result[0]->lat; // -73.9849336 $result[0]->lon; // "node" $result[0]->osm_type; // "Empire State Building, 362, 5th Avenue, Diamond District, Manhattan, New York County, New York City, New York, 10035, United States of America" $result[0]->osm_type;