Reputation: 17
In objective-c we can convert a latitude and longitude to a PFGeoPoint using geoPointWithLatitude. But i couldn't find any method to do it in swift.
Thanks in advance.
Upvotes: 0
Views: 232
Reputation: 1878
use this code. may be help you.
var descLocation: PFGeoPoint = PFGeoPoint()
descLocation.latitude = coord.latitude
descLocation.longitude = coord.longitude
Upvotes: 1