Features: |
CITY geocoding method
|
Other features: |
|
Data set: | MAPSGFK.WORLD_CITIES. |
Sample library member: | GEOWCITY |
data cities (label='International cities'); infile datalines dlm=','; length city $32 province $24 countryID $3; input city /* City name */ province /* State/province/district name */ countryID; /* Three-character country code */ datalines; Bella Vista, , ARG Bella Vista, Corrientes, ARG Adelaide, , AUS Quebec, Quebec, CAN Shanghai, , CHN Skanderborg, , DNK Barcelona, , ESP Tallinn, , EST Glasgow, , GBR Pune, , IND Dublin, , IRL Seoul, , KOR Luxembourg, , LUX Vilnius, , LTU Garza Garcia, , MEX Bratislava, , SVK Stockholm, , SWE Bangkok, , THA Houston, Texas, USA Johannesburg, , ZAF ; run;
proc geocode /* Invoke geocoding procedure */ method=city /* Specify geocoding method */ data=cities /* Input data set of cities */ out=geocoded_cities /* Output data set of locations */ addresscityvar=city /* City name */ addresscountryvar=countryID /* Required for international geocoding */ addressstatevar=province /* Optional state/province/district name */ attributevar=(isoname mapidname1); /* Values to assign to geocoded cities */ run;