class Location implements JsonSerializable

The Location class encodes a geographic Location based on latitude and longitude.

Methods

__construct(float $latitude, float $longitude)

No description

getLatitude()

Returns the latitude.

getLongitude()

Returns the longitude.

jsonSerialize()

{@inheritdoc}

string
queryStringFormatted()

Format the encoded value as required by the Contentful API.

Details

at line 29
__construct(float $latitude, float $longitude)

Parameters

float $latitude
float $longitude

at line 38
getLatitude()

Returns the latitude.

at line 46
getLongitude()

Returns the longitude.

at line 54
jsonSerialize()

{@inheritdoc}

at line 67
string queryStringFormatted()

Format the encoded value as required by the Contentful API.

Return Value

string