dkahle / dkahle/ggmap

ggmap::geocode cannot be restricted to specific country

Open
#153 1 comment 0 reactions 0 assignees View on GitHub
feature request
Dominant language
R
Stars
778
Forks
234
PR merge metrics
No merged PRs in 30d

Description

I would like to request an additional parameter for the `ggmap::geocode` function where country specific api calls can be made to reduce false information being returned when using googles api.

The api has a parameter `components=country:SG` which can be added to the end of the api call in the following manner:
`http://maps.googleapis.com/maps/api/geocode/json?address=Singapore%20505468&sensor=false&components=country:SG`

The javascript configuration for this can be viewed here:
`https://developers.google.com/maps/documentation/javascript/examples/geocoding-component-restriction`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.