title: Get Latitude Longitude from an address c#
body: <p>I am using a webservice from geocoder to get the lat and long from address, city and state. When I use the example below, i don't get the lat and long. Am I doing something wrong here.</p>
  
  <p>Requested address: 1125 E. 102nd Street, Los Angeles, CA</p>
  
  <p>Here is my code:</p>
  
  <pre><code>private void GetLatLongFromAddress(string street, string city, string state)
  {
      string geocoderUri = string.Format(@"http://rpc.geocoder.us/service/rest?address={0},{1},{2}", street, city, state);
      XmlDocument geocoderXmlDoc = new XmlDocument();
      geocoderXmlDoc.Load(geocoderUri);
      XmlNamespaceManager nsMgr = new XmlNamespaceManager(geocoderXmlDoc.NameTable);
      nsMgr.AddNamespace("geo", @"http://www.w3.org/2003/01/geo/wgs84_pos#");
      string sLong = geocoderXmlDoc.DocumentElement.SelectSingleNode(@"//geo:long", nsMgr).InnerText;
      string sLat = geocoderXmlDoc.DocumentElement.SelectSingleNode(@"//geo:lat", nsMgr).InnerText;
  
      Latitude = Double.Parse(sLat);
      Longitude = Double.Parse(sLong);
  }
  </code></pre>
  
  <p>The lat and long comes back with 0. I tried to add zip code too but that didn't work. Is there any better webservices that would give me the up to date results.</p>
  
  <p>Thanks in advance.</p>