GoogleNavigation Framework Reference

  • GMSMapPoint represents a point on the map, potentially a projected coordinate.

  • The point's x and y values range from -1 to 1, with (0, 0) at the map's center and y growing North, x growing East.

  • You can convert between geographical coordinates and GMSMapPoint using GMSProject() and GMSUnproject().

  • GMSMapPoint has two properties: x and y, representing the point's horizontal and vertical position respectively, both of type Double.

GMSMapPoint

struct GMSMapPoint {}

A point on the map. May represent a projected coordinate.

x is in [-1, 1]. The axis direction is normal: y grows towards North, x grows towards East. (0, 0) is the center of the map.

See GMSProject() and GMSUnproject().

  • x

    Declaration

    Swift

    var x: Double

    Objective-C

    double x
  • y

    Declaration

    Swift

    var y: Double

    Objective-C

    double y