Title: | Geo tools |
---|---|
Description: | Tools |
Authors: | Antoine Lucas |
Maintainer: | Antoine Lucas <[email protected]> |
License: | GPL |
Version: | 0.1 |
Built: | 2024-11-03 07:17:47 UTC |
Source: | CRAN |
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
codesNearToCode(code,kms) cityNearToCode(code,kms) zipCode(city) cities(code)
codesNearToCode(code,kms) cityNearToCode(code,kms) zipCode(city) cities(code)
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" |
Antoine Lucas
## 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 "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)
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
distKm(lat0,lon0,lat1,lon1) distKmRad(lat0,lon0,lat1,lon1) degToRad(val)
distKm(lat0,lon0,lat1,lon1) distKmRad(lat0,lon0,lat1,lon1) degToRad(val)
lat0 , lon0
|
latitude, longitude of first point |
lat1 , lon1
|
latitude, longitude of second point |
val |
Value, in degree. |
Antoine Lucas
degToRad(180)
degToRad(180)
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.
data(fr_geo_deg) data(fr_geo_rad)
data(fr_geo_deg) data(fr_geo_rad)