zipcode: Getting city near to others

Description Usage Arguments Author(s) Examples

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

1
2
3
4
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

Example output

[1] " Paris "
[1] 75000
 [1] 75000 78955 92110 92120 92170 92200 92240 92300 93120 93170 93210 93300
[13] 93310 93400 93500 94200 94250 94270
 [1]  Paris                   Les Gresillons          Clichy                
 [4]  Levallois-Perret        Malakoff                Montrouge             
 [7]  Neuilly-sur-Seine       Vanves                  Aubervilliers         
[10]  Bagnolet                La Courneuve            Pantin                
[13]  Le Pre-Saint-Gervais    Saint-Ouen              La Plaine-Saint-Denis 
[16]  Gentilly                Ivry-sur-Seine          Le Kremlin-Bicetre    
33144 Levels:  Aast   Abainville   Abancourt   Abaucourt  ... Villeneuve

geotools documentation built on May 2, 2019, 5:07 a.m.

Related to zipcode in geotools...