title: Get latitude & longitude from given address name. NOT Geocoder
body: <p>I have an address name and I want to get an accurate latitude &amp; longitude for it. I know we can get this using Geocoder's <em>getFromLocationName(address,maxresult)</em>.</p>
  
  <p>The problem is, the result I get is always null - unlike the result that we get with <a href="https://maps.google.com/" rel="nofollow noreferrer">https://maps.google.com/</a>. This always allows me to get some results, unlike Geocoder.</p>
  
  <p>I also tried another way:  <code>"http://maps.google.com/maps/api/geocode/json?address=" + address + "&amp;sensor=false"</code> (Here's <a href="https://stackoverflow.com/questions/4873076/get-latitude-and-longitude-from-city-name">a link</a>!) It gives better results than geocoder, but often returns the  error <code>(java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)</code>. It's boring.</p>
  
  <p><strong>My question is</strong>: How can we get the same latlong result we would get by searching on <a href="https://maps.google.com/" rel="nofollow noreferrer">https://maps.google.com/</a> from within java code?</p>
  
  <p><strong>additional</strong>:where is the <strong><em>api document</em></strong> about using "<a href="http://maps.google.com/maps/api/geocode/json?address=" rel="nofollow noreferrer">http://maps.google.com/maps/api/geocode/json?address=</a>" + address + "&amp;sensor=false"</p>