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



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
.



Relevant Pages

  • Re: OS map To LL - where is the top left of a map.
    ... Here is a suggestion that should give crude coords, ... Hovering the mose around over the map shows this to be set up with a ... text to extract the coords and map sheet number. ... coords to full OS grid references. ...
    (sci.geo.satellite-nav)
  • Instance questions.
    ... Does anybody know of a better map addon that has the same features as ... MetaMaps (coord marking, sharing/sending coords to teammates, pin-push map ... My mage can afford it, ...
    (alt.games.warcraft)
  • Re: geographical coordinates
    ... I am assuming that the lat/long is derived from a data source. ... You need to convert that into xy coords for your map. ... Display the coordinate marker in another <DIV> and position it relative ...
    (comp.lang.php)
  • Re: Safari, image maps, and links
    ... According to the examples in section 13.6.1 of html 4.01... ... shape and coords within a <map> so that I can use the ... to the shape and coords attributes with the following message: ... Again, huh? ...
    (comp.infosystems.www.authoring.html)
  • Re: A "How would you do this" type of question.
    ... a dot will appear on the map to indicate where that ZIP code ... coords and extrapolate those to x,y coords on your graphic map? ... You could also trivially drive the Google Maps API. ...
    (comp.programming)