This content has been marked as final. Show 3 replies
> I have a formula for calculating the distance from a given zip code, but how
> does this translate into a city/state search when a city/state combination
it doesn't. if you need city-to-city distance calculations & all you have are
zip code centroid coords, then you'll have to pick a centroid position (single
point) to represent the whole city.
i guess a more detailed answer depends on what data you have & how you need to
calculate distances (crow-flies, road travel, etc.).
I was using one latitude and logitude coordinate to base my calculations from (taking an average), but the results weren't quite as accurate as the client wanted. I've been playing around with it quite a bit, and I think I have lessened the gap enough to make him happy. Thanks!
> I was using one latitude and logitude coordinate to base my calculations from
> (taking an average), but the results weren't quite as accurate as the client
unless you do some kind of "spatial" average, they won't be & if you do they
still might not be based on the city shape, etc. in any case, you'd need some
btw i just remembered the USGS's gazetteer http://geonames.usgs.gov/ you might
have to do some data massaging but you probably won't miss anything using it.