Re: A "How would you do this" type of question.



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
.



Relevant Pages

  • Re: Good Dungeon Mapping e-Tool?
    ... elements to create a map is that they change sizes as you zoom, ... insane enough to implement this in whatever microscopic spare ... One of the reasons I'm thinking about seeing who I can rope into ... no money to support them (I'm frankly surprised that the market ...
    (rec.games.frp.dnd)
  • Re: Were listening and were watching YOU!
    ... Where's your Sat. Map, tex? ... Listen closely, Tommie, because this is the last response you'll ... I must say that AJ is no psycho. ... They have reasons... ...
    (rec.arts.poems)
  • Re: Were listening and were watching YOU!
    ... Where's your Sat. Map, tex? ... Listen closely, Tommie, because this is the last response you'll ... I must say that AJ is no psycho. ... They have reasons... ...
    (rec.arts.poems)
  • Re: Poor auto-routing in MapSource
    ... simon@longnews.freeserve.co.uk wrote: ... I've seen two reasons for this type of routing. ... The map itself is in error and either has a small break in the road ...
    (sci.geo.satellite-nav)
  • Re: Resizing arrays in C++?
    ... Well believe it or not I had good reasons for having a const member. ... Now are those pairs still in a map, ... calling IndexedMap. ...
    (comp.lang.cpp)