Google Maps iOS SDK, Getting Current Location of user

前端 未结 7 2394
渐次进展
渐次进展 2020-12-01 04:49

For my iOS app (building in iOS7),i need to show user\'s current location when the app load.I am using Google Maps iOS SDK. I am follo

相关标签:
7条回答
  • 2020-12-01 05:38

    there are many methods... I used this method and it works in all cases. Google gives you everything with the reponse in json format and its on you how you deal with that data.

    Some steps are there to load google map in your project.

    1. find the api key from this link https://developers.google.com/places/ios-api/ sign in with your google account and add your project and create a ios key. then use this in your project

    2. enable all the api needed for google map

    a-googlemaps sdk for ios b-googlemap direction api c-" " javasripts api d- picker api e- places api for ios f distance matrix api

    in appdelegate method...

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
        [GMSServices provideAPIKey:@"xxxxxxxx4rilCeZeUhPORXWNJVpUoxxxxxxxx"];
    
        return YES;
    }
    
    1. add all needed library and frameworks in your project if google map is not working it means you have to add required framework all the best play with google map
    0 讨论(0)
提交回复
热议问题