@xapp/ovai-lib 1.62.3 → 1.62.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/PlaceDescription.d.ts +24 -2
- package/package.json +2 -2
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
/*! Copyright (c) 2023, XAPP AI */
|
|
2
|
+
export interface PlacesDescriptionAddressComponent {
|
|
3
|
+
/**
|
|
4
|
+
* The full text description or name of the address component as returned by the Google Places API Geocoder.
|
|
5
|
+
*/
|
|
6
|
+
long_name: string;
|
|
7
|
+
/**
|
|
8
|
+
* An abbreviated textual name for the address component, if available.
|
|
9
|
+
* For example, an address component for the state of Alaska may have a long_name of "Alaska"
|
|
10
|
+
* and a short_name of "AK" using the 2-letter postal abbreviation.
|
|
11
|
+
*/
|
|
12
|
+
short_name: string;
|
|
13
|
+
/**
|
|
14
|
+
* An array indicating the type of the address component
|
|
15
|
+
*
|
|
16
|
+
* https://developers.google.com/maps/documentation/places/web-service/supported_types
|
|
17
|
+
*/
|
|
18
|
+
types: string[];
|
|
19
|
+
}
|
|
2
20
|
export interface PlaceDescription {
|
|
3
21
|
/**
|
|
4
22
|
* Name associated with the place.
|
|
@@ -9,9 +27,13 @@ export interface PlaceDescription {
|
|
|
9
27
|
*/
|
|
10
28
|
placeId?: string;
|
|
11
29
|
/**
|
|
12
|
-
* The address string, pulled from `
|
|
30
|
+
* The address string, pulled from `address_components` of the Place API, in the adr microformat.
|
|
31
|
+
*/
|
|
32
|
+
addressComponents?: PlacesDescriptionAddressComponent[];
|
|
33
|
+
/**
|
|
34
|
+
* The formatted address, as returned by the Google Places API.
|
|
13
35
|
*/
|
|
14
|
-
|
|
36
|
+
formattedAddress?: string;
|
|
15
37
|
/**
|
|
16
38
|
* If the location is the default.
|
|
17
39
|
*/
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.62.
|
|
7
|
+
"version": "1.62.4",
|
|
8
8
|
"description": "Shared library for OVAI",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"clean": "rm -rf ./lib/*",
|
|
38
38
|
"test": "mocha --recursive -r ts-node/register \"./src/**/*.test.ts\""
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "0983fed176e12e7a9a81f664c3970d7504cf535e"
|
|
41
41
|
}
|