currentlocation

Current Location in Google Maps with swift

点点圈 提交于 2019-12-01 12:14:51
问题 I'm trying to display the user's current location on a google map but in the case below, the map doesn't even get displayed. What should I change to fix this? var locationManager = CLLocationManager() override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. //user location stuff locationManager.delegate = self locationManager.requestWhenInUseAuthorization() locationManager.desiredAccuracy = kCLLocationAccuracyBest locationManager

How to get the user's current location by code in iphone app?

走远了吗. 提交于 2019-12-01 01:35:38
I want to get the user's current location from my iPhone app. I want to show the user's current location like country name, latitude, longitude information in my app. And also i want to show the location in Google map also. I have tried Google search also, but can't get the exact answer. I have get the info that was to use CLLocationManager in my app to track the location. How do i use this? I have download one sample app from Apple Documents. Here is the link: https://developer.apple.com/library/ios/#samplecode/LocateMe/Introduction/Intro.html Can you please help me on this? Thanks in advance

Get current city and country from CLGeocoder?

你。 提交于 2019-11-29 23:21:40
I've been all over the internet trying to find out how to get the city and country from CLGeocoder . I can get the longitude and latitude easily but I need the city and country information, and I keep running into deprecated methods and such, any ideas? It basically needs to get the location, then have an NSString for the country, and an NSString for the city, so I can use them to look up more info or put them on labels, etc. You need to revise your terminology a bit - CLGeocoder (and most geocoders) won't give you a 'city' per-se - it uses terms such as 'Administrative Area',

Customize Google Maps blue dot for current location

只愿长相守 提交于 2019-11-29 09:42:29
I'm using a 2013 version of Google Maps SDK for iOS. I would like to customize the default blue dot for current location with another icon or pulsing circles around. I know we can do that with mapView:viewForAnnotation: in MKMapView, but I can't found out how to do it with Google Maps. There is no way to do this with current version of the SDK (1.4.3), and actually there is an open issue with this request: Look here . As a work around, you can hide the default button with: _map.myLocationEnabled = NO; Then create a custom GMSMarker GMSMarker *pointMarker = [GMSMarker markerWithPosition

Get current city and country from CLGeocoder?

独自空忆成欢 提交于 2019-11-28 20:37:56
问题 I've been all over the internet trying to find out how to get the city and country from CLGeocoder . I can get the longitude and latitude easily but I need the city and country information, and I keep running into deprecated methods and such, any ideas? It basically needs to get the location, then have an NSString for the country, and an NSString for the city, so I can use them to look up more info or put them on labels, etc. 回答1: You need to revise your terminology a bit - CLGeocoder (and

Customize Google Maps blue dot for current location

人走茶凉 提交于 2019-11-28 03:07:11
问题 I'm using a 2013 version of Google Maps SDK for iOS. I would like to customize the default blue dot for current location with another icon or pulsing circles around. I know we can do that with mapView:viewForAnnotation: in MKMapView, but I can't found out how to do it with Google Maps. 回答1: There is no way to do this with current version of the SDK (1.4.3), and actually there is an open issue with this request: Look here. As a work around, you can hide the default button with: _map

How can I get current location from user in iOS

∥☆過路亽.° 提交于 2019-11-26 00:27:05
问题 How can I get the current location from user in iOS? 回答1: The answer of RedBlueThing worked quite well for me. Here is some sample code of how I did it. Header #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> @interface yourController : UIViewController <CLLocationManagerDelegate> { CLLocationManager *locationManager; } @end MainFile In the init method locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.distanceFilter =