void Start() { var request = new GeolookupRequest("AIzaSyAzYNj5AyuB0e8KSmSdyzMLYnYtJRVnNho"); request.Send(new Location(13.3525321, 74.79282239999999)) .Then(response => Debug.Log(JsonUtility.ToJson(response))) .Catch(exception => Debug.LogError(exception)); }
async void Start() { UniMapInitializer.Initialize(); var request = new GeolookupRequest("KEY"); try { var response = await request.Send(new Location(13.3525321, 74.79282239999999)); Debug.Log(JsonUtility.ToJson(response)); } catch (Exception e) { Debug.LogError(e); } }