Google's Geocoder returns wrong country, ignoring the region hint

后端 未结 13 1020
孤城傲影
孤城傲影 2020-12-07 21:03

I\'m using Google\'s Geocoder to find lat lng coordinates for a given address.

    var geocoder = new google.maps.Geocoder();
    geocoder.geocode(
    {
            


        
13条回答
  •  隐瞒了意图╮
    2020-12-07 21:49

    I tried with the following:

    geocoder.geocode( {'address':request.term + ', USA'}
    

    And its working for me for particular region (US country).

提交回复
热议问题