Skip to content

How to get current location latitude and longitude ? #40

@Parameshvadivel

Description

@Parameshvadivel

I am trying to get user current location latitude and longitude not degrees.

let currentLocation = CLLocation(latitude: self.mapView.centerCoordinate.latitude, longitude: self.mapView.centerCoordinate.longitude)

annotationManager.originLocation = currentLocation
print("current location coordinate :::\(CLLocationCoordinate2D(latitude: currentLocation.coordinate.latitude, longitude: currentLocation.coordinate.longitude))")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions