I have some address name,and want to get the accurate place with latitude & long
ID: 3538122 • Letter: I
Question
I have some address name,and want to get the accurate place with latitude & longitude. and I knew we can get it use Geocoder's getFromLocationName(address,maxresult),
but the problem is ,the result I get from it always null,not like the result that we search with https://maps.google.com/ .in these way I can always get some results.not like use Geocoder.
And I try another way that use "http://maps.google.com/maps/api/geocode/json?address=" + address + "&sensor=false" "Here's a link! it's have a better result than geocoder,but often take error (java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer).It's boring;
My question is:How can we get the result like we search a place in site https://maps.google.com/ within java code.
additional:where is the api document about using "http://maps.google.com/maps/api/geocode/json?address=" + address + "&sensor=false"here
Explanation / Answer
Here is a list of web services that provide this function.
One of my Favorite is This
Why dont you try hitting.
Here is a list of web services that provide this function.
One of my Favorite is This
Why dont you try hitting.
which returns following output.(Make sure you put your lat & lon in UR
Here is a list of web services that provide this function.
One of my Favorite is This
Why dont you try hitting.
which returns following output.(Make sure you put your lat & lon in UR