Learn R Programming

datamart (version 0.5.2)

city_coords: Longitude and Latitude for Cities

Description

The UrlData object provides a resource 'CityCoordinates' that takes a city parameter and returns a two-valued vector with latitude and longitude.

Usage

city_coords(country = "DE")

Arguments

country
two-character country code, default 'DE'

Value

an object of class UrlData

Details

Based on Stackoverflow solution by Jochem Donkers.

References

Stackoverflow