गूगल एक देखने के रूप में इस प्रदान करता है। क्या आप अपने ऐप से AJAX कॉल कर सकते हैं?
इसे वेब सर्विसेज कहा जाता है। http://code.google.com/apis/maps/documentation/webservices/index.html
आप Google Geocoding api का उपयोग करना चाहते हैं। यह उपयोग करने के लिए इस यूआरएल को एक फोन करना सरल है: "= पता" http://maps.googleapis.com/maps/api/geocode/json?address=sydney&sensor=false
बदलें जो कुछ भी आप की जरूरत है (यानी शहर राज्य और ज़िप कोड)
यह भी एक्सएमएल में जवाब दे सकते हैं। सिर्फ एक्सएमएल http://code.google.com/apis/maps/documentation/geocoding/
को json बदलने उदाहरण परिणाम
{
"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
}
}
}
} ]
}
फिर तुम सब करने की जरूरत है results[0].geometry.location.lat
खुल जाता है, और results[0].geometry.location.lng
केवल मुद्दा मैं क्या याद है कि आप अपने खुद के डेटाबेस में गूगल के स्थान की जानकारी के किसी भी संग्रहीत नहीं कर सकता है, यह शर्तों के खिलाफ है। –
यदि आप समाधान के लिए भुगतान करना चाहते हैं तो इंटीच समाधान (http://www.intechsolutions.com.au/) में भी यह है ... उस फिल्म से कार्यालय में इनसाइट के साथ उलझन में नहीं होना चाहिए :) – Jason