希望用Nominatim反向地理编码替换谷歌反向地理编码

时间:2017-07-16 12:45:32

标签: reverse reverse-geocoding nominatim

如何使用nominatim goecode进行更改?

         var geocoder = new google.maps.Geocoder(); 
                geocoder.geocode( { 'address': remote_ip_info.city}, function(results, status) { 
                  if (status == google.maps.GeocoderStatus.OK) { 
                     map.setCenter(results[0].geometry.location);
                     map.setZoom(8);
                  } else { 
                    //alert("Geocode was not successful for the following reason: " + status); 
                  } 
                }); 

0 个答案:

没有答案