title: Converting Subgurim GMap Coordinates to string
body: <p>I have started using <code>Subgurim's Map</code> controls for <code>ASP.NET</code> and need to convert the <code>coordinates</code> into a <code>string</code> or something similar so that I can put it in my <code>database</code>. </p>
  
  <p>Here is my code:</p>
  
  <blockquote>
  <pre><code>    Protected Sub lnkShowMap_Click(ByVal sender As Object,
      ByVal e As System.EventArgs) Handles lnkShowMap.Click
      Dim strFullAddress As String
      Dim sMapKey As String =
      ConfigurationManager.AppSettings("googlemaps.subgurim.net")
      Dim GeoCode As Subgurim.Controles.GeoCode
  
      ' Combine our address fields to create the full address.  The street,
      ' suburb and country should be seperated by  periods (.)
      strFullAddress = txtStreetAddress.Text &amp; ". " &amp; txtSuburb.Text &amp; ". " &amp; txtCountry.Text
  
      ' Work out the longitude and latitude
      GeoCode = GMap1.geoCodeRequest(strFullAddress, sMapKey)
  Dim gLatLng As New Subgurim.Controles.GLatLng(GeoCode.Placemark.coordinates.lat,
      GeoCode.Placemark.coordinates.lng)
      ' Display the map
      GMap1.setCenter(gLatLng, 16, Subgurim.Controles.GMapType.GTypes.Normal)
      Dim oMarker As New Subgurim.Controles.GMarker(gLatLng)
      GMap1.addGMarker(oMarker)
  
      ' Create coordinates in stored mem ' 
      Dim coordinates As GeoCode = GMap1.getGeoCodeRequest(GeoCode.Placemark.coordinates)
      System.Diagnostics.Debug.WriteLine(coordinates)
  End Sub
  </code></pre>
  </blockquote>
  
  <p>I'm having a problem with the last two lines of this <code>sub</code>, I am defining <code>'coordinates'</code> as being the result of <code>Gmap1's placemarker's coordinates</code>, but despite the fact that during <code>debugging</code>, the value of <code>GeoCode.Placemark.coordinates</code> is not being attributed to <code>'coordinates'</code></p>
  
  <p>Here is a screenshot of the <code>debugging process</code>:
  <a href="http://www.wherelionsroam.co.uk/debug.png" rel="nofollow">http://www.wherelionsroam.co.uk/debug.png</a></p>
  
  <p>What am I doing wrong?</p>