Current location without using GPS

hai Can we find out the current location without using gps? Is it possible?

+5
source share
8 answers

The iPhone SDK has a structure that automatically uses the appropriate mechanism for determining location based on how accurate the result should be. Apple has a good article that discusses these various ways of locating a device .

It is also a good starting point for learning programming with geographic services.

In addition, you can dive right into the CoreLocation core documentation and find out about everything you can do using geolocation services on iOS.

+7
source

Yes, CoreLocation can triangulate your position through neighboring cell phone towers, but the position will not be as accurate as with GPS. In addition, it can get your location through nearby WLANs, but it's even less reliable.

+4
source

Core Location does what you want (using Wi-Fi triangulation). Check out the CLLocationManager documentation

+3
source

try it

map.showsUserLocation = YES; 

map is my MKMapView object.

+2
source

Well, this is a very broad and very general question. If you speak on cell phones, you can use three tower triangulations, which is good when you press three towers at once, but if you only press one, the error can be up to several kilometers.

Now, if you are talking about Internet access devices (that is, something with an IP address), things are getting worse. If you use a stationary access point, you will get a close approximation using the nearest known hubs with the IP range in which the device is located. Mobile devices with IP addresses are really hard to identify.

+2
source

To add to @Jenifer's answer

 showsUserLocation 

Discussion

This property does not indicate whether the position of users is actually visible on the map, only whether displaying the map is allowed, display it. To determine whether a user’s position is visible, use the userLocationVisible Property. The default value for this property is NO.

Setting this property to the YES map view to use the main location of the frame to search for the current location. While this property is YES, the map display continues to track user locations and updates periodically.

Framework core framework

The Core Location structure allows you to determine the current location or title associated with the device. The Framework uses available equipment to determine the position of users and the title. You use the classes and protocols in this set up and schedule the delivery location and header. You can also use it to identify geographic regions and track when a user crosses the borders of these regions.

If you want to know how Core Location does it,

In fact, it uses several mechanisms.

  • GPS
  • Cell tower triangulation
  • Wifi Hotspot Cataloging
  • Accidentally assuming you are in Cupertino

There are trade-offs based on speed, accuracy and affordable equipment. The first Gen iPad will have only 3 options, while the iPhone simulator uses the latter mechanism.

You can observe the difference in these systems in the map application, where he initially guesses based on the cell of the tower, and then clarifies the guesses via GPS.

Only parameters # 3 require a data connection.

And for the faint of heart, including No. 4, it was not absolutely serious, although this is functionally correct. (I think they mimic GPS location reporting, and not just hardcode it, but I did not check.)

From How to find local storage of CoreLocation?

+1
source

iPod Touch does something like this. It does not have a GPS chip, but instead uses the available Wi-Fi networks in the area to get a general idea of ​​where you are.

0
source

All Articles