Google Answers Logo
View Question
 
Q: Geocoding ( No Answer,   5 Comments )
Question  
Subject: Geocoding
Category: Computers > Algorithms
Asked by: kenjin-ga
List Price: $50.00
Posted: 11 Dec 2002 12:14 PST
Expires: 12 Dec 2002 09:10 PST
Question ID: 123211
Where can I obtain a function that takes a geographic location
expressed in GPS coordinates (Latitude/Longitude in decimal degrees)
as input, and returns the FIPS code for the US county(s) that contains
the point location?

Request for Question Clarification by tar_heel_v-ga on 11 Dec 2002 12:37 PST
Are you looking for a commercial application that will do this for
you?  If so, do you have a price point that you are looking at?

-THV

Clarification of Question by kenjin-ga on 11 Dec 2002 13:16 PST
I was hoping for a computer program (or source code) in the public domain.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Geocoding
From: chliu528-ga on 11 Dec 2002 13:18 PST
 
I've done a project like this. Here's how I did it: 

- Purchase a zipcode database like http://www.zipinfo.com
- look up the nearest zipcode centroid (in longitude/latitude provided
by zipinfo db) thus yielding the associated FIPS

If you need high performance/real-time look-up, I have developed an
efficient method to store this data in-memory.
Subject: Re: Geocoding
From: kenjin-ga on 11 Dec 2002 14:00 PST
 
The ZIP code products I've looked at (including zipinfo) map a 5 digit
zip code to one FIPS code. So, when a ZIP spans more than one county,
errors will occur.
Subject: Re: Geocoding
From: chliu528-ga on 11 Dec 2002 14:44 PST
 
Hmmm, are you sure this is common? Zipcodes are fairly grainual. How
else would Zipinfo list FIPS if a given zip crosses county line? Maybe
this is a sales question for Zipinfo.

Otherwise you need to find some way to look up your coordinates with
nearest "county centroid". Not sure if there are such database
available. Even so I think this is less accurate than zipcode centroid
(zipcodes cover much smaller area than counties.)
Subject: Re: Geocoding
From: kenjin-ga on 11 Dec 2002 15:27 PST
 
USPS zones definitly cross political boundaries.

ZipInfo probably maps to the dominant(weighted by population or
area)FIPS code. I assume that they document their standard.

This isn't an issue of 'accuracy', so much as correctness. An
algorithm is defective if it fails to produce correct results for all
(even infrequently encountered) inputs.
Subject: Re: Geocoding
From: kenjin-ga on 12 Dec 2002 09:10 PST
 
I found what I was looking for at a local university's geography department.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy