Version: | 0.1 |
Date: | 2007-10-03 |
Title: | Geo tools |
Author: | Antoine Lucas |
Maintainer: | Antoine Lucas <antoinelucas@gmail.com> |
Description: | Tools |
License: | GPL-2 | GPL-3 [expanded from: GPL] |
Packaged: | 2012-01-28 11:49:33 UTC; antoine |
Repository: | CRAN |
Date/Publication: | 2012-01-28 18:08:23 |
NeedsCompilation: | no |
Getting city near to others
Description
codesNearToCode()
returns a list of zip code near to specified zip code
cityNearToCode()
returns a list of city name near to specified zip code
city()
returns a list of city name that have a zip code
Usage
codesNearToCode(code,kms)
cityNearToCode(code,kms)
zipCode(city)
cities(code)
Arguments
code |
A postal code i.e. 75000 for Paris |
kms |
Integer, number of kilometer. |
city |
The name of a city i.e. "Paris". Name is in ascii only; i.e. no accent for "Bezier" |
Author(s)
Antoine Lucas
Examples
## get "Paris"
cities(75000)
## inverse: get 75000: postal code for Paris
zipCode("Paris")
## all postal code at 7 kms from Paris
codesNearToCode(75000,7)
## idem, with city name
cityNearToCode(75000,7)
Get distance between two position with coordinate in latitude, longitude
Description
distKm()
returns distance in kilometer with latitude and longitude in degree
distKmRad()
returns distance in kilometer with latitude and longitude in radian
degToRad()
conversion degree to radian
Usage
distKm(lat0,lon0,lat1,lon1)
distKmRad(lat0,lon0,lat1,lon1)
degToRad(val)
Arguments
lat0 , lon0 |
latitude, longitude of first point |
lat1 , lon1 |
latitude, longitude of second point |
val |
Value, in degree. |
Author(s)
Antoine Lucas
Examples
degToRad(180)
Dataset french zip code
Description
French dataset for zip code (postal code).
Data set, from French postal data can be retreive here: http://www.galichon.com/codesgeo/.
Other data are here, http://earth-info.nga.mil/gns/html/cntry_files.html.
Usage
data(fr_geo_deg)
data(fr_geo_rad)