tarihinde bir arama olarak bu sunuyor. Uygulamanızdan ajax aramaları yapabilir misiniz?
Web hizmetlerini denir. http://code.google.com/apis/maps/documentation/webservices/index.html
Google Geocoding API'sini kullanmak istersiniz. Bu URL'ye bir arama yapmak, kullanmak için basit: her ne kadar ihtiyacınız "= adresi" http://maps.googleapis.com/maps/api/geocode/json?address=sydney&sensor=false
Değiştir (yani şehir eyalet ve posta kodu) Ayrıca xml yanıtlayabilir
. Sadece Örnek
{
"status": "OK",
"results": [ {
"types": [ "locality", "political" ],
"formatted_address": "Sydney New South Wales, Australia",
"address_components": [ {
"long_name": "Sydney",
"short_name": "Sydney",
"types": [ "locality", "political" ]
}, {
"long_name": "New South Wales",
"short_name": "New South Wales",
"types": [ "administrative_area_level_1", "political" ]
}, {
"long_name": "Australia",
"short_name": "AU",
"types": [ "country", "political" ]
} ],
"geometry": {
"location": {
"lat": -33.8689009,
"lng": 151.2070914
},
"location_type": "APPROXIMATE",
"viewport": {
"southwest": {
"lat": -34.1648540,
"lng": 150.6948538
},
"northeast": {
"lat": -33.5719182,
"lng": 151.7193290
}
},
"bounds": {
"southwest": {
"lat": -34.1692489,
"lng": 150.5022290
},
"northeast": {
"lat": -33.4245980,
"lng": 151.3426361
}
}
}
} ]
}
Sonuç xml http://code.google.com/apis/maps/documentation/geocoding/
için json değiştirmek Sonra tüm yapmanız gereken results[0].geometry.location.lat
açmak ve results[0].geometry.location.lng
tek sorun, bu terimlerin aykırı. –
Eğer bir çözüm için ödeme yapmak için istekli iseniz o zaman intech çözümleri (http://www.intechsolutions.com.au/) de var ... initech, o filmden, ofis ile karıştırılmamalıdır :) – Jason