https://github.com/kolirt/laravel-openstreetmap
https://github.com/kolirt/laravel-openstreetmap
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kolirt/laravel-openstreetmap
- Owner: kolirt
- License: mit
- Created: 2019-05-19T18:44:17.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-27T14:01:20.000Z (almost 2 years ago)
- Last Synced: 2025-03-31T03:13:06.754Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 21
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Laravel Openstreetmap
## Installation
```
$ composer require kolirt/laravel-openstreetmap
```
```
$ php artisan openstreetmap:install
```## Methods
#### Details by place_id
```
Kolirt\Openstreetmap\Facade\Openstreetmap::details(int $place_id);
```#### Reverse
```
Kolirt\Openstreetmap\Facade\Openstreetmap::reverse(float $lat, float $lng);
```#### Search
```
Kolirt\Openstreetmap\Facade\Openstreetmap::search(string $q, int $limit = 10);
```#### Search by params
```
Kolirt\Openstreetmap\Facade\Openstreetmap::searchByParams($streetname = null,
$housenumber = null,
$city = null,
$state = null,
$country = null,
$postalcode = null,
int $limit = 10);
```