googlemaps-kit 0.1.3 → 0.2.0
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/README.md +146 -179
- package/dist/advanced/auth.d.ts +10 -0
- package/dist/advanced/auth.d.ts.map +1 -0
- package/dist/advanced/auth.js +8 -0
- package/dist/advanced/auth.js.map +1 -0
- package/dist/advanced/http.d.ts +10 -0
- package/dist/advanced/http.d.ts.map +1 -0
- package/dist/advanced/http.js +9 -0
- package/dist/advanced/http.js.map +1 -0
- package/dist/advanced/parsers.d.ts +28 -0
- package/dist/advanced/parsers.d.ts.map +1 -0
- package/dist/advanced/parsers.js +25 -0
- package/dist/advanced/parsers.js.map +1 -0
- package/dist/advanced/rpc.d.ts +29 -0
- package/dist/advanced/rpc.d.ts.map +1 -0
- package/dist/advanced/rpc.js +23 -0
- package/dist/advanced/rpc.js.map +1 -0
- package/dist/advanced/services.d.ts +34 -0
- package/dist/advanced/services.d.ts.map +1 -0
- package/dist/advanced/services.js +29 -0
- package/dist/advanced/services.js.map +1 -0
- package/dist/advanced/utils.d.ts +15 -0
- package/dist/advanced/utils.d.ts.map +1 -0
- package/dist/advanced/utils.js +13 -0
- package/dist/advanced/utils.js.map +1 -0
- package/dist/advanced.d.ts +43 -0
- package/dist/advanced.d.ts.map +1 -0
- package/dist/advanced.js +26 -0
- package/dist/advanced.js.map +1 -0
- package/dist/auth/session.d.ts +6 -1
- package/dist/auth/session.d.ts.map +1 -1
- package/dist/auth/session.js +23 -8
- package/dist/auth/session.js.map +1 -1
- package/dist/cli.d.ts +11 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +115 -0
- package/dist/cli.js.map +1 -0
- package/dist/client/gmaps-client.d.ts +91 -52
- package/dist/client/gmaps-client.d.ts.map +1 -1
- package/dist/client/gmaps-client.js +209 -109
- package/dist/client/gmaps-client.js.map +1 -1
- package/dist/client/http-client.d.ts +28 -3
- package/dist/client/http-client.d.ts.map +1 -1
- package/dist/client/http-client.js +163 -14
- package/dist/client/http-client.js.map +1 -1
- package/dist/client/intent.d.ts +75 -0
- package/dist/client/intent.d.ts.map +1 -0
- package/dist/client/intent.js +546 -0
- package/dist/client/intent.js.map +1 -0
- package/dist/client/maps-tools.d.ts +80 -0
- package/dist/client/maps-tools.d.ts.map +1 -0
- package/dist/client/maps-tools.js +187 -0
- package/dist/client/maps-tools.js.map +1 -0
- package/dist/client/namespaces.d.ts +121 -0
- package/dist/client/namespaces.d.ts.map +1 -0
- package/dist/client/namespaces.js +169 -0
- package/dist/client/namespaces.js.map +1 -0
- package/dist/client/place-enrichment.d.ts +19 -0
- package/dist/client/place-enrichment.d.ts.map +1 -0
- package/dist/client/place-enrichment.js +71 -0
- package/dist/client/place-enrichment.js.map +1 -0
- package/dist/client/product-namespaces.d.ts +30 -0
- package/dist/client/product-namespaces.d.ts.map +1 -0
- package/dist/client/product-namespaces.js +47 -0
- package/dist/client/product-namespaces.js.map +1 -0
- package/dist/index.d.ts +31 -37
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -28
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +3 -137
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +3 -94
- package/dist/internal.js.map +1 -1
- package/dist/parsers/place.d.ts.map +1 -1
- package/dist/parsers/place.js +2 -0
- package/dist/parsers/place.js.map +1 -1
- package/dist/parsers/reviews.d.ts +0 -2
- package/dist/parsers/reviews.d.ts.map +1 -1
- package/dist/parsers/reviews.js +0 -2
- package/dist/parsers/reviews.js.map +1 -1
- package/dist/parsers/search.d.ts +13 -1
- package/dist/parsers/search.d.ts.map +1 -1
- package/dist/parsers/search.js +130 -71
- package/dist/parsers/search.js.map +1 -1
- package/dist/rpc/batch-execute.d.ts.map +1 -1
- package/dist/rpc/batch-execute.js +20 -3
- package/dist/rpc/batch-execute.js.map +1 -1
- package/dist/rpc/batch-rpc.d.ts.map +1 -1
- package/dist/rpc/batch-rpc.js +5 -6
- package/dist/rpc/batch-rpc.js.map +1 -1
- package/dist/rpc/batch-services.d.ts +2 -0
- package/dist/rpc/batch-services.d.ts.map +1 -1
- package/dist/rpc/batch-services.js +4 -0
- package/dist/rpc/batch-services.js.map +1 -1
- package/dist/rpc/pb-builders.d.ts +0 -2
- package/dist/rpc/pb-builders.d.ts.map +1 -1
- package/dist/rpc/pb-builders.js +2 -5
- package/dist/rpc/pb-builders.js.map +1 -1
- package/dist/rpc/rpc-client.d.ts +6 -2
- package/dist/rpc/rpc-client.d.ts.map +1 -1
- package/dist/rpc/rpc-client.js +26 -10
- package/dist/rpc/rpc-client.js.map +1 -1
- package/dist/rpc/rpc-methods.d.ts +0 -7
- package/dist/rpc/rpc-methods.d.ts.map +1 -1
- package/dist/rpc/rpc-methods.js +0 -7
- package/dist/rpc/rpc-methods.js.map +1 -1
- package/dist/services/ask-maps.js +1 -1
- package/dist/services/ask-maps.js.map +1 -1
- package/dist/services/directions.d.ts +3 -8
- package/dist/services/directions.d.ts.map +1 -1
- package/dist/services/directions.js +37 -13
- package/dist/services/directions.js.map +1 -1
- package/dist/services/geocode.js +1 -1
- package/dist/services/photos.d.ts.map +1 -1
- package/dist/services/photos.js +2 -5
- package/dist/services/photos.js.map +1 -1
- package/dist/services/places.d.ts.map +1 -1
- package/dist/services/places.js +13 -4
- package/dist/services/places.js.map +1 -1
- package/dist/services/reviews.d.ts +7 -0
- package/dist/services/reviews.d.ts.map +1 -1
- package/dist/services/reviews.js +10 -1
- package/dist/services/reviews.js.map +1 -1
- package/dist/services/search.d.ts +7 -5
- package/dist/services/search.d.ts.map +1 -1
- package/dist/services/search.js +46 -17
- package/dist/services/search.js.map +1 -1
- package/dist/services/ugc-aggregates.d.ts.map +1 -1
- package/dist/services/ugc-aggregates.js +1 -17
- package/dist/services/ugc-aggregates.js.map +1 -1
- package/dist/types/common.d.ts +92 -6
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +12 -0
- package/dist/types/common.js.map +1 -1
- package/dist/types/directions.d.ts +16 -2
- package/dist/types/directions.d.ts.map +1 -1
- package/dist/types/dx.d.ts +289 -0
- package/dist/types/dx.d.ts.map +1 -0
- package/dist/types/dx.js +7 -0
- package/dist/types/dx.js.map +1 -0
- package/dist/types/hooks.d.ts +48 -0
- package/dist/types/hooks.d.ts.map +1 -0
- package/dist/types/hooks.js +5 -0
- package/dist/types/hooks.js.map +1 -0
- package/dist/utils/abort.d.ts +7 -0
- package/dist/utils/abort.d.ts.map +1 -0
- package/dist/utils/abort.js +43 -0
- package/dist/utils/abort.js.map +1 -0
- package/dist/utils/coords.d.ts +24 -0
- package/dist/utils/coords.d.ts.map +1 -0
- package/dist/utils/coords.js +37 -0
- package/dist/utils/coords.js.map +1 -0
- package/dist/utils/export-results.d.ts +24 -0
- package/dist/utils/export-results.d.ts.map +1 -0
- package/dist/utils/export-results.js +105 -0
- package/dist/utils/export-results.js.map +1 -0
- package/dist/utils/hooks.d.ts +10 -0
- package/dist/utils/hooks.d.ts.map +1 -0
- package/dist/utils/hooks.js +47 -0
- package/dist/utils/hooks.js.map +1 -0
- package/dist/utils/place-ref.d.ts +39 -0
- package/dist/utils/place-ref.d.ts.map +1 -0
- package/dist/utils/place-ref.js +109 -0
- package/dist/utils/place-ref.js.map +1 -0
- package/dist/utils/pooled.d.ts +2 -0
- package/dist/utils/pooled.d.ts.map +1 -1
- package/dist/utils/pooled.js +8 -0
- package/dist/utils/pooled.js.map +1 -1
- package/dist/utils/request-context.d.ts +9 -0
- package/dist/utils/request-context.d.ts.map +1 -0
- package/dist/utils/request-context.js +12 -0
- package/dist/utils/request-context.js.map +1 -0
- package/dist/utils/ttl-cache.d.ts +17 -0
- package/dist/utils/ttl-cache.d.ts.map +1 -0
- package/dist/utils/ttl-cache.js +43 -0
- package/dist/utils/ttl-cache.js.map +1 -0
- package/package.json +27 -12
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auth + surface catalog namespaces — product-facing wrappers over kit internals.
|
|
3
|
+
*/
|
|
4
|
+
import { AuthService, summarizeAuthStatus } from '../auth/auth-status.js';
|
|
5
|
+
import { KNOWN_SURFACES, getSurfaceInfo, listSurfacesByStatus, } from '../known-surfaces.js';
|
|
6
|
+
/** Session / cookie status for apps (no secret values returned). */
|
|
7
|
+
export class AuthNamespace {
|
|
8
|
+
auth;
|
|
9
|
+
constructor(http, config) {
|
|
10
|
+
this.auth = new AuthService(http, {
|
|
11
|
+
cookies: config.cookies,
|
|
12
|
+
authToken: config.authToken,
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
/** Live or cached auth probe — cookie names/lengths only, never values. */
|
|
16
|
+
status(options) {
|
|
17
|
+
return this.auth.getStatus(options);
|
|
18
|
+
}
|
|
19
|
+
/** One-line summary for logs (`signed-in, cookies=12, …`). */
|
|
20
|
+
async summarize(options) {
|
|
21
|
+
return summarizeAuthStatus(await this.status(options));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/** Catalog of Maps surfaces this kit knows about (working / auth / blocked / …). */
|
|
25
|
+
export class SurfacesNamespace {
|
|
26
|
+
/** All surface names. */
|
|
27
|
+
list() {
|
|
28
|
+
return Object.keys(KNOWN_SURFACES);
|
|
29
|
+
}
|
|
30
|
+
/** Surfaces filtered by status (`working`, `auth-required`, …). */
|
|
31
|
+
listByStatus(status) {
|
|
32
|
+
return listSurfacesByStatus(status);
|
|
33
|
+
}
|
|
34
|
+
/** Metadata for one surface. */
|
|
35
|
+
get(name) {
|
|
36
|
+
return getSurfaceInfo(name);
|
|
37
|
+
}
|
|
38
|
+
/** Full catalog object (read-only snapshot). */
|
|
39
|
+
catalog() {
|
|
40
|
+
return KNOWN_SURFACES;
|
|
41
|
+
}
|
|
42
|
+
/** Names marked working (anonymous or with documented path). */
|
|
43
|
+
working() {
|
|
44
|
+
return listSurfacesByStatus('working');
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=product-namespaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-namespaces.js","sourceRoot":"","sources":["../../src/client/product-namespaces.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAA0B,MAAM,wBAAwB,CAAC;AAGlG,OAAO,EACL,cAAc,EACd,cAAc,EACd,oBAAoB,GAIrB,MAAM,sBAAsB,CAAC;AAE9B,oEAAoE;AACpE,MAAM,OAAO,aAAa;IACP,IAAI,CAAc;IAEnC,YAAY,IAAgB,EAAE,MAAmB;QAC/C,IAAI,CAAC,IAAI,GAAG,IAAI,WAAW,CAAC,IAAI,EAAE;YAChC,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,SAAS,EAAE,MAAM,CAAC,SAAS;SAC5B,CAAC,CAAC;IACL,CAAC;IAED,2EAA2E;IAC3E,MAAM,CAAC,OAA2B;QAChC,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IAED,8DAA8D;IAC9D,KAAK,CAAC,SAAS,CAAC,OAA2B;QACzC,OAAO,mBAAmB,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IACzD,CAAC;CACF;AAED,oFAAoF;AACpF,MAAM,OAAO,iBAAiB;IAC5B,yBAAyB;IACzB,IAAI;QACF,OAAO,MAAM,CAAC,IAAI,CAAC,cAAc,CAAuB,CAAC;IAC3D,CAAC;IAED,mEAAmE;IACnE,YAAY,CAAC,MAAqB;QAChC,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,gCAAgC;IAChC,GAAG,CAAC,IAAsB;QACxB,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,gDAAgD;IAChD,OAAO;QACL,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,gEAAgE;IAChE,OAAO;QACL,OAAO,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACzC,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,40 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* googlemaps-kit
|
|
3
|
-
*
|
|
2
|
+
* googlemaps-kit — customer-facing API.
|
|
3
|
+
*
|
|
4
|
+
* App code: `import { sdk } from 'googlemaps-kit'`
|
|
5
|
+
* Wire / protobuf / RPC: `import { … } from 'googlemaps-kit/advanced'`
|
|
4
6
|
*/
|
|
5
|
-
export { GMapsClient,
|
|
7
|
+
export { GMapsClient, sdk, GMaps } from './client/gmaps-client.js';
|
|
6
8
|
export type { EnrichSearchOptions } from './client/gmaps-client.js';
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export type {
|
|
10
|
-
export {
|
|
11
|
-
|
|
12
|
-
export { RevealService } from './services/reveal.js';
|
|
13
|
-
export type { RevealPlaceOptions, RevealedPlace, RevealPlaceResult } from './types/reveal.js';
|
|
14
|
-
export { PassiveAssistService } from './services/passiveassist.js';
|
|
15
|
-
export type { MintedViewportPsi, PassiveAssistChip, PassiveAssistOptions, PassiveAssistPsiContext, PassiveAssistResult, } from './types/passiveassist.js';
|
|
16
|
-
export { LocalPostsService } from './services/local-posts.js';
|
|
17
|
-
export type { GetLocalPostsOptions } from './services/local-posts.js';
|
|
18
|
-
export { KnowledgeService } from './services/knowledge.js';
|
|
19
|
-
export type { GetKnowledgeOptions } from './services/knowledge.js';
|
|
20
|
-
export { DirectionsService } from './services/directions.js';
|
|
21
|
-
export { SuggestService } from './services/suggest.js';
|
|
22
|
-
export { PanoramaService } from './services/panorama.js';
|
|
23
|
-
export { TilesService } from './services/tiles.js';
|
|
24
|
-
export { ListsService } from './services/lists.js';
|
|
25
|
-
export { GeocodeService } from './services/geocode.js';
|
|
26
|
-
export { PhotosService } from './services/photos.js';
|
|
27
|
-
export { LinksService } from './services/links.js';
|
|
28
|
-
export { TrafficService } from './services/traffic.js';
|
|
29
|
-
export { TransitService } from './services/transit.js';
|
|
30
|
-
export type { GetStationDeparturesOptions, ListTransitLinesOptions, TransitDeparture, TransitModeBoard, TransitStationBoard, } from './types/transit.js';
|
|
31
|
-
export { CategoriesService } from './services/categories.js';
|
|
32
|
-
export { UgcAggregatesService } from './services/ugc-aggregates.js';
|
|
33
|
-
export { BatchUrlService } from './services/batch-url.js';
|
|
34
|
-
export { DistanceMatrixService } from './services/distance-matrix.js';
|
|
35
|
-
export { ElevationService } from './services/elevation.js';
|
|
36
|
-
export { TimezoneService } from './services/timezone.js';
|
|
37
|
-
export { StaticMapService } from './services/static-map.js';
|
|
9
|
+
export type { AuthNamespace, SurfacesNamespace } from './client/product-namespaces.js';
|
|
10
|
+
export type { AuthStatusOptions } from './auth/auth-status.js';
|
|
11
|
+
export type { KnownSurfaceName, SurfaceInfo, SurfaceStatus, } from './known-surfaces.js';
|
|
12
|
+
export { KNOWN_SURFACES, getSurfaceInfo, listSurfacesByStatus } from './known-surfaces.js';
|
|
13
|
+
/** Shareable google.com/maps URLs (not wire request URLs). */
|
|
38
14
|
export { buildPlaceUrl as buildPlaceLink, buildSearchUrl as buildSearchLink, buildDirectionsUrl as buildDirectionsLink, buildViewportUrl as buildViewportLink, buildStreetViewUrl as buildStreetViewLink, buildEmbedUrl as buildEmbedLink, travelModeToCode, travelModeFromCode, } from './rpc/maps-url-builders.js';
|
|
39
15
|
export type { BuildPlaceUrlOptions, BuildSearchUrlOptions, BuildDirectionsUrlOptions, BuildStreetViewUrlOptions, BuildEmbedUrlOptions, BuildViewportUrlOptions, EmbedUrlResult, MapsUrlMapAction, MapsUrlLayer, } from './types/maps-urls.js';
|
|
40
16
|
export { parseMapsUrl, isShortMapsLink } from './parsers/maps-url.js';
|
|
@@ -42,7 +18,7 @@ export type { ParsedMapsUrl } from './types/links.js';
|
|
|
42
18
|
export { decodeEncodedPolyline, encodePolyline } from './utils/encoded-polyline.js';
|
|
43
19
|
export { loadProjectEnv } from './utils/load-env.js';
|
|
44
20
|
export type { StaticMapOptions, StaticMapBoundsOptions, StaticMapResult, StaticMapMarker, StaticMapPath, StaticMapMarkerStyle, StaticMapScale, } from './types/static-map.js';
|
|
45
|
-
export type { SearchClientFilters,
|
|
21
|
+
export type { SearchClientFilters, SearchRatingFilter, SearchPriceLevel } from './types/search-filters.js';
|
|
46
22
|
export type { DistanceMatrixOptions, DistanceMatrixResult, DistanceMatrixCell, } from './types/distance-matrix.js';
|
|
47
23
|
export type { ElevationPointOptions, ElevationPointResult, ElevationPathOptions, ElevationPathResult, } from './types/elevation.js';
|
|
48
24
|
export type { TimezoneOptions, TimezoneResult } from './types/timezone.js';
|
|
@@ -58,7 +34,25 @@ export type { GetListOptions, PlaceList, PlaceListEntry } from './types/lists.js
|
|
|
58
34
|
export type { GeocodeOptions, ReverseGeocodeOptions, GeocodeResult, GeocodeResponse, AddressComponent, } from './types/geocode.js';
|
|
59
35
|
export type { PhotoCategory, PhotosSource, PlacePhoto, PhotosListResult, ListPlacePhotosOptions, ListAllPlacePhotosOptions, PhotoCategoryCount, } from './types/photos.js';
|
|
60
36
|
export { PHOTOS_SOURCE_METADATA } from './types/photos.js';
|
|
61
|
-
export type { GMapsConfig, Coordinates, AuthStatus, AuthCapabilities, SearchOptions, SearchResult, SearchPageResult, SearchFieldMask, SearchTextOptions, SearchTextResult, PlaceDetails, BusinessHours, PlaceOpeningSchedule, PlaceDaySchedule, PlaceHoursInterval, PlaceAttribute, PlaceAttributeGroup, PlaceAccessibilityFeature, WeekdayIndex, WeekdayName, Review, ReviewsResult, ReviewRatingDistribution, EnrichedSearchResult, GetPlaceFullOptions, GetPlaceCompleteOptions, PlaceFullResult, PlaceCompleteResult, PlaceFullMeta, LocalPost, KnowledgeEntity, DirectionsOptions, DirectionsResult, DirectionsLeg, DirectionsStep, TravelMode, ReviewSortOrder, } from './types/common.js';
|
|
37
|
+
export type { GMapsConfig, Coordinates, AuthStatus, AuthCapabilities, SearchOptions, SearchResult, SearchPageResult, SearchFieldMask, SearchMode, SearchTextOptions, SearchTextResult, PlaceDetails, BusinessHours, PlaceOpeningSchedule, PlaceDaySchedule, PlaceHoursInterval, PlaceAttribute, PlaceAttributeGroup, PlaceAccessibilityFeature, WeekdayIndex, WeekdayName, Review, ReviewsResult, ReviewRatingDistribution, EnrichedSearchResult, GetPlaceFullOptions, GetPlaceCompleteOptions, PlaceFullResult, PlaceCompleteResult, PlaceFullMeta, LocalPost, KnowledgeEntity, DirectionsOptions, DirectionsResult, DirectionsLeg, DirectionsStep, TravelMode, ReviewSortOrder, } from './types/common.js';
|
|
62
38
|
export type { PlaceReviewRatingDistribution, ReviewAttribute, ReviewClientFilters, ReviewOwnerReply, ReviewPhoto, ReviewerCredibility, ReviewTranslation, } from './types/reviews.js';
|
|
63
|
-
export { GMapsError, GMapsAuthError, GMapsNetworkError, GMapsParseError, GMapsPhotosBlockedError, GMapsThrottleError, GMapsEmptyPayloadError, GMapsCookiesExpiredError, } from './types/common.js';
|
|
39
|
+
export { GMapsError, GMapsAuthError, AuthRequiredError, GMapsNetworkError, GMapsParseError, GMapsPhotosBlockedError, GMapsThrottleError, GMapsEmptyPayloadError, GMapsCookiesExpiredError, } from './types/common.js';
|
|
40
|
+
export type { PlaceRef, NormalizedPlaceRef, SessionMode, ProfileDepth, ReviewSource, ClientCapabilities, AuthCapability, IntentCallOptions, DiscoverOptions, DiscoverPagesOptions, DiscoverResult, ResolveOptions, ResolvedPlace, ProfileOptions, ProfileManyOptions, PlaceProfile, RouteOptions, RouteResult, OpinionsOptions, OpinionsPagesOptions, OpinionsResult, MediaOptions, MediaManyOptions, MediaResult, PipelineOptions, PipelinePlaceRow, PipelineResult, } from './types/dx.js';
|
|
41
|
+
export type { GMapsHooks, GMapsCacheOptions, HookActionEvent, HookRetryEvent, HookErrorEvent, HookActionType, ProgressEvent, ProgressCallback, } from './types/hooks.js';
|
|
42
|
+
export { createMapsTools } from './client/maps-tools.js';
|
|
43
|
+
export type { CreateMapsToolsOptions, MapsToolDefinition, MapsTools, } from './client/maps-tools.js';
|
|
44
|
+
export { toCsv, toGeoJSON } from './utils/export-results.js';
|
|
45
|
+
export type { ExportablePlace, GeoJsonFeatureCollection } from './utils/export-results.js';
|
|
46
|
+
export { normalizePlaceRef, resolveRouteEndpoint, resolveSearchCenter, resolveDirectionsEndpoints, } from './utils/place-ref.js';
|
|
47
|
+
export { applyCoordAliases, toCoordinates } from './utils/coords.js';
|
|
48
|
+
export { placeIdToFeatureId, featureIdToPlaceId, parseFeatureId } from './utils/ids.js';
|
|
49
|
+
export type { PlacesNamespace, LocationNamespace, TravelNamespace, MapNamespace, MetaNamespace, AgentNamespace, } from './client/namespaces.js';
|
|
50
|
+
export type { AskMapsOptions, AskMapsResult, AskMapsPlaceRef, } from './services/ask-maps.js';
|
|
51
|
+
export type { GetPlaceOptions, PlacePreviewFetchResult } from './services/places.js';
|
|
52
|
+
export type { GetReviewsOptions } from './services/reviews.js';
|
|
53
|
+
export type { RevealPlaceOptions, RevealedPlace, RevealPlaceResult } from './types/reveal.js';
|
|
54
|
+
export type { MintedViewportPsi, PassiveAssistChip, PassiveAssistOptions, PassiveAssistPsiContext, PassiveAssistResult, } from './types/passiveassist.js';
|
|
55
|
+
export type { GetLocalPostsOptions } from './services/local-posts.js';
|
|
56
|
+
export type { GetKnowledgeOptions } from './services/knowledge.js';
|
|
57
|
+
export type { GetStationDeparturesOptions, ListTransitLinesOptions, TransitDeparture, TransitModeBoard, TransitStationBoard, } from './types/transit.js';
|
|
64
58
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACnE,YAAY,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE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BAA2B,EAC3B,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,36 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* googlemaps-kit
|
|
3
|
-
*
|
|
2
|
+
* googlemaps-kit — customer-facing API.
|
|
3
|
+
*
|
|
4
|
+
* App code: `import { sdk } from 'googlemaps-kit'`
|
|
5
|
+
* Wire / protobuf / RPC: `import { … } from 'googlemaps-kit/advanced'`
|
|
4
6
|
*/
|
|
5
|
-
export { GMapsClient,
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
export { ReviewsService } from './services/reviews.js';
|
|
9
|
-
export { RevealService } from './services/reveal.js';
|
|
10
|
-
export { PassiveAssistService } from './services/passiveassist.js';
|
|
11
|
-
export { LocalPostsService } from './services/local-posts.js';
|
|
12
|
-
export { KnowledgeService } from './services/knowledge.js';
|
|
13
|
-
export { DirectionsService } from './services/directions.js';
|
|
14
|
-
export { SuggestService } from './services/suggest.js';
|
|
15
|
-
export { PanoramaService } from './services/panorama.js';
|
|
16
|
-
export { TilesService } from './services/tiles.js';
|
|
17
|
-
export { ListsService } from './services/lists.js';
|
|
18
|
-
export { GeocodeService } from './services/geocode.js';
|
|
19
|
-
export { PhotosService } from './services/photos.js';
|
|
20
|
-
export { LinksService } from './services/links.js';
|
|
21
|
-
export { TrafficService } from './services/traffic.js';
|
|
22
|
-
export { TransitService } from './services/transit.js';
|
|
23
|
-
export { CategoriesService } from './services/categories.js';
|
|
24
|
-
export { UgcAggregatesService } from './services/ugc-aggregates.js';
|
|
25
|
-
export { BatchUrlService } from './services/batch-url.js';
|
|
26
|
-
export { DistanceMatrixService } from './services/distance-matrix.js';
|
|
27
|
-
export { ElevationService } from './services/elevation.js';
|
|
28
|
-
export { TimezoneService } from './services/timezone.js';
|
|
29
|
-
export { StaticMapService } from './services/static-map.js';
|
|
7
|
+
export { GMapsClient, sdk, GMaps } from './client/gmaps-client.js';
|
|
8
|
+
export { KNOWN_SURFACES, getSurfaceInfo, listSurfacesByStatus } from './known-surfaces.js';
|
|
9
|
+
/** Shareable google.com/maps URLs (not wire request URLs). */
|
|
30
10
|
export { buildPlaceUrl as buildPlaceLink, buildSearchUrl as buildSearchLink, buildDirectionsUrl as buildDirectionsLink, buildViewportUrl as buildViewportLink, buildStreetViewUrl as buildStreetViewLink, buildEmbedUrl as buildEmbedLink, travelModeToCode, travelModeFromCode, } from './rpc/maps-url-builders.js';
|
|
31
11
|
export { parseMapsUrl, isShortMapsLink } from './parsers/maps-url.js';
|
|
32
12
|
export { decodeEncodedPolyline, encodePolyline } from './utils/encoded-polyline.js';
|
|
33
13
|
export { loadProjectEnv } from './utils/load-env.js';
|
|
34
14
|
export { PHOTOS_SOURCE_METADATA } from './types/photos.js';
|
|
35
|
-
export { GMapsError, GMapsAuthError, GMapsNetworkError, GMapsParseError, GMapsPhotosBlockedError, GMapsThrottleError, GMapsEmptyPayloadError, GMapsCookiesExpiredError, } from './types/common.js';
|
|
15
|
+
export { GMapsError, GMapsAuthError, AuthRequiredError, GMapsNetworkError, GMapsParseError, GMapsPhotosBlockedError, GMapsThrottleError, GMapsEmptyPayloadError, GMapsCookiesExpiredError, } from './types/common.js';
|
|
16
|
+
export { createMapsTools } from './client/maps-tools.js';
|
|
17
|
+
export { toCsv, toGeoJSON } from './utils/export-results.js';
|
|
18
|
+
export { normalizePlaceRef, resolveRouteEndpoint, resolveSearchCenter, resolveDirectionsEndpoints, } from './utils/place-ref.js';
|
|
19
|
+
export { applyCoordAliases, toCoordinates } from './utils/coords.js';
|
|
20
|
+
export { placeIdToFeatureId, featureIdToPlaceId, parseFeatureId } from './utils/ids.js';
|
|
36
21
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
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package/dist/internal.d.ts
CHANGED
|
@@ -1,140 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* @deprecated Use `googlemaps-kit/advanced` — same exports.
|
|
3
|
+
* Kept so existing `import from 'googlemaps-kit/internal'` keeps working.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
export type { EnrichSearchOptions } from './client/gmaps-client.js';
|
|
7
|
-
export { HttpClient } from './client/http-client.js';
|
|
8
|
-
export { AskMapsService, buildAskMapsArgs, MAPS_AI_CAPABILITIES, PLATFORM_AI_FIELD_MASKS } from './services/ask-maps.js';
|
|
9
|
-
export type { AskMapsOptions, AskMapsResult, AskMapsPlaceRef, AskMapsHistoryThread, MapsAiCapability, PlatformAiFieldMask, } from './services/ask-maps.js';
|
|
10
|
-
export { SearchService, searchResultToPlaceDetails } from './services/search.js';
|
|
11
|
-
export { PlacesService } from './services/places.js';
|
|
12
|
-
export type { GetPlaceOptions, PlacePreviewFetchResult } from './services/places.js';
|
|
13
|
-
export { ReviewsService } from './services/reviews.js';
|
|
14
|
-
export type { GetReviewsOptions } from './services/reviews.js';
|
|
15
|
-
export { RevealService } from './services/reveal.js';
|
|
16
|
-
export type { RevealPlaceOptions, RevealedPlace, RevealPlaceResult } from './types/reveal.js';
|
|
17
|
-
export { PassiveAssistService } from './services/passiveassist.js';
|
|
18
|
-
export type { MintedViewportPsi, PassiveAssistChip, PassiveAssistOptions, PassiveAssistPsiContext, PassiveAssistResult, } from './types/passiveassist.js';
|
|
19
|
-
export { LocalPostsService } from './services/local-posts.js';
|
|
20
|
-
export type { GetLocalPostsOptions } from './services/local-posts.js';
|
|
21
|
-
export { KnowledgeService } from './services/knowledge.js';
|
|
22
|
-
export type { GetKnowledgeOptions } from './services/knowledge.js';
|
|
23
|
-
export { DirectionsService } from './services/directions.js';
|
|
24
|
-
export { SuggestService } from './services/suggest.js';
|
|
25
|
-
export { PanoramaService } from './services/panorama.js';
|
|
26
|
-
export { TilesService } from './services/tiles.js';
|
|
27
|
-
export { ListsService } from './services/lists.js';
|
|
28
|
-
export { GeocodeService } from './services/geocode.js';
|
|
29
|
-
export { PhotosService } from './services/photos.js';
|
|
30
|
-
export { LinksService } from './services/links.js';
|
|
31
|
-
export { TrafficService } from './services/traffic.js';
|
|
32
|
-
export { TransitService } from './services/transit.js';
|
|
33
|
-
export type { GetStationDeparturesOptions, ListTransitLinesOptions, TransitDeparture, TransitModeBoard, TransitStationBoard } from './types/transit.js';
|
|
34
|
-
export { CategoriesService } from './services/categories.js';
|
|
35
|
-
export { UgcAggregatesService } from './services/ugc-aggregates.js';
|
|
36
|
-
export { BatchUrlService } from './services/batch-url.js';
|
|
37
|
-
export { DistanceMatrixService } from './services/distance-matrix.js';
|
|
38
|
-
export { ElevationService } from './services/elevation.js';
|
|
39
|
-
export { TimezoneService } from './services/timezone.js';
|
|
40
|
-
export { StaticMapService } from './services/static-map.js';
|
|
41
|
-
/**
|
|
42
|
-
* Shareable google.com/maps links. Named *Link to avoid colliding with the
|
|
43
|
-
* build*Url helpers below, which build internal API request URLs.
|
|
44
|
-
*/
|
|
45
|
-
export { buildPlaceUrl as buildPlaceLink, buildSearchUrl as buildSearchLink, buildDirectionsUrl as buildDirectionsLink, buildViewportUrl as buildViewportLink, buildStreetViewUrl as buildStreetViewLink, buildEmbedUrl as buildEmbedLink, travelModeToCode, travelModeFromCode, } from './rpc/maps-url-builders.js';
|
|
46
|
-
export type { StaticMapOptions, StaticMapBoundsOptions, StaticMapResult, StaticMapMarker, StaticMapPath, StaticMapMarkerStyle, StaticMapScale, } from './types/static-map.js';
|
|
47
|
-
export type { BuildPlaceUrlOptions, BuildSearchUrlOptions, BuildDirectionsUrlOptions, BuildStreetViewUrlOptions, BuildEmbedUrlOptions, BuildViewportUrlOptions, EmbedUrlResult, MapsUrlMapAction, MapsUrlLayer, } from './types/maps-urls.js';
|
|
48
|
-
export type { SearchClientFilters, SearchFilters, SearchRatingFilter, SearchPriceLevel } from './types/search-filters.js';
|
|
49
|
-
export { decodeEncodedPolyline, encodePolyline } from './utils/encoded-polyline.js';
|
|
50
|
-
export type { DistanceMatrixOptions, DistanceMatrixResult, DistanceMatrixCell, } from './types/distance-matrix.js';
|
|
51
|
-
export type { ElevationPointOptions, ElevationPointResult, ElevationPathOptions, ElevationPathResult, } from './types/elevation.js';
|
|
52
|
-
export type { TimezoneOptions, TimezoneResult } from './types/timezone.js';
|
|
53
|
-
export type { DirectionsRoute, DirectionsWaypoint, DirectionsTransitDetails, LatLngBounds, StepManeuver, DirectionsUnits, DirectionsAvoid, } from './types/directions.js';
|
|
54
|
-
export { BATCH_SERVICES, BATCH_SERVICE_RPCIDS } from './rpc/batch-services.js';
|
|
55
|
-
export { buildAreaTrafficArgs, buildPlaceUgcAggregatesArgs } from './rpc/batch-request-builders.js';
|
|
56
|
-
export type { AreaTrafficReport, GetAreaTrafficOptions } from './types/traffic.js';
|
|
57
|
-
export type { CategoryNode, CategorySuggestion, PotentialDuplicate, PlaceInfoResult, SignedPlaceUrl, } from './types/categories.js';
|
|
58
|
-
export type { PlaceUgcAggregates, GetPlaceUgcAggregatesOptions } from './types/ugc-aggregates.js';
|
|
59
|
-
export type { DecodedMapsUrl, DecodeUrlOptions } from './types/batch-url.js';
|
|
60
|
-
export { buildSuggestCameraPb, buildSuggestUrl } from './rpc/suggest-pb.js';
|
|
61
|
-
export { buildRevealPb, buildRevealUrl, normalizeRevealFtid } from './rpc/reveal-pb.js';
|
|
62
|
-
export { buildListEntityPhotosPb, buildListEntityPhotosUrl, buildPhotometaPb, buildPhotometaUrl, buildCoverageTilePb, buildCoverageTileUrl, buildThumbnailUrl, buildTileUrl, } from './rpc/panorama-pb.js';
|
|
63
|
-
export { buildMapTilePb, buildMapTileUrl, buildIconUrl, DEFAULT_MAP_TILE_VERSION, DEFAULT_POI_ICON, } from './rpc/tiles-pb.js';
|
|
64
|
-
export { buildGetListPb, buildGetListUrl } from './rpc/lists-pb.js';
|
|
65
|
-
export { buildPlacePhotosPb, buildPlacePhotosUrl } from './rpc/photos-pb.js';
|
|
66
|
-
export { buildListEntityPhotosBatchArgs } from './rpc/batch-request-builders.js';
|
|
67
|
-
export { CAPTURED_FOOD_CATEGORY_TOKEN, CLIENT_FILTERABLE_CATEGORIES, encodePhotoCategoryToken, filterPhotosByCategory, isClientFilterableCategory, PHOTO_TAB_ID_LABELS, } from './rpc/photo-category-tokens.js';
|
|
68
|
-
export { extractSuggestions } from './parsers/suggest.js';
|
|
69
|
-
export { extractRevealPlace } from './parsers/reveal.js';
|
|
70
|
-
export { extractCoveragePanoramas, extractNearbyPanoramas, extractPanoramaMetadata, isPanoramaMetadataStub, } from './parsers/panorama.js';
|
|
71
|
-
export { findPngOffset, unwrapTilePng, readPngDimensions, isPngBytes, } from './parsers/tiles.js';
|
|
72
|
-
export { extractPlaceList, detectListErrorEnvelope, parseListIdFromInput, } from './parsers/lists.js';
|
|
73
|
-
export type { SuggestOptions, Suggestion, SuggestionKind, SuggestResult, } from './types/suggest.js';
|
|
74
|
-
export type { PanoramaSearchOptions, PanoramaGetOptions, PanoramaLocationOptions, PanoramaImageOptions, PanoramaRef, PanoramaLink, PanoramaMetadata, PanoramaHistoricalCapture, } from './types/panorama.js';
|
|
75
|
-
export type { TileCoordinates, MapTileLayer, MapTileEndpoint, MapTileSize, MapTileFetchOptions, MapTileLatLngOptions, MapTileResult, MapIconFetchOptions, MapIconResult, } from './types/tiles.js';
|
|
76
|
-
export type { GetListOptions, PlaceList, PlaceListEntry } from './types/lists.js';
|
|
77
|
-
export type { GeocodeOptions, ReverseGeocodeOptions, GeocodeResult, GeocodeResponse, AddressComponent, } from './types/geocode.js';
|
|
78
|
-
export { extractPlacePhotos, extractPlacePreviewPhotos, resizePhotoUrl } from './parsers/photos.js';
|
|
79
|
-
export type { PhotoCategory, PhotosSource, PlacePhoto, PhotosListResult, ListPlacePhotosOptions, ListAllPlacePhotosOptions, PhotoCategoryCount, } from './types/photos.js';
|
|
80
|
-
export { PHOTOS_SOURCE_METADATA } from './types/photos.js';
|
|
81
|
-
export { parseMapsUrl, isShortMapsLink } from './parsers/maps-url.js';
|
|
82
|
-
export type { ParsedMapsUrl } from './types/links.js';
|
|
83
|
-
export { buildSearchPb, buildSearchUrl, buildPlaceDetailPb, buildPlaceRichPb, buildPlacePb, buildPlaceUrl, buildReviewsPb, buildReviewsUrl, buildLocalPostsPb, buildLocalPostsUrl, buildDirectionsPb, buildDirectionsUrls, buildKnowledgePbVariants, buildKnowledgeUrl, } from './rpc/pb-builders.js';
|
|
84
|
-
export type { PlacePbMode } from './rpc/pb-builders.js';
|
|
85
|
-
export { BatchExecuteClient } from './rpc/batch-execute.js';
|
|
86
|
-
export { GMapsRpcClient } from './rpc/rpc-client.js';
|
|
87
|
-
export type { GMapsRpcClientConfig } from './rpc/rpc-client.js';
|
|
88
|
-
export { MapsRuntime } from './rpc/maps-runtime.js';
|
|
89
|
-
export type { MapsJsBundleInfo, MapsRuntimeSnapshot } from './rpc/maps-runtime.js';
|
|
90
|
-
export { buildEndpointRegistry, extractClosureModuleIds, extractModuleManifest, extractPathsFromHtml, extractProtoServiceIds, parseMapsPageTokens, } from './rpc/app-options.js';
|
|
91
|
-
export { MAPS_WIZ_UI_APP, MAPS_WIZ_UI_PATH, BATCH_EXECUTE_PATH, MAPS_UI_APP, RPC_LIST_UGC_POSTS, RPC_INFRA, FEATURE_RPC, MAPS_AI_AGENT_RPC, RPC_CANDIDATES, PREVIEW, RPC_HTTP, SERVICE_GET_LOCAL_BOQ_PROXY, BOQ_PROXY_MSC, REVIEW_SORT, PROTO_SERVICE_IDS, INITIAL_MODULES, } from './rpc/rpc-methods.js';
|
|
92
|
-
export { encodeRpcId, decodeRpcId, isNxaRpcId, } from './rpc/nxa.js';
|
|
93
|
-
export { getDescriptorRegistry, getRpcMethodById, getRpcMethodByField, getFeatureService, listFeatureServices, listMapsAiAgentRpcIds, resolveSemanticSurface, describeRpcId, } from './rpc/descriptor-registry.js';
|
|
94
|
-
export type { RpcMethodDescriptor, FeatureServiceDescriptor, DescriptorRegistry } from './rpc/descriptor-registry.js';
|
|
95
|
-
export { FeatureRpcService, createFeatureRpcService } from './rpc/feature-rpc.js';
|
|
96
|
-
export type { FeatureRpcName, FeatureRpcCallOptions } from './rpc/feature-rpc.js';
|
|
97
|
-
export { buildBoqReviewsPayload, buildBoqReviewsUrl } from './rpc/boq-reviews.js';
|
|
98
|
-
export type { BoqReviewsRequest } from './rpc/boq-reviews.js';
|
|
99
|
-
export { extractBusinesses } from './parsers/search.js';
|
|
100
|
-
export { extractGeocodeResults, toGeocodeResponse } from './parsers/geocode.js';
|
|
101
|
-
export { extractPlaceDetails, extractEmbeddedReviews, extractPhotosDeep, } from './parsers/place.js';
|
|
102
|
-
export { extractOpeningSchedule, extractAttributeGroups, extractAccessibilityFeatures, extractPlaceAggregateAttributes, extractPlusCode, extractTimezone, flattenAttributeLabels, } from './parsers/place-attributes.js';
|
|
103
|
-
export { extractListUgcReviews, extractReviews } from './parsers/reviews.js';
|
|
104
|
-
export { extractBoqReviews } from './parsers/boq-reviews.js';
|
|
105
|
-
export { applyReviewClientFilters } from './parsers/review-client-filters.js';
|
|
106
|
-
export { placeAggregatesToRatingDistribution, sumRatingDistribution, } from './parsers/review-aggregates.js';
|
|
107
|
-
export { extractLocalPosts } from './parsers/local-posts.js';
|
|
108
|
-
export { extractKnowledgeEntity, extractKnowledgeFromPlaceDetails } from './parsers/knowledge.js';
|
|
109
|
-
export { extractDirections } from './parsers/directions.js';
|
|
110
|
-
export { extractSearchPagination } from './parsers/search-pagination.js';
|
|
111
|
-
export type { SearchPaginationMeta } from './parsers/search-pagination.js';
|
|
112
|
-
export { KNOWN_SURFACES, getSurfaceInfo, listSurfacesByStatus, } from './known-surfaces.js';
|
|
113
|
-
export type { KnownSurfaceName, SurfaceInfo, SurfaceStatus } from './known-surfaces.js';
|
|
114
|
-
export { asPlaceDataNode, asSearchRoot, asPreviewResponse, asBoqRoot, asListUgcRoot, } from './types/protobuf.js';
|
|
115
|
-
export type { PbNode, PlaceDataNode, MapsPreviewPlaceResponse, SearchMapResponseRoot, BoqReviewsResponseRoot, ListUgcReviewsResponseRoot, DirectionsPreviewResponse, KnowledgeEntityResponse, } from './types/protobuf.js';
|
|
116
|
-
export { parseReviewCount, parseReviewCountFromBlock, parsePriceRange, parseWebsiteFromContact, collectHourDayEntries, } from './parsers/shared.js';
|
|
117
|
-
export type { HourDayEntry, RatingBlockNode } from './parsers/shared.js';
|
|
118
|
-
export { altitudeFromZoom, zoomFromAltitude, defaultViewportDist, webMercatorTile, haversineMeters, } from './utils/geo.js';
|
|
119
|
-
export { extractAppOptionsPsi } from './rpc/app-options.js';
|
|
120
|
-
export { dedupePhotos, normalizePhotoUrl } from './utils/photo-url.js';
|
|
121
|
-
export { loadProjectEnv } from './utils/load-env.js';
|
|
122
|
-
export { parseGoogleResponse, isValidResponseBody } from './utils/response-parser.js';
|
|
123
|
-
export { isListUgcUnauthenticatedStub, isBatchAuthStub, isEmptySuccessPayload, classifyThrottleFailure, } from './utils/throttle-detection.js';
|
|
124
|
-
export { backoffWithJitter, parseRetryAfterMs } from './utils/retry-backoff.js';
|
|
125
|
-
export { RequestScheduler } from './utils/request-scheduler.js';
|
|
126
|
-
export type { HttpClientStats } from './client/http-client.js';
|
|
127
|
-
export { safeGet } from './utils/safe-get.js';
|
|
128
|
-
export { parseReviewCountLabel } from './utils/feature-id.js';
|
|
129
|
-
export { parseFeatureId, toFeatureId, placeIdToFeatureId, placeIdToFeatureParts, featureIdToPlaceId, featureIdToLudocid, featurePartsToPlaceId, } from './utils/ids.js';
|
|
130
|
-
export type { FeatureIdParts } from './utils/ids.js';
|
|
131
|
-
export { bootstrapSession, buildBrowserHeaders, clearSessionCache, randomUserAgent, cookiesToHeader, DEFAULT_SOCS, getCachedSession, } from './auth/session.js';
|
|
132
|
-
export type { CookieJarState } from './auth/session.js';
|
|
133
|
-
export { AuthService, summarizeAuthStatus } from './auth/auth-status.js';
|
|
134
|
-
export type { AuthStatusOptions } from './auth/auth-status.js';
|
|
135
|
-
export { buildGoogleAuthorization, buildAuthenticatedHeaders, } from './auth/google-auth.js';
|
|
136
|
-
export { extractMapsPageTokens } from './auth/maps-tokens.js';
|
|
137
|
-
export type { GMapsConfig, Coordinates, AuthStatus, AuthCapabilities, SearchOptions, SearchResult, SearchPageResult, SearchFieldMask, SearchTextOptions, SearchTextResult, PlaceDetails, BusinessHours, PlaceOpeningSchedule, PlaceDaySchedule, PlaceHoursInterval, PlaceAttribute, PlaceAttributeGroup, PlaceAccessibilityFeature, WeekdayIndex, WeekdayName, Review, ReviewsResult, ReviewRatingDistribution, EnrichedSearchResult, GetPlaceFullOptions, GetPlaceCompleteOptions, PlaceFullResult, PlaceCompleteResult, PlaceFullMeta, LocalPost, KnowledgeEntity, DirectionsOptions, DirectionsResult, DirectionsLeg, DirectionsStep, TravelMode, RPCCall, RPCResponse, BatchExecuteConfig, MapsPageTokens, ReviewSortOrder, MapsEndpointRegistry, } from './types/common.js';
|
|
138
|
-
export type { PlaceReviewRatingDistribution, ReviewAttribute, ReviewClientFilters, ReviewOwnerReply, ReviewPhoto, ReviewerCredibility, ReviewTranslation, } from './types/reviews.js';
|
|
139
|
-
export { ENDPOINTS, GMapsError, GMapsAuthError, GMapsNetworkError, GMapsParseError, GMapsPhotosBlockedError, GMapsThrottleError, GMapsEmptyPayloadError, GMapsCookiesExpiredError, } from './types/common.js';
|
|
5
|
+
export * from './advanced.js';
|
|
140
6
|
//# sourceMappingURL=internal.d.ts.map
|
package/dist/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,eAAe,CAAC"}
|
package/dist/internal.js
CHANGED
|
@@ -1,97 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* @deprecated Use `googlemaps-kit/advanced` — same exports.
|
|
3
|
+
* Kept so existing `import from 'googlemaps-kit/internal'` keeps working.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
export { HttpClient } from './client/http-client.js';
|
|
7
|
-
export { AskMapsService, buildAskMapsArgs, MAPS_AI_CAPABILITIES, PLATFORM_AI_FIELD_MASKS } from './services/ask-maps.js';
|
|
8
|
-
export { SearchService, searchResultToPlaceDetails } from './services/search.js';
|
|
9
|
-
export { PlacesService } from './services/places.js';
|
|
10
|
-
export { ReviewsService } from './services/reviews.js';
|
|
11
|
-
export { RevealService } from './services/reveal.js';
|
|
12
|
-
export { PassiveAssistService } from './services/passiveassist.js';
|
|
13
|
-
export { LocalPostsService } from './services/local-posts.js';
|
|
14
|
-
export { KnowledgeService } from './services/knowledge.js';
|
|
15
|
-
export { DirectionsService } from './services/directions.js';
|
|
16
|
-
export { SuggestService } from './services/suggest.js';
|
|
17
|
-
export { PanoramaService } from './services/panorama.js';
|
|
18
|
-
export { TilesService } from './services/tiles.js';
|
|
19
|
-
export { ListsService } from './services/lists.js';
|
|
20
|
-
export { GeocodeService } from './services/geocode.js';
|
|
21
|
-
export { PhotosService } from './services/photos.js';
|
|
22
|
-
export { LinksService } from './services/links.js';
|
|
23
|
-
export { TrafficService } from './services/traffic.js';
|
|
24
|
-
export { TransitService } from './services/transit.js';
|
|
25
|
-
export { CategoriesService } from './services/categories.js';
|
|
26
|
-
export { UgcAggregatesService } from './services/ugc-aggregates.js';
|
|
27
|
-
export { BatchUrlService } from './services/batch-url.js';
|
|
28
|
-
export { DistanceMatrixService } from './services/distance-matrix.js';
|
|
29
|
-
export { ElevationService } from './services/elevation.js';
|
|
30
|
-
export { TimezoneService } from './services/timezone.js';
|
|
31
|
-
export { StaticMapService } from './services/static-map.js';
|
|
32
|
-
/**
|
|
33
|
-
* Shareable google.com/maps links. Named *Link to avoid colliding with the
|
|
34
|
-
* build*Url helpers below, which build internal API request URLs.
|
|
35
|
-
*/
|
|
36
|
-
export { buildPlaceUrl as buildPlaceLink, buildSearchUrl as buildSearchLink, buildDirectionsUrl as buildDirectionsLink, buildViewportUrl as buildViewportLink, buildStreetViewUrl as buildStreetViewLink, buildEmbedUrl as buildEmbedLink, travelModeToCode, travelModeFromCode, } from './rpc/maps-url-builders.js';
|
|
37
|
-
export { decodeEncodedPolyline, encodePolyline } from './utils/encoded-polyline.js';
|
|
38
|
-
export { BATCH_SERVICES, BATCH_SERVICE_RPCIDS } from './rpc/batch-services.js';
|
|
39
|
-
export { buildAreaTrafficArgs, buildPlaceUgcAggregatesArgs } from './rpc/batch-request-builders.js';
|
|
40
|
-
export { buildSuggestCameraPb, buildSuggestUrl } from './rpc/suggest-pb.js';
|
|
41
|
-
export { buildRevealPb, buildRevealUrl, normalizeRevealFtid } from './rpc/reveal-pb.js';
|
|
42
|
-
export { buildListEntityPhotosPb, buildListEntityPhotosUrl, buildPhotometaPb, buildPhotometaUrl, buildCoverageTilePb, buildCoverageTileUrl, buildThumbnailUrl, buildTileUrl, } from './rpc/panorama-pb.js';
|
|
43
|
-
export { buildMapTilePb, buildMapTileUrl, buildIconUrl, DEFAULT_MAP_TILE_VERSION, DEFAULT_POI_ICON, } from './rpc/tiles-pb.js';
|
|
44
|
-
export { buildGetListPb, buildGetListUrl } from './rpc/lists-pb.js';
|
|
45
|
-
export { buildPlacePhotosPb, buildPlacePhotosUrl } from './rpc/photos-pb.js';
|
|
46
|
-
export { buildListEntityPhotosBatchArgs } from './rpc/batch-request-builders.js';
|
|
47
|
-
export { CAPTURED_FOOD_CATEGORY_TOKEN, CLIENT_FILTERABLE_CATEGORIES, encodePhotoCategoryToken, filterPhotosByCategory, isClientFilterableCategory, PHOTO_TAB_ID_LABELS, } from './rpc/photo-category-tokens.js';
|
|
48
|
-
export { extractSuggestions } from './parsers/suggest.js';
|
|
49
|
-
export { extractRevealPlace } from './parsers/reveal.js';
|
|
50
|
-
export { extractCoveragePanoramas, extractNearbyPanoramas, extractPanoramaMetadata, isPanoramaMetadataStub, } from './parsers/panorama.js';
|
|
51
|
-
export { findPngOffset, unwrapTilePng, readPngDimensions, isPngBytes, } from './parsers/tiles.js';
|
|
52
|
-
export { extractPlaceList, detectListErrorEnvelope, parseListIdFromInput, } from './parsers/lists.js';
|
|
53
|
-
export { extractPlacePhotos, extractPlacePreviewPhotos, resizePhotoUrl } from './parsers/photos.js';
|
|
54
|
-
export { PHOTOS_SOURCE_METADATA } from './types/photos.js';
|
|
55
|
-
export { parseMapsUrl, isShortMapsLink } from './parsers/maps-url.js';
|
|
56
|
-
export { buildSearchPb, buildSearchUrl, buildPlaceDetailPb, buildPlaceRichPb, buildPlacePb, buildPlaceUrl, buildReviewsPb, buildReviewsUrl, buildLocalPostsPb, buildLocalPostsUrl, buildDirectionsPb, buildDirectionsUrls, buildKnowledgePbVariants, buildKnowledgeUrl, } from './rpc/pb-builders.js';
|
|
57
|
-
export { BatchExecuteClient } from './rpc/batch-execute.js';
|
|
58
|
-
export { GMapsRpcClient } from './rpc/rpc-client.js';
|
|
59
|
-
export { MapsRuntime } from './rpc/maps-runtime.js';
|
|
60
|
-
export { buildEndpointRegistry, extractClosureModuleIds, extractModuleManifest, extractPathsFromHtml, extractProtoServiceIds, parseMapsPageTokens, } from './rpc/app-options.js';
|
|
61
|
-
export { MAPS_WIZ_UI_APP, MAPS_WIZ_UI_PATH, BATCH_EXECUTE_PATH, MAPS_UI_APP, RPC_LIST_UGC_POSTS, RPC_INFRA, FEATURE_RPC, MAPS_AI_AGENT_RPC, RPC_CANDIDATES, PREVIEW, RPC_HTTP, SERVICE_GET_LOCAL_BOQ_PROXY, BOQ_PROXY_MSC, REVIEW_SORT, PROTO_SERVICE_IDS, INITIAL_MODULES, } from './rpc/rpc-methods.js';
|
|
62
|
-
export { encodeRpcId, decodeRpcId, isNxaRpcId, } from './rpc/nxa.js';
|
|
63
|
-
export { getDescriptorRegistry, getRpcMethodById, getRpcMethodByField, getFeatureService, listFeatureServices, listMapsAiAgentRpcIds, resolveSemanticSurface, describeRpcId, } from './rpc/descriptor-registry.js';
|
|
64
|
-
export { FeatureRpcService, createFeatureRpcService } from './rpc/feature-rpc.js';
|
|
65
|
-
export { buildBoqReviewsPayload, buildBoqReviewsUrl } from './rpc/boq-reviews.js';
|
|
66
|
-
export { extractBusinesses } from './parsers/search.js';
|
|
67
|
-
export { extractGeocodeResults, toGeocodeResponse } from './parsers/geocode.js';
|
|
68
|
-
export { extractPlaceDetails, extractEmbeddedReviews, extractPhotosDeep, } from './parsers/place.js';
|
|
69
|
-
export { extractOpeningSchedule, extractAttributeGroups, extractAccessibilityFeatures, extractPlaceAggregateAttributes, extractPlusCode, extractTimezone, flattenAttributeLabels, } from './parsers/place-attributes.js';
|
|
70
|
-
export { extractListUgcReviews, extractReviews } from './parsers/reviews.js';
|
|
71
|
-
export { extractBoqReviews } from './parsers/boq-reviews.js';
|
|
72
|
-
export { applyReviewClientFilters } from './parsers/review-client-filters.js';
|
|
73
|
-
export { placeAggregatesToRatingDistribution, sumRatingDistribution, } from './parsers/review-aggregates.js';
|
|
74
|
-
export { extractLocalPosts } from './parsers/local-posts.js';
|
|
75
|
-
export { extractKnowledgeEntity, extractKnowledgeFromPlaceDetails } from './parsers/knowledge.js';
|
|
76
|
-
export { extractDirections } from './parsers/directions.js';
|
|
77
|
-
export { extractSearchPagination } from './parsers/search-pagination.js';
|
|
78
|
-
export { KNOWN_SURFACES, getSurfaceInfo, listSurfacesByStatus, } from './known-surfaces.js';
|
|
79
|
-
export { asPlaceDataNode, asSearchRoot, asPreviewResponse, asBoqRoot, asListUgcRoot, } from './types/protobuf.js';
|
|
80
|
-
export { parseReviewCount, parseReviewCountFromBlock, parsePriceRange, parseWebsiteFromContact, collectHourDayEntries, } from './parsers/shared.js';
|
|
81
|
-
export { altitudeFromZoom, zoomFromAltitude, defaultViewportDist, webMercatorTile, haversineMeters, } from './utils/geo.js';
|
|
82
|
-
export { extractAppOptionsPsi } from './rpc/app-options.js';
|
|
83
|
-
export { dedupePhotos, normalizePhotoUrl } from './utils/photo-url.js';
|
|
84
|
-
export { loadProjectEnv } from './utils/load-env.js';
|
|
85
|
-
export { parseGoogleResponse, isValidResponseBody } from './utils/response-parser.js';
|
|
86
|
-
export { isListUgcUnauthenticatedStub, isBatchAuthStub, isEmptySuccessPayload, classifyThrottleFailure, } from './utils/throttle-detection.js';
|
|
87
|
-
export { backoffWithJitter, parseRetryAfterMs } from './utils/retry-backoff.js';
|
|
88
|
-
export { RequestScheduler } from './utils/request-scheduler.js';
|
|
89
|
-
export { safeGet } from './utils/safe-get.js';
|
|
90
|
-
export { parseReviewCountLabel } from './utils/feature-id.js';
|
|
91
|
-
export { parseFeatureId, toFeatureId, placeIdToFeatureId, placeIdToFeatureParts, featureIdToPlaceId, featureIdToLudocid, featurePartsToPlaceId, } from './utils/ids.js';
|
|
92
|
-
export { bootstrapSession, buildBrowserHeaders, clearSessionCache, randomUserAgent, cookiesToHeader, DEFAULT_SOCS, getCachedSession, } from './auth/session.js';
|
|
93
|
-
export { AuthService, summarizeAuthStatus } from './auth/auth-status.js';
|
|
94
|
-
export { buildGoogleAuthorization, buildAuthenticatedHeaders, } from './auth/google-auth.js';
|
|
95
|
-
export { extractMapsPageTokens } from './auth/maps-tokens.js';
|
|
96
|
-
export { ENDPOINTS, GMapsError, GMapsAuthError, GMapsNetworkError, GMapsParseError, GMapsPhotosBlockedError, GMapsThrottleError, GMapsEmptyPayloadError, GMapsCookiesExpiredError, } from './types/common.js';
|
|
5
|
+
export * from './advanced.js';
|
|
97
6
|
//# sourceMappingURL=internal.js.map
|
package/dist/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"place.d.ts","sourceRoot":"","sources":["../../src/parsers/place.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,KAAK,EAA4B,aAAa,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"place.d.ts","sourceRoot":"","sources":["../../src/parsers/place.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,KAAK,EAA4B,aAAa,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAiF5F,wFAAwF;AACxF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,SAAK,GAAG,MAAM,EAAE,CA2BxE;AA8CD,iFAAiF;AACjF,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,aAAa,GAAG,MAAM,EAAE,CASzE;AAiFD,sFAAsF;AACtF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAsF9D"}
|
package/dist/parsers/place.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { asPlaceDataNode, asPreviewResponse } from '../types/protobuf.js';
|
|
2
2
|
import { dedupePhotos } from '../utils/photo-url.js';
|
|
3
|
+
import { applyCoordAliases } from '../utils/coords.js';
|
|
3
4
|
import { safeGet } from '../utils/safe-get.js';
|
|
4
5
|
import { extractPlaceAggregateAttributes } from './place-attributes.js';
|
|
5
6
|
import { collectHourDayEntries, htmlToPlainText, normalizeHoursText, parseOpenStatus, parsePhone, parsePriceLevel, parsePriceRange, parseReviewCount, parseWebsiteFromContact, } from './shared.js';
|
|
@@ -239,6 +240,7 @@ export function extractPlaceDetails(data) {
|
|
|
239
240
|
}
|
|
240
241
|
details.latitude = safeGet(node, 9, 2);
|
|
241
242
|
details.longitude = safeGet(node, 9, 3);
|
|
243
|
+
applyCoordAliases(details);
|
|
242
244
|
details.mapsUrl = extractMapsUrl(node);
|
|
243
245
|
const categories = safeGet(node, 13);
|
|
244
246
|
if (Array.isArray(categories)) {
|