May 252012
 

Hi there folks

I am sure someone has done something similar to this in the
past or perhaps knows a bit more about xml than myself and can
possibly assist (which wouldn’t be hard).

I am building an application in which I collect addresses and
more importantly postocdes. After the data is submitted to the
database I want the webpage to go to a new page which would confirm
successful entry. At the same time I want this page to obtain the
latitude and longitude for the postcode that has just been entered.
The idea being that I could then display this data on a map etc or
use it for searching the distance between two places.

I have managed to send a request to Google using the URL:

http://maps.google.com/maps/geo?q=g1&output=xml&key=myAPIKey
(I have taken the key out)

and it returns an xml feed with the coordinates listed. The
problem is I don’t really know what to do with this output. I don’t
want the user to see this outbut but instead I was to write it to
the database to update the record that has just been added. I just
don’t know how to get the info I need from this doucment use use it
without showing the xml – I only want one line of it.

Can anyone help – I should point out that I am using classic
ASP.

Thanks in advance

Related posts:

  1. HELP!!!!  Which would be easier????
  2. Open page based on Zip
  3. DW MX – Extension for Form Processing?
  4. PHP Page Marker
  5. MySQL Error: # 2002

Related posts brought to you by Yet Another Related Posts Plugin.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 free icons download Suffusion theme by Sayontan Sinha

Featuring Recent Posts WordPress Widget development by YD