Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 67

schneuz
Lost but trying
Profile
Posts: 6
Reg: May 20, 2013
Werner Radler
2,810
05/12/14 10:06 AM (10 years ago)

Current Location in Instant Database App

Hello, I have installed the Instant Database App and everything in the the demo works fine - but now I want to edit and localize it to germany, but I always get a place near San Francisco as my current location (2014-05-12 18:44:00.032 test[2322:60b] Loading nearby locations from URL: http://xxxxxx/database_get_locations.pl?lat=37.785834&long=-122.406417)(<PlaceAnnotation: 0xd6b2480> Place: (null) Current coordinate: 37.785834 -122.406417) Where or how can I edit this, to get the actual location in the map? Thanks for any reply!
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
05/12/14 10:19 AM (10 years ago)
Hi Schneuz, It will show the users current location on the device. The simulator has the current position of Apple's headquarters hardcoded as the simulator device's current location, which is why you are seeing the startup location near San Francisco. If you load it on your local device, you will see that it will show your position as Germany (assuming that's where your phone is) :)
 
schneuz
Lost but trying
Profile
Posts: 6
Reg: May 20, 2013
Werner Radler
2,810
like
05/12/14 10:31 AM (10 years ago)
Thanks a lot! I have supposed something like this, but as we like to say: the devil is a squirrel...
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
05/12/14 12:12 PM (10 years ago)
You can change it in the simulator settings
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.