How to save image on Google map in iPhone - 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.

Related

Is it possible to use image web URL instead of local pin image for map view control in Smartface App Studio

I tried to assign image url like 'http://someimageurl.png' to the selectedImage & unSelectedImage properties while adding pin to the map view control.
But, still showing the default image.
Is there a way to use image url for pin rather than local resource image?
Thanks in advance.
It is not possible to use a url for pin images on map object.
You can use that kind of image url's for image object, but not for map object.

Detecting image location of the picture in iPhone

I am working on a camera app in which the pictures I take should store the location as to where they were taken. So maybe after a while, if I want to know where a particular picture was taken, I should click on a button, say above my photo album, which should re-direct me to a mapview. There, it should show the places where i've taken all my pictures, with an album for each place.
Any idea on how to make this work?
here are some links which is related to your question.
Get Exif data from UIImage
UIImagePickerController and extracting EXIF data from existing photos
Add MetaData to UIImage. Same metadata of UIImage can be used to know images's location.
Refer Save_Photo_to_Album_with_Metadata

how to draw route from userlocation to some pin in iphone sdk?

I am implementing map based application in iPhone sdk. I want to give functionality in map view like Google maps directoins. means is at some location from that he selects one pin from multiple pins from MKPinAnnotationView. is it possible that user can get direction from his current location to selected pin location in MapView? user can select any aanonations from that he can get directions in some way of line to his current location to pin location. i have get some idea from here
but this all was some static data you can download this example.
here also apple example. but this example is only for track & draw line for user movement.
is it possible that user can get direction from his current location to selected pin location in MapView?
Yes. You can send a query to google maps api using your current location and the selected annotation location. When google responds with the route, you will use that polyline decoder method to decode the data and draw the route on your map view.
I have got all side idea from here
this can be useful for other developers also.
i have found some other examples also that can be also useful for other developers just google. you will find this is polyline link for user current location use this apple code
Here is Google direction api. Read it and use it.
For test purpose you can check this request
http://maps.googleapis.com/maps/api/directions/json?origin=28.459497,77.026638&destination=28.435600,77.009997&sensor=true
And use JSON Viewer to see the json response.

Accessing next asset from UIImagePickerController

I'm using the UIImagePickerController to choose an image, and display it to the user immediately. However, I want the user to be able to swipe, and the next image from the album appears. The question is, how do I access the next image in the album after the initial user-selected image, programmatically?
With UIImagePickerController you just can't.
You need to use the ALAssets Library for that.
See this example: Accessing photo library using assets library
Best,
Christian

create fliping book with images

I want to create a application in which i required following function
create array of images in view and move like page turning effect orientation change then same view will execute. tap on image then zoom in or zoom out image.
double tap then upload bigger image from web-services.
on image when select part of image then open url of that image.
Try these Sample code
https://github.com/devindoty/iBooks-Flip-Animation
http://oleb.net/blog/2010/06/app-store-safe-page-curl-animations/
https://github.com/mtabini/AFKPageFlipper
AFKPageFlipper will help you with the page-flip-effect. The other questions: First, try to solve it self (zoom, ...) and if you have problem ask a new questions here.