selezneva / geocoding
package for geocoding
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
Language:Vue
Requires
- guzzlehttp/guzzle: ~6.0
- predis/predis: ^1.1
README
Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers on a map, or position the map.
Reverse geocoding is the process of converting geographic coordinates into a human-readable address.
Installation
This package can be installed with help of Composer
composer require selezneva/geocoding
sudo apt-get install redis-server
php artisan vendor:publish
in config/geocoding.php put your api key
in your ENV. file CACHE_DRIVER = redis
clear routes/web.php file to avoide routes conflicts
npm run dev
the project is available by "your-domain-name" in your browser
How to use functional
Geocoding
http://your-domain-name.local/geo/?language=en&address=Paris&formatted=true
Reverse Geocoding
http://your-domain-name.local/rev/?language=en&longitude=40.7155809802915&latitude=40.7155809802915&postalCode=true
License
MIT