Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
iranianpep committed Jul 2, 2017
1 parent 2f8733a commit d265240
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -14,3 +14,8 @@ A class for handling geocoding.
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/8575ff8e33034e0a81cedd9464ac359a)](https://www.codacy.com/app/iranianpep/geocoder?utm_source=github.com&utm_medium=referral&utm_content=iranianpep/geocoder&utm_campaign=Badge_Grade)
[![Packagist](https://img.shields.io/packagist/dt/geocoder/geocoder.svg)](https://packagist.org/packages/geocoder/geocoder)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/iranianpep/geocoder/master/LICENSE)

## Usage
- Get the Google Maps Geocoding API key: https://developers.google.com/maps/documentation/geocoding/get-api-key
- `$result = (new Geocoder('THE_API_KEY'))->geocode('THE_ADDRESS');`
- To get latitude and longitude `(new Geocoder('THE_API_KEY'))->getLatLng('THE_ADDRESS')`

0 comments on commit d265240

Please sign in to comment.