[Actions-on-google] add Coordinates interface for long latitude (#23084)

* [actions-on-google] Add coordinates interface with lat and long

The coordinates property typed as object, which forced users to cast coordinates manually.
With the Coordinates interface that is not necessary anymore.

* Fix missing semi colons
This commit is contained in:
Niels Swimberghe
2018-01-22 16:47:17 -05:00
committed by Andy
parent 09091ad257
commit ff671eae53

View File

@@ -263,8 +263,8 @@ export interface UserName {
* User's permissioned device location.
*/
export interface DeviceLocation {
/** {latitude, longitude}. Requested with SupportedPermissions.DEVICE_PRECISE_LOCATION. */
coordinates: object;
/** Coordinates: {latitude, longitude}. Requested with SupportedPermissions.DEVICE_PRECISE_LOCATION. */
coordinates: Coordinates;
/** Full, formatted street address. Requested with SupportedPermissions.DEVICE_PRECISE_LOCATION. */
address: string;
/** Zip code. Requested with SupportedPermissions.DEVICE_COARSE_LOCATION. */
@@ -273,6 +273,16 @@ export interface DeviceLocation {
city: string;
}
/**
* Coordinates containing latitude and longitude
*/
export interface Coordinates {
/** Latitude coordinate. */
latitude: number;
/** Longitude coordinate. */
longitude: number;
}
/**
* User object.
*/