Hi i m going to build up a GPS based application in which i want to locate the place with altitude and latitude of a person who is using GPS application.
Please suggest me tips how to start and how to code for that.
Aman Gupta
Check out the Core Location framework reference.
Related
I am new to iphone development.I want to know that is there a framework or method to get the gps location of another iphone if the application is installed in both the iphone.
If there is any method can u please help me to sort out this
thanks in advance?
I agree with James, thank god it is not open in that anyone can see where anyone is via a single method, but I did create a solution that does this as a test app and it was not to difficult.
The frameworks that I used are Core Location to get the GPS coordinates, Foundation Framework to share the information with a web service using NSURLConnection, MapKit to map the coordinates, and the open source SBJson encoder/decoder.
I then created a PHP web service that enabled users of the app to register and choose who they would share their location with.
Then once per minute each instance of the app that is active would send its coordinates to the web service and then download any coordinates of other devices that it is allowed to see.
If I published this app, I would probably provide an option to chose the update frequency to conserve battery life.
Two free apps that also do this, that were created by Apple, are the Find Friends and Find iPhone apps.
If you are interested in creating something like this, check out the LocateMe sample code at developer.apple.com.
There is an application in iPhone called Map. we could give some destination and get the driving direction, distance and the time to that location from it. I need to know how this works ?
Is there any native iPhone frameworks that i could use to get this ? or is it from a Google API that i should use ?
and here's an image of the application
yes, use the mapkit and corelocation frameworks. also check this out
I'm testing GeoLocation on iPhone. The ideia is to have a WebApp that runs on iPhone and, based on my location, gives-me the shortest path to well known spots in my city/country.
My current position os always the starting point.
The end point is always the nearest spot.
Imagine my known spots as all Train Stations in my city.
How can i do such thing? I guess i'll use google maps api but where do i define the spots? How can i say to google to trace the route to the nearest spot?
Thank u ALL:
I hope, you are going to show the route between two latitude & longitude values.The stackoverflow link will help you..
Is it possible to find the current location of an iphone as an address rather than as GPS coordinates using the API?
What you're looking for is MKReverseGeocoder.
What you could do is take the GPS coordinates and put them into Google maps to get the address. It seems that Google has an API that you can interact with, but I don't have any experience with it.
Good luck!
I am trying to find the location of user using corelocation framework in my app ,
but
it doesn't showing good results , can anyone please tell me how can i get location accurately in indoors ?
thanks in advance
regards
I am not sure, about the exact physical environment but if wifi access points are available then you can use sdk available from skyhook wireless or navision to locate your current position in case the accuracy of the gps position is not good.
This is not a failsafe approach, but may work better in areas where data is available about wireless ap.
In the general case, you can't get an accurate location indoors using Core Location. (What's wrong with your question is in assuming that you can, before asking how to do the impossible.)
You might get lucky if you are under to a tent roof that is paper thin or near a large window below lots of wide open sky, or happen to be between 3 or more nearby wifi access points whose locations are all accurately and precisely registered with whichever wifi database(s) Apple is using.