ComByCoord: Get City by Coordinates

Description Usage Arguments Details Value Note Examples

View source: R/ComByCoord.R

Description

Get informations about a French city by its Coordinates (WGS-84). Please note that this package works only with French cities.

Usage

1
ComByCoord(lat, lon, postal = FALSE)

Arguments

lat

a character string with latitude (WGS-84)

lon

a character string with longitude (WGS-84)

postal

wether or not to include postal codes. Default is FALSE.

Details

Takes the latitude and longitude of a city, returns a data.frame with the available values.

Value

Returns a data.frame with name, INSEE code, postal code, INSEE department code, INSEE region code, population (approx), surface (in hectares), lat and long (WGS-84).

Note

If you don't know the coordinates of the city you're looking for, you can find it by using the ComByName function.

Examples

1
2
ComByCoord(lat = "48.11023", lon = "-1.678872") 
ComByCoord(lat = "48.74313", lon = "-3.460337", postal = TRUE)

rgeoapi documentation built on May 30, 2017, 12:04 a.m.