|
|
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? | |
| |
|
|
There is no answer at this time. |
|
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. |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |