Get latitude and longitude for map click
Can anybody tell me that how can I get latitude and longitude of a location wh开发者_运维百科en clicking on map?
You could try changing this to suite your needs: http://www.iphonedevsdk.com/forum/tutorial-discussion/39374-mkmapview-tutorial-using-latitude-longitude.html
Try google maps v3 api. Add an event listener to click and you can get latitide/longitude pretty easily. Ex:
google.maps.event.addListener(map, 'click', function(event) {
YourHandler(event.latLng);
});
event.latLng automatically gets the longitude and latitude of the location you clicked on
精彩评论