google_map_search: Google Map Search

Description Usage Arguments Details Note Examples

View source: R/google_map_urls.R

Description

Opens a Google Map in a browser with the result of the specified search query.

Usage

1
google_map_search(query, place_id = NULL)

Arguments

query

string or vector of lat/lon coordinates (in that order)

place_id

a Google place id (https://developers.google.com/places/web-service/place-id).

Details

If both parameters are given, the query is only used if Google Maps cannot find the place_id.

Note

There is no need for an api key

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 

google_map_search("Melbourne, Victoria")

google_map_search("Restaruants")

## Melbourne Cricket Ground
google_map_search(c(-37.81997, 144.9834), place_id = "ChIJgWIaV5VC1moR-bKgR9ZfV2M")

## Without the place_id, no additional place inforamtion is displayed on the map
google_map_search(c(-37.81997, 144.9834))


## End(Not run)

googleway documentation built on Nov. 16, 2020, 9:08 a.m.