Getting geographical coordinates in android camera

331 views Asked by At

In Android, is there any way that we can get the geographical co-ordinates when we open the camera and touch different points on the visible area?

Actually I'm finding any way to measure the length between two co-ordinates that user can see through the camera.

Please provide some easy way to do this.

1

There are 1 answers

2
Aniruddha K.M On

you have to implement you own camera to achieve this.

I'm finding any way to measure the length between two co-ordinates that user can see through the camera.

Short answer NO as,
In your custom camera in the camera parameters we set the the gps co-ordinates for a photo using this method. http://developer.android.com/reference/android/hardware/Camera.Parameters.html#setGpsLatitude(double) Since for each photo we just set one gps data it cannot be set to multiple gps co-ordinates.If it is required we extract it through EXIF data.

I'm finding any way to measure the length between two co-ordinates that user can see through the camera.

you can actually do this by this way http://developer.android.com/guide/topics/media/camera.html#metering-focus-areas
you can get the focus area as shown in the above.

Will it solve your ISSUE

I dont know what your exact requirement is but based on the short data in your question i assume it cannot be done using the camera, however you can use the location manager to achieve this task.