Sign In/My Account | View Cart  
advertisement

Article:
 Hacking Maps with the Google Maps API
Subject: Geocoding
Date: 2007-08-15 07:53:52
From: navyjax2
Response to: Geocoding

Here's some sample XML data, btw:


<?xml version="1.0" standalone="yes"?>
<gpx version="1.0" creator="GPS Visualizer http://www.gpsvisualizer.com/" xmlns="http://www.topografix.com/GPX/1/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
<wpt addr="39.15497, -77.51940">
<name>White's Ferry</name>
<desc>24801 White's Ferry Rd, Dickerson, MD 20842</desc>
<state>MD</state>
</wpt>
</gpx>


-Tom


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Titles Only Titles Only Newest First
  • Geocoding
    2007-08-15 08:06:50 navyjax2

    Actually, I shouldn't have used that section of XML - I meant to post something that had a normal address that worked on a Google map, instead of one that included the coordinate points already. I had that other section in there because I wanted the code able to do both (it doesn't matter to Geocoder whether it's getting a GPS point or an address - it still spits back a GPS point to plot). Here's a better example section:


    <wpt addr="150 Malin Dr, Wytheville, VA, 24382">
    <name>Days Inn</name>
    <desc>150 Malin Dr, Wytheville, VA 24382</desc>
    <state>VA</state>
    </wpt>


Sponsored By: