Convert latitude and longitude into PFGeoPoint in swift

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

Answers (1)

Hardik Shekhat
Hardik Shekhat

Reputation: 1878

use this code. may be help you.

var descLocation: PFGeoPoint = PFGeoPoint()

descLocation.latitude = coord.latitude
descLocation.longitude = coord.longitude

Upvotes: 1

Related Questions