Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Fix for Google geocoding [#26]
Browse files Browse the repository at this point in the history
  • Loading branch information
kejadlen committed Oct 6, 2018
1 parent 456d1c3 commit 5e88def
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/geocode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Geocoder {

let mut url = url::Url::parse("https://maps.googleapis.com/maps/api/geocode/json")?;
url.query_pairs_mut().append_pair("address", address);
url.query_pairs_mut().append_pair("api_key", &self.api_key);
url.query_pairs_mut().append_pair("key", &self.api_key);
let response: Response = client.get(url).send()?.json()?;

response
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(iterator_step_by, range_contains, try_from)]
#![feature(range_contains, try_from)]
#![recursion_limit = "1024"]

extern crate alphred;
Expand Down

0 comments on commit 5e88def

Please sign in to comment.