ggmap::geocode cannot be restricted to specific country
Open
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.