How can I find the latitude and longitude from address?

前端 未结 9 1163
礼貌的吻别
礼貌的吻别 2020-11-22 10:27

I want to show the location of an address in Google Maps.

How do I get the latitude and longitude of an address using the Google Maps API?

9条回答
  •  一生所求
    2020-11-22 11:15

    An answer to Kandha problem above :

    It throws the "java.io.IOException service not available" i already gave those permission and include the library...i can get map view...it throws that IOException at geocoder...

    I just added a catch IOException after the try and it solved the problem

        catch(IOException ioEx){
            return null;
        }
    

提交回复
热议问题