getting lat long from mapView iphone? - iphone

all , iam developing an ipad app that uses mapview to display google maps, my problem was how to get lat long of a perticular region, some how i manged to get by putting an overlay on the map view and getting point of that view , then converted to lat long. now my problem is i want to show an movable pointpin on the view so that user easily point the required region.
If any idea please send me .
Thanks
Kumar Y R

Use DDAnnotation in map view
here is the link to download
it has a sample where you can drag the pin and drop it where you need.

Related

Radar like scan based on current locations

I am developeing an app , that scans certain distance and displays the all the users with that application on radar like map .
I am getting a list of latitudes and longitudes from an api , now i need the user tp apperar on center of radar and others in respective direction and distance .
Can i achieve this using mapview ?
Or is there any better way ?
Please suggest me a good to handle this issue .
I have not started coding yet so , could not provide any starup .
Plz help thanks !
MKMapView has the cunningly named method:
setUserTrackingMode:animated:
As the documentation states:
Setting the tracking mode to MKUserTrackingModeFollow or MKUserTrackingModeFollowWithHeading causes the map view to center the map on that location and begin tracking the user’s location

how to read longitude and latitude when user taps on google map ios?

I am trying to read the location where user tapped on google map(map kit) and then drop a pin at that point. I have tried to read the taps location in blank view and it is done successfully but when I did the same with google map,nothing happen...PLease help..
From your previous question you know where the user tapped. As #Jano suggests, you can add annotation after you get the coordinates

How to save image on Google map in iPhone

I have map application in which I have a button. On clicking that button the user can capture image through iPhone and the image that is captured by the user should be save on the map at the particular location where he has captured the image.
If you know where you want to display image on map then you have two ways to display particular image on map.
1. You can add image as a overlay on map.
Below link contains code in question: code link
2. Add image as a annoation. (http://blog.asolutions.com/2010/09/building-custom-map-annotation-callouts-part-1/)
Use core location to get the user current location, so that you can get his location where he is capturing image and then show that location on map.
By "save on the map" I'm assuming you want to show a dropped pin on the spot where the photo was taken- to do this, you'll need to:
Get the user's current location with CLLocationManager and CLLocationManagerDelegate.
Use UIImagePickerController to let the user take the photo.
Use MKAnnotation and MKPinAnnotationView to drop a pin where the user's location is. You can even insert the picture in the annotation view's callout.
A bit of Googling will net you tutorials using these classes. This one looks decent.

How to draw route in map in iphone

I want to draw route in map, for this I am storing latitude and longitude in my server. when this view opens it fetches all lat and long from server and plots it in mapView. Suppose server gets new lat and long this should show in mapView without closing this view, means map has plotted route if it gets new lat and long this route should continue from last point.
Apple supplied a demo application called Breadcrumb with the 2010 WWDC Developer videos that does exactly this. You can get the sample code from here: http://developer.apple.com/videos/wwdc/2010/
We wrote a category to mapKit that allow you to show route over the map :
http://code.google.com/p/octomapkit/
Very easy to use :
[youMap addRouteFrom:startCoord to:endCoord zommed:shouldZoom]
Hope this helps,
Vincent

how to get Region using Specified string in GoogleMaps in Iphone?

In my iphone application i am using MKMapView to display any region(i.e Australia) and it is working fine using coordinates(latitude and longitude).But i want to display the region based on the string (i.e Australia) instead of the coordinates.
Lets say i click on the TableView with named string as "Australia" and in the next view it should display Australia with some pinpoints on that.
how to display any region based on the String instead of the given coordinates?
provide any solution with any code snippet or any useful link or any other ,which would be appreciated.
Thanks,
Mishal Shah
You need Geocoding. Querying the server for "Australia" should return the coordinates you need.