I want to make an app that shows where is a location on screen.
I’m going to show over camera image a text indicating if user is looking to it. For example, if user is looking for a town that is in north of his location it will see a text indicating it when he looks to the north.
I also want to show distance between user and location.
Knowing user location, I have to show it user is looking to another location. For example, I’m in New York and I want to know where is Statue of Liberty. I have to know its latitude and longitude to show it on screen when user looks at.
Is there any SDK to do it?
Do you need more details? I’m sorry, but I don’t speak English very well.
Steps should be:
Get lat and long and set them to two labels, self.label1 and self.label2
Create an empty view with transparentColor background.
Add your labels with addSubview: to the view in step 2.
Set cameraOverlayView to the view created in step 2.
Present your picker.
In code:
Define in your .h:
CLLocationManager *locationManagerand implement delegate:<CLLocationManagerDelegate>Then implement:
Then wherever you want to present your camera with coords:
Hope its clear enough and that there isn’t anything missing as i have not tested this.