2

Geokit 具有有用的功能:

g = Geokit::Geocoders::GoogleGeocoder.geocode [address_1, address_2, city, zip_code, state, country].compact.join(', ')
if g.success == true
  ...

true如果 Google 成功对给定地址进行地理编码,Geocoder gem 能否以某种方式返回?

4

0 回答 0