Re: A "How would you do this" type of question.
- From: Ico <usenet@xxxxxxx>
- Date: 27 Sep 2006 20:16:33 GMT
Korto <korto.wow@xxxxxxxxx> wrote:
Imagine you are writing a program that will display a map of the United
States. Your program will ask a user to input their ZIP code. Once
they do, a dot will appear on the map to indicate where that ZIP code
is located.
My question is, how would you go about doing something like this, in
general?
Would you have a file of all ZIP codes and their longitude, latitude
coords and extrapolate those to x,y coords on your graphic map? Or, is
there an easier way?
I'm not sure how ZIP codes are assigned in the USA, but here in the
Netherlands, there is no exact mapping between zipcode and location.
There exist databases that map the center of a zipcode region to a
geographical position (degrees/minutes/seconds coordinates, and the
local dutch 'rijksdriehoeksmeting' coordinates), which is the only way
to do this, as far as I know.
--
:wq
^X^Cy^K^X^C^C^C^C
.
- References:
- A "How would you do this" type of question.
- From: Korto
- A "How would you do this" type of question.
- Prev by Date: Re: "It doesn't matter if you're a good programmer, it's the syntax that matters"
- Next by Date: Re: A "How would you do this" type of question.
- Previous by thread: A "How would you do this" type of question.
- Next by thread: Re: A "How would you do this" type of question.
- Index(es):
Relevant Pages
|