Learn R Programming

SmarterPoland (version 1.8.1)

getGoogleMapsAddress: Geolocalisation with Google Maps

Description

Get geolocalisation (longitude, latitude) of a given adress with the use of Google Maps API.

The Google Maps API is used to determine the geolocalisation (longitude, latitude) of a given adress.

Usage

getGoogleMapsAddress(street = "Banacha 2", city = "Warszawa", 
	country="Poland", positionOnly = TRUE, delay=1)

Value

If positionOnly=TRUE then a vector with two values or a raw list from Google Maps otherwise.

Arguments

street

An address (street and building number)

city

City

country

Country

positionOnly

What should be returned, vector with longitude, latitude coordinates or the raw result from Google Maps API

delay

Number of seconds to wait between api calls

Author

Przemyslaw Biecek

References

The Google Maps API https://developers.google.com/maps/

Examples

Run this code
if (FALSE) {
 getGoogleMapsAddress()
}

Run the code above in your browser using DataLab