Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert latitude longitude into CLLocationCoordinate2D

I want to convert lat lon to CLLocationCoordinate2D.

self.currentLocation = {.latitude = 0.0, .longitude = 0.0};

This gives me error "Expected expression".

What am I doing wrong?

like image 245
Harsh Avatar asked Jul 22 '11 12:07

Harsh


1 Answers

Update > Swift 4

let loc_coords = CLLocationCoordinate2DMake(47.601089,-52.740439)

For more details please have a look to apple developer website: CLLocationCoordinate2DMake

Thanks

like image 142
Harjot Singh Avatar answered Sep 21 '22 17:09

Harjot Singh