AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Location

import "github.com/aws/aws-sdk-go/service/devicefarm"

type Location struct { Latitude *float64 `locationName:"latitude" type:"double" required:"true"` Longitude *float64 `locationName:"longitude" type:"double" required:"true"` }

Represents a latitude and longitude pair, expressed in geographic coordinate system degrees (for example 47.6204, -122.3491).

Elevation is currently not supported.

Latitude

Type: *float64

The latitude.

Latitude is a required field

Longitude

Type: *float64

The longitude.

Longitude is a required field

Method

GoString

func (s Location) GoString() string

GoString returns the string representation

SetLatitude

func (s *Location) SetLatitude(v float64) *Location

SetLatitude sets the Latitude field's value.

SetLongitude

func (s *Location) SetLongitude(v float64) *Location

SetLongitude sets the Longitude field's value.

String

func (s Location) String() string

String returns the string representation

Validate

func (s *Location) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: