Re: A "How would you do this" type of question.
- From: Willem <willem@xxxxxxxx>
- Date: Wed, 27 Sep 2006 20:23:09 +0000 (UTC)
Korto 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?
The way you described sounds extremely easy.
Any other way is bound to be more complicated, IMO.
However, there are plenty of reasons to choose a more complicated approach.
Performance is a very good reason, in memory use as well as in raw speed.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
.
- 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: A "How would you do this" type of question.
- Next by Date: file info
- Previous by thread: Re: 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
|