Skip to content

Commit

Permalink
Update breaking tests (#4)
Browse files Browse the repository at this point in the history
* test: new geolocation lat/lng

* docs: clarify api requirements

Co-authored-by: Andrew Nesvadba <[email protected]>
  • Loading branch information
nesvand and Andrew Nesvadba authored Oct 1, 2020
1 parent 3036d58 commit 52610c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

Explode one-line address strings using Golang.

This package uses the [Google Maps API](https://console.developers.google.com/apis/credentials) to geocode the address. Don't forget to set your `GOOGLE_MAPS_API_KEY` environment variable.
This package uses the [Google Maps API](https://console.developers.google.com/apis/credentials) to geocode the address.
Specifically you will require the [Geocoding API](https://console.developers.google.com/apis/library/geocoding-backend.googleapis.com)
enabled to translate address strings to detailed address objects.

Don't forget to set your `GOOGLE_MAPS_API_KEY` environment variable.

Installation
-----------------
Expand Down
4 changes: 2 additions & 2 deletions abode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ func TestExplodeInternationalAddress(t *testing.T) {
country := "New Zealand"
countryCode := "NZ"
zip := "2014"
lat := -36.8991018
lng := 174.9338525
lat := -36.8990751
lng := 174.9334851
formatted := "1/4 Abercrombie Street, Howick, Auckland 2014, New Zealand"

expected := &Address{
Expand Down

0 comments on commit 52610c4

Please sign in to comment.