CityCodeLatLonParser:

Path: ACPro/Wind

--------------------------------------------------------------------------
   Parse a string representation of U.S. city lat/lon data into a MATLAB
   data structure. The string can be loaded into MATLAB initially by:

   s = urlread('http://www.realestate3d.com/gps/latlong.htm');

   If no string is provided as an argument, this command is called to
   attempt to load in the string from the website.

   The data structure may be saved to a mat-file for future reference. 

   A portion of the string content is shown below for an example:

     ID     LAT    LON     Location
 
    Minnesota
 
    [AEL]  43.68   93.37  Albert Lea,MN
    [AXN]  45.87   95.38  Alexandria,MN
    [BJI]  47.50   94.93  Bemidji Muni,MN
    [BRD]  46.40   94.13  Brainerd-Crw,MN
    [DTL]  46.82   95.88  Detroit Laks,MN
    [DLH]  46.83   92.18  Duluth,MN
    [ELO]  47.90   91.82  Ely,MN

--------------------------------------------------------------------------
   Form:
   data = CityCodeLatLonParser( s )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   s               (:)   String representation of U.S. city lat/lon coordinates

   -------
   Outputs
   -------
   data            (.)   Data structure with fields:
                         .code  {1,n}    Cell array of city/airport codes
                         .lat   (1,n)    Vector of latitudes
                         .lon   (1,n)    Vector of longitudes
                         .city  {1,n}    Cell array of city names
                         .state {1,n}    Cell array of state IDs (ie, MN)
                         .s      (:)     Original string 

--------------------------------------------------------------------------
	  Web Site Referenced:  http://www.realestate3d.com/gps/latlong.htm
--------------------------------------------------------------------------

Back to the ACPro Module page