1.     Using the latitude and longitude data available in /homes/ddailey/public_html/data/places.txt (*),  or, better yet /homes/ddailey/public_html/data/places2k.txt (**) create a zoomable map which displays the location of a user-provided US place name relative to other well-known places at either national, regional or local levels of zoom. You might consider overlaying geo spatial data through the Google maps API.

choose a file

/homes/ddailey/public_html/data/places2k.txt

25,375 records

 

·       Columns 1-2: United States Postal Service State Abbreviation

·       Columns 3-4: State Federal Information Processing Standard (FIPS) code

·       Columns 5-9: Place FIPS Code

·       Columns 10-73: Name

·       Columns 74-82: Total Population (2000)

·       Columns 83-91: Total Housing Units (2000)

·       Columns 92-105: Land Area (square meters) - Created for statistical purposes only.

·       Columns 106-119: Water Area(square meters) - Created for statistical purposes only.

·       Columns 120-131: Land Area (square miles) - Created for statistical purposes only.

·       Columns 132-143: Water Area (square miles) - Created for statistical purposes only.

·       Columns 144-153: Latitude (decimal degrees) First character is blank or "-" denoting North or South latitude respectively

·       Columns 154-164: Longitude (decimal degrees) First character is blank or "-" denoting East or West longitude respectively


 

parsing the file

1.      unix shell -- more class, but more complex

2.      PHP -- slightly  simpler, less class

 

laying the data out

zoom factor -- zoom 1 -- whole US (Seattle, Boston, Miami, LA, Pittsburg, not Youngstown)

               zoom 2 -- ( center at  middle of Ohio -- Pittsburgh, Youngstown, Chicago -- not Philadelphia, not Kansas City, not Butler PA)

               zoom 3  -- (center at SRU -- show New Castle, Pittsburgh, Erie, Butler, Slippery Rock, -- Harrisville? Lyndora?

how many zooms? at least 3

which cities -- population -- other factors? -- notoriety of place (Las Vegas, Anaheim, Orlando, Redmond WA)?

where to put cities -- and city labels -- http://granite.sru.edu/~ddailey/usmap.svg -- label placement

draw city? or just place the label -- adjust labels so no overlap?

 

how to draw?

1.      html -- div or span using style="position:absoluted"

2.      svg

3.      google maps API

4.      draw a real map?