Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to test geolocation on simulator

I'm starting with geocoding, and after read a few things I realize that are some people using the simulator for testing their code.

Is that possible!?? Can someone tell which tools use!? (it's better than walking around)

Thanks

like image 228
Frade Avatar asked Jan 11 '12 12:01

Frade


2 Answers

XCode 4.2 with iOS 5 now supports "Location simulation", you can refer it HERE.

Steps to use this feature:

  1. Build & run your app in iPhone 5.0 Simular.
  2. At the top menu bar, you'll find Debug -> Location -> Custom Location..(or you can choose to use others).
  3. Set the Latitude & Longitude for the location.
like image 192
Kjuly Avatar answered Oct 16 '22 20:10

Kjuly


As of iOS 5 and Xcode 4.1 is is now possible to test location in the simulator, There are also premade classes for this such as : https://github.com/progrmr/CLLocationManager-simulator

like image 22
Shai Mishali Avatar answered Oct 16 '22 19:10

Shai Mishali