Skip to content

Commit

Permalink
Removed some sloppy debug code from OpenCage stuff. Sorry about that,…
Browse files Browse the repository at this point in the history
… Chief.
  • Loading branch information
Jonathan authored and kellydunn committed May 10, 2015
1 parent f213812 commit e4c440a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions opencage_geocoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ func (g *OpenCageGeocoder) Geocode(query string) (*Point, error) {
if (OpenCageAPIKey != "") {
key = "key="+OpenCageAPIKey+"&"
}
thing := fmt.Sprintf("?%sq=%s&pretty=1", key, url_safe_query)
fmt.Println(opencageGeocodeURL+thing)

data, err := g.Request(fmt.Sprintf("?%sq=%s&pretty=1", key, url_safe_query))
if err != nil {
return nil, err
Expand Down Expand Up @@ -119,8 +118,7 @@ func (g *OpenCageGeocoder) ReverseGeocode(p *Point) (string, error) {
if (OpenCageAPIKey != "") {
key = "key="+OpenCageAPIKey+"&"
}
thing :=fmt.Sprintf("?%sq=lat=%f,lon=%f&pretty=1", key, p.lat, p.lng)
fmt.Println( opencageGeocodeURL+thing)

data, err := g.Request(fmt.Sprintf("?%sq=%f,%f&pretty=1", key, p.lat, p.lng))
if err != nil {
return "", err
Expand Down

0 comments on commit e4c440a

Please sign in to comment.