Google Maps JavaScript API V3 Reference

上次更新日期:2024 年 2 月 8 日,星期四

這是 Maps JavaScript API 3.55 版中所有類別、方法和介面的索引。

詳情請參閱版本資訊版本管理

按一下任一項目的名稱,即可查看詳細的說明文件。

全域概念

google.maps

google.maps 命名空間

靜態方法: importLibrary

常數: version

CoreLibrary 介面

資源: ControlPositioneventLatLngLatLngAltitudeLatLngBoundsMapsNetworkErrorMapsNetworkErrorEndpointMapsRequestErrorMapsServerErrorMVCArrayMVCObjectPointSettingsSizeSymbolPathUnitSystem

MapsLibrary 介面

資源: BicyclingLayerCircleDataFeatureTypeGroundOverlayImageMapTypeInfoWindowKmlLayerKmlLayerStatusMapMapTypeControlStyleMapTypeIdMapTypeRegistryMaxZoomServiceMaxZoomStatusOverlayViewPolygonPolylineTrafficLayerStrokePositionStrokePositionStrokePositionRectangleRenderingTypeStyledMapTypeTransitLayerWebGLOverlayViewBetaZoomChangeEvent

PlacesLibrary 介面

資源: AccessibilityOptionsAddressComponentAttributionAuthorAttributionAutocompleteAutocompleteServiceAutocompleteSessionTokenBusinessStatusOpeningHoursOpeningHoursPeriodOpeningHoursPointPhotoPlacePlacesServicePlacesServiceStatusPlusCodePriceLevelRankByReviewReviewSearchBoxSearchByTextRankPreference

GeocodingLibrary 介面

屬性:GeocoderGeocoderLocationTypeGeocoderStatus

RoutesLibrary 介面

資源: DirectionsRendererDirectionsServiceDirectionsStatusDistanceMatrixElementStatusDistanceMatrixServiceDistanceMatrixStatusTrafficModelTransitModeTransitRoutePreferenceTravelModeVehicleType

MarkerLibrary 介面

屬性: AdvancedMarkerClickEventAdvancedMarkerElementAnimationCollisionBehaviorMarkerPinElement

GeometryLibrary 介面

屬性:encodingpolyspherical

ElevationLibrary 介面

屬性: ElevationServiceElevationStatus

StreetViewLibrary 介面

屬性: InfoWindowOverlayViewStreetViewCoverageLayerStreetViewPanoramaStreetViewPreferenceStreetViewServiceStreetViewSourceStreetViewStatus

JourneySharingLibrary 介面

資源: AutomaticViewportModeDeliveryVehicleStopStateFleetEngineDeliveryFleetLocationProviderFleetEngineDeliveryVehicleLocationProviderFleetEngineFleetLocationProviderFleetEngineServiceTypeFleetEngineShipmentLocationProviderFleetEngineTripLocationProviderFleetEngineVehicleLocationProviderJourneySharingMapViewSpeedTripTypeVehicleNavigationStatusVehicleStateVehicleTypeWaypointType

DrawingLibrary 介面

屬性: DrawingManagerOverlayType

VisualizationLibrary 介面

屬性: HeatmapLayer

設定 (Beta 版)

Beta 版設定類別

靜態方法: BetagetInstance

屬性: BetaexperienceIds

事件系統

活動課

靜態方法: addListeneraddListenerOnceclearInstanceListenersclearListenershasListenersremoveListenertriggeraddDomListeneraddDomListenerOnce

MapsEventListener 介面

方法:remove

MVCObject 類別

方法:addListenerbindTogetnotifysetsetValuesunbindunbindAll

MVCArray 類別

方法: clearforEachgetArraygetAtgetLengthinsertAtpoppushremoveAtsetAt

事件: insert_atremove_atset_at

ErrorEvent 介面

屬性: error

錯誤

MapsNetworkError 類別

屬性: codeendpoint

MapsRequestError 類別
MapsServerError 類別
MapsNetworkErrorEndpoint 常數

常數: DIRECTIONS_ROUTEDISTANCE_MATRIXELEVATION_ALONG_PATHELEVATION_LOCATIONSFLEET_ENGINE_GET_DELIVERY_VEHICLEFLEET_ENGINE_GET_TRIPFLEET_ENGINE_GET_VEHICLEFLEET_ENGINE_LIST_DELIVERY_VEHICLESFLEET_ENGINE_LIST_TASKSFLEET_ENGINE_LIST_VEHICLESFLEET_ENGINE_SEARCH_TASKSGEOCODER_GEOCODEMAPS_MAX_ZOOMPLACES_AUTOCOMPLETEPLACES_DETAILSPLACES_FIND_PLACE_FROM_PHONE_NUMBERPLACES_FIND_PLACE_FROM_QUERYPLACES_GATEWAYPLACES_NEARBY_SEARCHPLACES_NEARBY_SEARCHMAPS_MAX_ZOOMMAPS_MAX_ZOOMPLACES_GET_PLACEPLACES_LOCAL_CONTEXT_SEARCHPLACES_SEARCH_TEXTSTREETVIEW_GET_PANORAMA

Google 地圖

地圖

地圖類別

屬性:controlsdatamapTypesoverlayMapTypes

方法: fitBoundsgetBoundsgetCentergetClickableIconsBetagetDatasetFeatureLayergetDivgetFeatureLayergetHeadinggetMapCapabilitiesgetMapTypeIdgetProjectiongetRenderingTypegetStreetViewgetTiltgetZoommoveCamerapanBypanTosetZoomsetZoompanToBoundssetCentersetClickableIconssetHeadingsetMapTypeIdsetOptionssetStreetViewsetTilt

常數: DEMO_MAP_ID

事件: bounds_changedcenter_changedclickcontextmenudblclickdragdragenddragstartheading_changedidleisfractionalzoomenabled_changedmapcapabilities_changedmaptypeid_changedmousemovemouseoutmouseoverprojection_changedrenderingtype_changed、 、 、 tilesloadedtilt_changedzoom_changedrightclick

MapOptions 介面

資源: backgroundColorcenterclickableIconscontrolSizedisableDefaultUIdisableDoubleClickZoomdraggableCursordraggingCursorfullscreenControlfullscreenControlOptionsgestureHandlingheadingisFractionalZoomEnabledkeyboardShortcutsmapIdmapTypeControl, scrollwheel, rotateControlOptions, scrollwheel, scrollwheel, scrollwheel, scrollwheelmapTypeControlOptionsmapTypeIdmaxZoomminZoomnoClearrestrictionrotateControlscaleControlscaleControlOptionsstreetViewstreetViewControlstreetViewControlOptionsstylestiltzoomzoomControlzoomControlOptionsdraggablepanControlpanControlOptions

Beta 版MapElement 類別

屬性:centerinnerMapmapIdzoom

方法:BetaaddEventListenerBetaremoveEventListener

事件: gmp-zoomchange

Beta 版MapElementOptions 介面

屬性:centermapIdzoom

Beta 版ZoomChangeEvent 類別
MapTypeStyle 介面

屬性:elementTypefeatureTypestylers

MapMouseEvent 介面

屬性: domEventlatLng

方法:stop

IconMouseEvent 介面

屬性: placeId

MapTypeId 常數

常數: HYBRIDROADMAPSATELLITETERRAIN

MapTypeRegistry 類別

方法:set

MapRestriction 介面

屬性: latLngBoundsstrictBounds

TrafficLayer 類別

方法:getMapsetMapsetOptions

TrafficLayerOptions 介面

屬性: autoRefreshmap

TransitLayer 類別

方法:getMapsetMap

BicyclingLayer 類別

方法:getMapsetMap

Beta 版CameraOptions 介面

屬性:centerheadingtiltzoom

VisibleRegion 介面

屬性:farLeftfarRightlatLngBoundsnearLeftnearRight

RenderingType 常數

常數: RASTERUNINITIALIZEDVECTOR

MapCapabilities 介面

屬性: isAdvancedMarkersAvailableisDataDrivenStylingAvailable

WebGL

WebGLOverlayView 類別

方法: getMaponAddonContextLostonContextRestoredonDrawonRemoveonStateUpdaterequestRedrawrequestStateUpdatesetMap

WebGLDrawOptions 介面

屬性: gltransformer

WebGLStateOptions 介面

屬性: gl

CoordinateTransformer 介面

方法:fromLatLngAltitudegetCameraParams

CameraParams 介面

屬性:centerheadingtiltzoom

座標

LatLng 類別

方法:equalslatlngtoJSONtoStringtoUrlValue

LatLngLiteral 介面

屬性: latlng

LatLngBounds 類別

方法:containsequalsextendgetCentergetNorthEastgetSouthWestintersectsisEmptytoJSONtoSpantoStringtoUrlValueunion

常數: MAX_BOUNDS

LatLngBoundsLiteral 介面

屬性:eastnorthsouthwest

LatLngAltitude 類別

屬性:altitudelatlng

方法:equalstoJSON

LatLngAltitudeLiteral 介面

屬性:altitudelatlng

點數類別

屬性: xy

方法:equalstoString

大小類別

屬性: heightwidth

方法:equalstoString

邊框間距介面

屬性:bottomleftrighttop

CircleLiteral 介面

屬性: centerradius

資料導向樣式設定

FeatureLayer 介面

屬性:BetadatasetIdfeatureTypeisAvailablestyle

方法:addListener

事件: clickmousemove

FeatureType 常數

常數: ADMINISTRATIVE_AREA_LEVEL_1ADMINISTRATIVE_AREA_LEVEL_2COUNTRYBetaDATASETLOCALITYPOSTAL_CODESCHOOL_DISTRICT

FeatureStyleFunction typedef
FeatureStyleFunctionOptions 介面

屬性: feature

FeatureStyleOptions 介面

屬性:fillColorfillOpacitystrokeColorstrokeOpacitystrokeWeight

功能介面

屬性: featureType

PlaceFeature 介面

屬性: placeId

方法:fetchPlace

Beta 版DatasetFeature 介面

屬性: datasetAttributesdatasetId

FeatureMouseEvent 介面

屬性: features

控制項

FullscreenControlOptions 介面

屬性: position

MapTypeControlOptions 介面

屬性:mapTypeIdspositionstyle

MapTypeControlStyle 常數

常數: DEFAULTDROPDOWN_MENUHORIZONTAL_BAR

MotionTrackingControlOptions 介面

屬性: position

PanControlOptions 介面

屬性: position

ScrollControlOptions 介面

屬性: position

ScaleControlOptions 介面

屬性: style

ScaleControlStyle 常數

常數: DEFAULT

StreetViewControlOptions 介面

屬性: positionsources

ZoomControlOptions 介面

屬性: position

ControlPosition 常數

常數: BLOCK_END_INLINE_CENTERBLOCK_END_INLINE_ENDBLOCK_END_INLINE_STARTBLOCK_START_INLINE_CENTERBLOCK_START_INLINE_ENDBLOCK_START_INLINE_STARTBOTTOM_CENTERBOTTOM_LEFTBOTTOM_RIGHTINLINE_END_BLOCK_CENTERINLINE_END_BLOCK_ENDINLINE_END_BLOCK_STARTINLINE_START_BLOCK_CENTERINLINE_START_BLOCK_ENDINLINE_START_BLOCK_STARTLEFT_BOTTOMLEFT_CENTERLEFT_TOP, TOP_RIGHT, RIGHT_TOP, RIGHT_TOP, RIGHT_BOTTOM, RIGHT_BOTTOMRIGHT_CENTERTOP_CENTERTOP_LEFT

幾何圖形程式庫

編碼命名空間

靜態方法:decodePathencodePath

實體命名空間

靜態方法: computeAreacomputeDistanceBetweencomputeHeadingcomputeLengthcomputeOffsetcomputeOffsetOrigincomputeSignedAreainterpolate

多組命名空間

靜態方法:containsLocationisLocationOnEdge

在地圖上繪圖

Marker

標記類別

方法: getAnimationgetClickablegetCursorgetDraggablegetIcongetLabelgetMapgetOpacitygetPositiongetShapegetTitlegetVisiblegetZIndexsetAnimationsetClickablesetCursorsetDraggablesetIconsetZIndexsetZIndexsetLabelsetMapsetOpacitysetOptionssetPositionsetShapesetTitlesetVisible

常數: MAX_ZINDEX

事件: animation_changedclickclickable_changedcontextmenucursor_changeddblclickdragdragenddraggable_changeddragstartflat_changedicon_changedmousedownmouseoutmouseovermouseupposition_changedshape_changed、 、 、 title_changedvisible_changedzindex_changedrightclick

MarkerOptions 介面

資源: anchorPointanimationclickablecrossOnDragcursordraggableiconlabelmapopacityoptimizedpositionshapetitlevisiblezIndexBetacollisionBehavior

衝突行為常數

常數: OPTIONAL_AND_HIDES_LOWER_PRIORITYREQUIREDREQUIRED_AND_HIDES_OPTIONAL

圖示介面

屬性: anchorlabelOriginoriginscaledSizesizeurl

MarkerLabel 介面

屬性: classNamecolorfontFamilyfontSizefontWeighttext

MarkerShape 介面

屬性: coordstype

符號介面

資源: anchorfillColorfillOpacitylabelOriginpathrotationscalestrokeColorstrokeOpacitystrokeWeight

SymbolPath 常數

常數: BACKWARD_CLOSED_ARROWBACKWARD_OPEN_ARROWCIRCLEFORWARD_CLOSED_ARROWFORWARD_OPEN_ARROW

動畫常數

常數: BOUNCEDROP

進階標記

AdvancedMarkerElement 類別

資源: collisionBehaviorcontentelementBetagmpClickablegmpDraggablemappositiontitlezIndex

方法:BetaaddEventListeneraddListenerBetaremoveEventListener

事件: clickdragdragenddragstartBetagmp-click

AdvancedMarkerElementOptions 介面

屬性: collisionBehaviorcontentBetagmpClickablegmpDraggablemappositiontitlezIndex

Beta 版AdvancedMarkerClickEvent 類別
PinElement 類別

屬性: backgroundborderColorelementglyphglyphColorscale

方法:BetaaddEventListenerBetaremoveEventListener

PinElementOptions 介面

屬性:backgroundborderColorglyphglyphColorscale

資訊視窗

InfoWindow 類別

方法: closefocusgetContentgetPositiongetZIndexopensetContentsetOptionssetPositionsetZIndex

事件: closeclickcontent_changeddomreadyposition_changedvisiblezindex_changed

InfoWindowOptions 介面

屬性: ariaLabelcontentdisableAutoPanmaxWidthminWidthpixelOffsetpositionzIndex

InfoWindowOpenOptions 介面

屬性:anchormapshouldFocus

多邊形

折線類別

方法: getDraggablegetEditablegetMapgetPathgetVisiblesetDraggablesetEditablesetMapsetOptionssetPathsetVisible

事件: clickcontextmenudblclickdragdragenddragstartmousedownmousemovemouseoutmouseovermouseuprightclick

PolylineOptions 介面

資源: clickabledraggableeditablegeodesiciconsmappathstrokeColorstrokeOpacitystrokeWeightvisiblezIndex

IconSequence 介面

屬性:fixedRotationiconoffsetrepeat

Polygon 類別

方法:getDraggablegetEditablegetMapgetPathgetPathsgetVisiblesetDraggablesetEditablesetMapsetOptionssetPathsetPathssetVisible

事件: clickcontextmenudblclickdragdragenddragstartmousedownmousemovemouseoutmouseovermouseuprightclick

PolygonOptions 介面

資源: clickabledraggableeditablefillColorfillOpacitygeodesicmappathsstrokeColorstrokeOpacitystrokePositionstrokeWeightvisiblezIndex

PolyMouseEvent 介面

屬性:edgepathvertex

Rectangle 類別

方法: getBoundsgetDraggablegetEditablegetMapgetVisiblesetBoundssetDraggablesetEditablesetMapsetOptionssetVisible

事件: bounds_changedclickcontextmenudblclickdragdragenddragstartmousedownmousemovemouseoutmouseovermouseuprightclick

RectangleOptions 介面

資源: boundsclickabledraggableeditablefillColorfillOpacitymapstrokeColorstrokeOpacitystrokePositionstrokeWeightvisiblezIndex

Circle 類別

方法: getBoundsgetCentergetDraggablegetEditablegetMapgetRadiusgetVisiblesetCentersetDraggablesetEditablesetMapsetOptionssetRadiussetVisible

事件: center_changedclickdblclickdragdragenddragstartmousedownmousemovemouseoutmouseovermouseupradius_changedrightclick

CircleOptions 介面

資源: centerclickabledraggableeditablefillColorfillOpacitymapradiusstrokeColorstrokeOpacitystrokePositionstrokeWeightvisiblezIndex

StrokePosition 常數

常數: CENTERINSIDEOUTSIDE

資料

資料類別

方法:addaddGeoJsoncontainsforEachgetControlPositiongetControlsgetDrawingModegetFeatureByIdgetMapgetStyleloadGeoJsonoverrideStyleremoverevertStylesetControlPositionsetControlssetDrawingModesetMapsetStylesetStyletoGeoJson

事件: addfeatureclickcontextmenudblclickmousedownmouseoutmouseovermouseupremovefeatureremovepropertysetgeometrysetpropertyrightclick

Data.DataOptions 介面

屬性: controlPositioncontrolsdrawingModefeatureFactorymapstyle

Data.GeoJsonOptions 介面

屬性: idPropertyName

Data.StyleOptions 介面

資源: animationclickablecursordraggableeditablefillColorfillOpacityiconiconslabelopacityshapestrokeColorstrokeOpacitystrokeWeighttitlevisiblezIndex

Data.StylingFunction typedef
Data.Feature 類別

方法:forEachPropertygetGeometrygetIdgetPropertyremovePropertysetGeometrysetPropertytoGeoJson

事件: removepropertysetgeometrysetproperty

Data.FeatureOptions 介面

屬性:geometryidproperties

Data.Geometry 介面

方法:forEachLatLnggetType

Data.Point 類別

方法:forEachLatLnggetgetType

Data.MultiPoint 類別

方法:forEachLatLnggetArraygetAtgetLengthgetType

Data.LineString 類別

方法:forEachLatLnggetArraygetAtgetLengthgetType

Data.MultiLineString 類別

方法:forEachLatLnggetArraygetAtgetLengthgetType

Data.LinearRing 類別

方法:forEachLatLnggetArraygetAtgetLengthgetType

Data.Polygon 類別

方法:forEachLatLnggetArraygetAtgetLengthgetType

Data.MultiPolygon 類別

方法:forEachLatLnggetArraygetAtgetLengthgetType

Data.GeometryCollection 類別

方法:forEachLatLnggetArraygetAtgetLengthgetType

Data.MouseEvent 介面

屬性: feature

Data.AddFeatureEvent 介面

屬性: feature

Data.RemoveFeatureEvent 介面

屬性: feature

Data.SetGeometryEvent 介面

屬性:featurenewGeometryoldGeometry

Data.SetPropertyEvent 介面

屬性:featurenamenewValueoldValue

Data.RemovePropertyEvent 介面

屬性:featurenameoldValue

DOM 元素

OverlayView 類別

靜態方法:preventMapHitsAndGesturesFrompreventMapHitsFrom

方法:drawgetMapgetPanesgetProjectiononAddonRemovesetMap

MapPanes 介面

屬性:floatPanemapPanemarkerLayeroverlayLayeroverlayMouseTarget

MapCanvasProjection 介面

方法:fromContainerPixelToLatLngfromDivPixelToLatLngfromLatLngToContainerPixelfromLatLngToDivPixelgetVisibleRegiongetWorldWidth

KML

KmlLayer 類別

方法: getDefaultViewportgetMapgetMetadatagetStatusgetUrlgetZIndexsetMapsetOptionssetUrlsetZIndex

事件: clickdefaultviewport_changedstatus_changed

KmlLayerOptions 介面

屬性: clickablemappreserveViewportscreenOverlayssuppressInfoWindowsurlzIndex

KmlLayerMetadata 介面

屬性:authordescriptionhasScreenOverlaysnamesnippet

KmlLayerStatus 常數

常數: DOCUMENT_NOT_FOUNDDOCUMENT_TOO_LARGEFETCH_ERRORINVALID_DOCUMENTINVALID_REQUESTLIMITS_EXCEEDEDOKTIMED_OUTUNKNOWN

KmlMouseEvent 介面

屬性:featureDatalatLngpixelOffset

KmlFeatureData 介面

屬性: authordescriptionidinfoWindowHtmlnamesnippet

KmlAuthor 介面

屬性:emailnameuri

影像重疊

MapType 介面

屬性: altmaxZoomminZoomnameprojectionradiustileSize

方法:getTilereleaseTile

投影介面

方法:fromLatLngToPointfromPointToLatLng

ImageMapType 類別

屬性: altmaxZoomminZoomnameprojectionradiustileSize

方法:getOpacitygetTilereleaseTilesetOpacity

事件: tilesloaded

ImageMapTypeOptions 介面

屬性: altgetTileUrlmaxZoomminZoomnameopacitytileSize

GroundOverlay 類別

方法:getBoundsgetMapgetOpacitygetUrlsetMapsetOpacity

事件: clickdblclick

GroundOverlayOptions 介面

屬性:clickablemapopacity

StyledMapType 類別

屬性: altmaxZoomminZoomnameprojectionradiustileSize

方法:getTilereleaseTile

StyledMapTypeOptions 介面

屬性:altmaxZoomminZoomname

繪圖程式庫

DrawingManager 類別

方法:getDrawingModegetMapsetDrawingModesetMapsetOptions

事件: circlecompletemarkercompleteoverlaycompletepolygoncompletepolylinecompleterectanglecomplete

DrawingManagerOptions 介面

資源: circleOptionsdrawingControldrawingControlOptionsdrawingModemapmarkerOptionspolygonOptionspolylineOptionsrectangleOptions

DrawingControlOptions 介面

屬性: drawingModesposition

OverlayCompleteEvent 介面

屬性: overlaytype

OverlayType 常數

常數: CIRCLEMARKERPOLYGONPOLYLINERECTANGLE

熱視圖

HeatmapLayer 類別

方法:getDatagetMapsetDatasetMapsetOptions

HeatmapLayerOptions 介面

屬性: datadissipatinggradientmapmaxIntensityopacityradius

WeightedLocation 介面

屬性: locationweight

最大縮放

MaxZoomService 類別

方法:getMaxZoomAtLatLng

MaxZoomResult 介面

屬性: statuszoom

MaxZoomStatus 常數

常數: ERROROK

街景服務

轉譯

StreetViewPanorama 類別

屬性: controls

方法:focusgetLinksgetLocationgetMotionTrackinggetPanogetPhotographerPovgetPositiongetPovgetStatusgetVisiblegetZoomregisterPanoProvidersetLinkssetMotionTrackingsetOptionssetPanosetPositionsetPovsetVisiblesetVisiblesetZoom

事件: closeclickpano_changedposition_changedpov_changedresizestatus_changedvisible_changedzoom_changed

StreetViewPanoramaOptions 介面

資源: addressControladdressControlOptionsclickToGocontrolSizedisableDefaultUIdisableDoubleClickZoomenableCloseButtonfullscreenControlfullscreenControlOptionsimageDateControllinksControlmotionTrackingmotionTrackingControlmotionTrackingControlOptionspanControlpanControlOptionspanopositionshowRoadLabelsshowRoadLabelsmotionTrackingControlmotionTrackingControlpovscrollwheelvisiblezoomzoomControlzoomControlOptions

StreetViewAddressControlOptions 介面

屬性: position

PanoProviderOptions 介面

屬性: cors

StreetViewTileData 介面

屬性:centerHeadingtileSizeworldSize

方法:getTileUrl

StreetViewPov 介面

屬性: headingpitch

StreetViewCoverageLayer 類別

方法:getMapsetMap

Service

StreetViewService 類別

方法:getPanorama

StreetViewStatus 常數

常數: OKUNKNOWN_ERRORZERO_RESULTS

StreetViewLocationRequest 介面

屬性:locationpreferenceradiussourcessource

StreetViewPanoRequest 介面

屬性: pano

StreetViewResponse 介面

屬性: data

StreetViewLocation 介面

屬性:descriptionlatLngpanoshortDescription

StreetViewPreference 常數

常數: BESTNEAREST

StreetViewSource 常數

常數: DEFAULTGOOGLEOUTDOOR

StreetViewPanoramaData 介面

屬性:copyrightimageDatelinkslocationtiles

屬性:descriptionheadingpano

地點介面集

地點介面集小工具

Beta 版PlaceAutocompleteElement 類別

屬性: componentRestrictionslocationBiaslocationRestrictionnamerequestedLanguagerequestedRegiontypes

方法:BetaaddEventListenerBetaremoveEventListener

Beta 版PlaceAutocompleteElementOptions 介面

屬性: componentRestrictionslocationBiaslocationRestrictionrequestedLanguagerequestedRegiontypes

Beta 版PlaceAutocompletePlaceSelectEvent 類別

屬性: Betaplace

Beta 版PlaceAutocompleteRequestErrorEvent 類別
Autocomplete 類別

方法:getBoundsgetFieldsgetPlacesetBoundssetComponentRestrictionssetFieldssetOptionssetTypes

事件: place_changed

AutocompleteOptions 介面

屬性: boundscomponentRestrictionsfieldsstrictBoundstypesplaceIdOnly

方法:getBoundsgetPlacessetBounds

事件: places_changed

SearchBoxOptions 介面

屬性: bounds

地點

地點類別

靜態方法: searchByText

資源: accessibilityOptions, addressComponents, adrFormatAddress, attributions, businessStatus, displayName, editorialSummary, editorialSummaryLanguageCode, formattedAddress, googleMapsURI, hasCurbsidePickup, hasDelivery, hasDineIn, hasTakeout, iconBackgroundColor, requestedRegion,requestedRegion,requestedRegion,servesBreakfast,idinternationalPhoneNumberisReservablelocationnationalPhoneNumberphotosplusCodepriceLevelratingregularOpeningHoursrequestedLanguagereviewsservesBeerservesBrunchservesDinnerservesLunchservesVegetarianFoodservesWinesvgIconMaskURItypesuserRatingCountutcOffsetMinutesviewportwebsiteURIopeningHours

方法:fetchFieldsBetagetNextOpeningTimeBetaisOpentoJSON

PlaceOptions 介面

屬性:idrequestedLanguagerequestedRegion

AccessibilityOptions 類別

屬性:hasWheelchairAccessibleEntrancehasWheelchairAccessibleParkinghasWheelchairAccessibleRestroomhasWheelchairAccessibleSeating

Beta 版AddressComponent 類別

屬性:longTextshortTexttypes

Beta 版歸因類別

屬性: providerproviderURI

FetchFieldsRequest 介面

屬性: fields

Beta 版OpeningHours 課程

屬性: periodsweekdayDescriptions

Beta 版OpeningHoursPeriod 類別

屬性: closeopen

Beta 版OpeningHoursPoint 類別

屬性:dayhourminute

Beta 版相片類別

屬性:authorAttributionsheightPxwidthPx

方法:getURI

Beta 版AuthorAttribution 類別

屬性:displayNamephotoURIuri

Beta 版PlusCode 類別

屬性: compoundCodeglobalCode

Beta 版查看課程

屬性: authorAttributionpublishTimeratingrelativePublishTimeDescriptiontexttextLanguageCode

Beta 版PriceLevel 常數

常數: EXPENSIVEFREEINEXPENSIVEMODERATEVERY_EXPENSIVE

SearchByTextRequest 介面

資源: fieldsincludedTypeisOpenNowlanguagelocationBiaslocationRestrictionmaxResultCountminRatingpriceLevelsrankPreferenceregiontextQueryuseStrictTypeFilteringqueryBetarankBy

SearchByTextRankPreference 常數

常數: DISTANCERELEVANCE

地點介面集服務

PlacesService 類別

方法:findPlaceFromPhoneNumberfindPlaceFromQuerygetDetailsnearbySearchtextSearch

PlaceDetailsRequest 介面

屬性:fieldslanguageplaceIdregionsessionToken

FindPlaceFromPhoneNumberRequest 介面

屬性:fieldslanguagelocationBiasphoneNumber

FindPlaceFromQueryRequest 介面

屬性:fieldslanguagelocationBiasquery

PlaceSearchRequest 介面

資源: boundskeywordlanguagelocationmaxPriceLevelminPriceLevelopenNowradiusrankBytypename

TextSearchRequest 介面

屬性: boundslanguagelocationqueryradiusregiontype

RankBy 常數

常數: DISTANCEPROMINENCE

LocationBias typedef
LocationRestriction typedef
PlacesServiceStatus 常數

常數: INVALID_REQUESTNOT_FOUNDOKOVER_QUERY_LIMITREQUEST_DENIEDUNKNOWN_ERRORZERO_RESULTS

PlaceSearchPagination 介面

屬性: hasNextPage

方法:nextPage

PlaceResult 介面

資源: address_componentsadr_addressaspectsbusiness_statusformatted_addressformatted_phone_numbergeometryhtml_attributionsiconicon_background_coloricon_mask_base_uriinternational_phone_numbernameopening_hoursphotosplace_idutc_offsetutc_offsetutc_offsetutc_offsetutc_offsetutc_offsetratingplus_codeprice_levelreviewstypesurluser_ratings_totalutc_offset_minutesvicinitywebsitepermanently_closed

PlaceAspectRating 介面

屬性: ratingtype

BusinessStatus 常數

常數: CLOSED_PERMANENTLYCLOSED_TEMPORARILYOPERATIONAL

PlaceGeometry 介面

屬性: locationviewport

PlaceOpeningHours 介面

屬性:periodsweekday_textopen_now

方法:isOpen

PlaceOpeningHoursPeriod 介面

屬性: closeopen

PlaceOpeningHoursTime 介面

屬性:dayhoursminutesnextDatetime

PlacePlusCode 介面

屬性: compound_codeglobal_code

PlacePhoto 介面

屬性:heighthtml_attributionswidth

方法:getUrl

PhotoOptions 介面

屬性: maxHeightmaxWidth

PlaceReview 介面

資源: author_nameauthor_urllanguageprofile_photo_urlratingrelative_time_descriptiontexttimeaspects

Place Autocomplete 服務

AutocompleteService 類別

方法:getPlacePredictionsgetQueryPredictions

AutoAutocompleteRequest 介面

資源: componentRestrictionsinputlanguagelocationBiaslocationRestrictionoffsetoriginregionsessionTokentypesboundslocationradius

AutocompleteResponse 介面

屬性: predictions

QueryAutoAutocompleteRequest 介面

屬性:boundsinputlocationoffsetradius

AutocompleteSessionToken 類別
ComponentRestrictions 介面

屬性: country

AutocompletePrediction 介面

屬性: descriptiondistance_metersmatched_substringsplace_idstructured_formattingtermstypes

QueryAutocompletePrediction 介面

屬性:descriptionmatched_substringsplace_idterms

PredictionTerm 介面

屬性: offsetvalue

PredictionSubstring 介面

屬性: lengthoffset

StructuredFormatting 介面

屬性:main_textmain_text_matched_substringssecondary_text

地理編碼器

地理編碼器類別

方法:geocode

GeocoderRequest 介面

屬性: addressboundscomponentRestrictionslanguagelocationplaceIdregion

GeocoderComponentRestrictions 介面

屬性:administrativeAreacountrylocalitypostalCoderoute

GeocoderStatus 常數

常數: ERRORINVALID_REQUESTOKOVER_QUERY_LIMITREQUEST_DENIEDUNKNOWN_ERRORZERO_RESULTS

GeocoderResponse 介面

屬性: results

GeocoderResult 介面

屬性: address_componentsformatted_addressgeometrypartial_matchplace_idplus_codepostcode_localitiestypes

GeocoderAddressComponent 介面

屬性:long_nameshort_nametypes

GeocoderGeometry 介面

屬性:boundslocationlocation_typeviewport

GeocoderLocationType 常數

常數: APPROXIMATEGEOMETRIC_CENTERRANGE_INTERPOLATEDROOFTOP

路徑介面集

路線

DirectionsService 類別

方法:route

DirectionsRequest 介面

資源: avoidFerriesavoidHighwaysavoidTollsdestinationdrivingOptionslanguageoptimizeWaypointsoriginprovideRouteAlternativesregiontransitOptionstravelModeunitSystemwaypoints

DirectionsStatus 常數

常數: INVALID_REQUESTMAX_WAYPOINTS_EXCEEDEDNOT_FOUNDOKOVER_QUERY_LIMITREQUEST_DENIEDUNKNOWN_ERRORZERO_RESULTS

DirectionsResult 介面

屬性:available_travel_modesgeocoded_waypointsrequestroutes

DirectionsRenderer 類別

方法: getDirectionsgetMapgetPanelgetRouteIndexsetDirectionssetMapsetOptionssetPanelsetRouteIndex

事件: directions_changed

DirectionsRendererOptions 介面

資源: directionsdraggablehideRouteListinfoWindowmapmarkerOptionspanelpolylineOptionspreserveViewportrouteIndexsuppressBicyclingLayersuppressInfoWindowssuppressMarkerssuppressPolylines

DirectionsWaypoint 介面

屬性: locationstopover

DirectionsGeocodedWaypoint 介面

屬性:partial_matchplace_idtypes

DirectionsRoute 介面

資源: boundscopyrightsfarelegsoverview_pathoverview_polylinesummarywarningswaypoint_order

DirectionsLeg 介面

資源: arrival_timedeparture_timedistancedurationduration_in_trafficend_addressend_locationstart_addressstart_locationstepsvia_waypointstraffic_speed_entry

DirectionsStep 介面

資源: distancedurationencoded_lat_lngsend_locationinstructionsmaneuverpathstart_locationstepstransittransit_detailstravel_modestart_pointend_pointlat_lngspolyline

DirectionsPolyline 介面

屬性: points

地點介面

屬性:locationplaceIdquery

TravelMode 常數

常數: BICYCLINGDRIVINGTRANSITWALKING

DrivingOptions 介面

屬性: departureTimetrafficModel

TrafficModel 常數

常數: BEST_GUESSOPTIMISTICPESSIMISTIC

TransitOptions 介面

屬性:arrivalTimedepartureTimemodesroutingPreference

TransitMode 常數

常數: BUSRAILSUBWAYTRAINTRAM

TransitRoutePreference 常數

常數: FEWER_TRANSFERSLESS_WALKING

TransitFare 介面

屬性: currencyvalue

TransitDetails 介面

資源: arrival_stoparrival_timedeparture_stopdeparture_timeheadsignheadwaylinenum_stopstrip_short_name

TransitStop 介面

屬性: locationname

TransitLine 介面

屬性: agenciescoloriconnameshort_nametext_colorurlvehicle

TransitAgency 介面

屬性:namephoneurl

大眾運輸車輛介面

屬性:iconlocal_iconnametype

VehicleType 常數

常數: BUSCABLE_CARCOMMUTER_TRAINFERRYFUNICULARGONDOLA_LIFTHEAVY_RAILHIGH_SPEED_TRAININTERCITY_BUSMETRO_RAILMONORAILOTHERRAILSHARE_TAXISUBWAYTRAMTROLLEYBUS

UnitSystem 常數

常數: IMPERIALMETRIC

距離介面

屬性: textvalue

時間長度介面

屬性: textvalue

時間介面

屬性:texttime_zonevalue

DirectionsTravelMode 常數
DirectionsUnitSystem 常數

距離矩陣

DistanceMatrixService 類別

方法:getDistanceMatrix

DistanceMatrixRequest 介面

資源: avoidFerriesavoidHighwaysavoidTollsdestinationsdrivingOptionslanguageoriginsregiontransitOptionstravelModeunitSystem

DistanceMatrixResponse 介面

屬性:destinationAddressesoriginAddressesrows

DistanceMatrixResponseRow 介面

屬性: elements

DistanceMatrixResponseElement 介面

屬性:distancedurationduration_in_trafficfarestatus

DistanceMatrixStatus 常數

常數: INVALID_REQUESTMAX_DIMENSIONS_EXCEEDEDMAX_ELEMENTS_EXCEEDEDOKOVER_QUERY_LIMITREQUEST_DENIEDUNKNOWN_ERROR

DistanceMatrixElementStatus 常數

常數: NOT_FOUNDOKZERO_RESULTS

海拔高度

ElevationService 類別

方法:getElevationAlongPathgetElevationForLocations

LocationElevationRequest 介面

屬性: locations

LocationElevationResponse 介面

屬性: results

PathElevationRequest 介面

屬性: pathsamples

PathElevationResponse 介面

屬性: results

ElevationResult 介面

屬性:elevationlocationresolution

ElevationStatus 常數

常數: INVALID_REQUESTOKOVER_QUERY_LIMITREQUEST_DENIEDUNKNOWN_ERROR

旅程分享

地圖檢視

JourneySharingMapView 類別

資源: automaticViewportModeelementenableTrafficlocationProvidersmapmapOptionslocationProviderdestinationMarkerSetuporiginMarkerSetuptaskOutcomeMarkerSetupunsuccessfulTaskMarkerSetupvehicleMarkerSetupwaypointMarkerSetupanticipatedRoutePolylineSetuptakenRoutePolylineSetuppingMarkerSetupsuccessfulTaskMarkerSetupdestinationMarkersvehicleMarkerstaskOutcomeMarkerstaskOutcomeMarkerstaskOutcomeMarkersoriginMarkerssuccessfulTaskMarkersunsuccessfulTaskMarkerswaypointMarkersanticipatedRoutePolylinestakenRoutePolylines

方法:addLocationProviderremoveLocationProvider

JourneySharingMapViewOptions 介面

資源: automaticViewportModeelementlocationProvidersmapOptionslocationProviderdestinationMarkerSetuporiginMarkerSetuptaskOutcomeMarkerSetupunsuccessfulTaskMarkerSetupvehicleMarkerSetupwaypointMarkerSetupanticipatedRoutePolylineSetuptakenRoutePolylineSetuppingMarkerSetupsuccessfulTaskMarkerSetup

AutomaticViewportMode 常數

常數: FIT_ANTICIPATED_ROUTENONE

LocationProvider 抽象類別

方法:addListener

PollingLocationProvider 抽象類別

屬性: isPollingpollingIntervalMillis

事件: ispollingchange

PollingLocationProviderIsPollingChangeEvent 介面

屬性: error

身分驗證

AuthToken 介面

屬性: expiresInSecondstoken

AuthTokenContext 介面

屬性:deliveryVehicleIdtaskIdtrackingIdtripIdvehicleId

AuthTokenFetcher typedef
AuthTokenFetcherOptions 介面

屬性: contextserviceType

FleetEngineServiceType 常數

常數: DELIVERY_VEHICLE_SERVICETASK_SERVICETRIP_SERVICEUNKNOWN_SERVICE

使用者介面自訂

PolylineSetup typedef
PolylineSetupOptions 介面

屬性: polylineOptionsvisible

DefaultPolylineSetupOptions 介面

屬性: defaultPolylineOptionsdefaultVisible

MarkerSetup typedef
MarkerSetupOptions 介面

屬性: markerOptions

DefaultMarkerSetupOptions 介面

屬性: defaultMarkerOptions

MarkerCustomizationFunctionParams 介面

屬性:defaultOptionsisNewmarker

DeliveryVehicleMarkerCustomizationFunctionParams 介面

屬性: vehicle

PlannedStopMarkerCustomizationFunctionParams 介面

屬性: stopIndex

TaskMarkerCustomizationFunctionParams 介面

屬性: task

ShipmentMarkerCustomizationFunctionParams 介面

屬性: taskTrackingInfo

TripMarkerCustomizationFunctionParams 介面

屬性: trip

TripWaypointMarkerCustomizationFunctionParams 介面

屬性: waypointIndex

Beta 版VehicleMarkerCustomizationFunctionParams 介面

屬性: vehicle

Beta 版VehicleWaypointMarkerCustomizationFunctionParams 介面

屬性: waypointIndex

PolylineCustomizationFunctionParams 介面

屬性:defaultOptionsisNewpolylines

ShipmentPolylineCustomizationFunctionParams 介面

屬性: taskTrackingInfo

TripPolylineCustomizationFunctionParams 介面

屬性: trip

VehiclePolylineCustomizationFunctionParams 介面

屬性: vehicle

DeliveryVehiclePolylineCustomizationFunctionParams 介面

屬性: deliveryVehicle

Fleet Engine 實體

工作介面

資源: attributesestimatedCompletionTimelatestVehicleLocationUpdatenameoutcomeoutcomeLocationoutcomeLocationSourceoutcomeTimeplannedLocationremainingVehicleJourneySegmentsstatustargetTimeWindowtrackingIdtypevehicleId

TaskInfo 介面

屬性:extraDurationMillisidtargetTimeWindow

TaskTrackingInfo 介面

資源: attributesestimatedArrivalTimeestimatedTaskCompletionTimelatestVehicleLocationUpdatenameplannedLocationremainingDrivingDistanceMetersremainingStopCountroutePolylinePointsstatetargetTimeWindowtaskOutcometaskOutcomeTimetrackingId

行程介面

資源: actualDropOffLocationactualPickupLocationdropOffTimelatestVehicleLocationUpdatenamepassengerCountpickupTimeplannedDropOffLocationplannedPickupLocationremainingWaypointsstatustypevehicleId

交車介面

屬性: attributescurrentRouteSegmentEndPointlatestVehicleLocationUpdatenamenavigationStatusremainingDistanceMetersremainingDurationMillisremainingVehicleJourneySegments

DeliveryVehicleStop 介面

屬性:plannedLocationstatetasks

DeliveryVehicleStopState 常數

常數: ARRIVEDENROUTENEWUNSPECIFIED

VehicleJourneySegment 介面

屬性:drivingDistanceMetersdrivingDurationMillispathstop

VehicleLocationUpdate 介面

屬性:headinglocationspeedKilometersPerHourtime

VehicleWaypoint 介面

屬性:distanceMetersdurationMillislocationpathspeedReadingIntervals

Beta 版車輛介面

資源: attributescurrentRouteSegmentEndPointcurrentRouteSegmentVersioncurrentTripsetaToFirstWaypointlatestLocationmaximumCapacitynamenavigationStatusremainingDistanceMeterssupportedTripTypesvehicleStatevehicleTypewaypointswaypointsVersion

Beta 版VehicleNavigationStatus 常數

常數: ARRIVED_AT_DESTINATIONENROUTE_TO_DESTINATIONNO_GUIDANCEOFF_ROUTEUNKNOWN_NAVIGATION_STATUS

Beta 版VehicleState 常數

常數: OFFLINEONLINEUNKNOWN_VEHICLE_STATE

Beta 版VehicleType 常數

常數: AUTOTAXITRUCKTWO_WHEELERUNKNOWN

Beta 版TripType 常數

常數: EXCLUSIVESHAREDUNKNOWN_TRIP_TYPE

Beta 版TripWaypoint 介面

屬性: distanceMetersdurationMillislocationpathspeedReadingIntervalstripIdwaypointType

Beta 版WaypointType 常數

常數: DROP_OFF_WAYPOINT_TYPEINTERMEDIATE_DESTINATION_WAYPOINT_TYPEPICKUP_WAYPOINT_TYPEUNKNOWN_WAYPOINT_TYPE

TimeWindow 介面

屬性: endTimestartTime

速度常數

常數: NORMALSLOWTRAFFIC_JAM

SpeedReadingInterval 介面

屬性:endPolylinePointIndexspeedstartPolylinePointIndex

行程和訂單進度

FleetEngineTripLocationProvider 類別

靜態方法:TRAFFIC_AWARE_ACTIVE_POLYLINE_CUSTOMIZATION_FUNCTIONTRAFFIC_AWARE_REMAINING_POLYLINE_CUSTOMIZATION_FUNCTION

屬性: tripId

方法:refresh

事件: errorupdate

FleetEngineTripLocationProviderOptions 介面

資源: activePolylineCustomizationauthTokenFetcherdestinationMarkerCustomizationoriginMarkerCustomizationpollingIntervalMillisprojectIdremainingPolylineCustomizationtakenPolylineCustomizationtripIdvehicleMarkerCustomizationwaypointMarkerCustomization

FleetEngineTripLocationProviderUpdateEvent 介面

屬性: trip

車隊追蹤 - Last Mile Fleet

FleetEngineDeliveryVehicleLocationProvider 類別

屬性:deliveryVehicleIdshouldShowOutcomeLocationsshouldShowTasksstaleLocationThresholdMillistaskFilterOptions

事件: errorupdate

FleetEngineDeliveryVehicleLocationProviderOptions 介面

資源: activePolylineCustomizationauthTokenFetcherdeliveryVehicleIddeliveryVehicleMarkerCustomizationplannedStopMarkerCustomizationpollingIntervalMillisprojectIdremainingPolylineCustomizationshouldShowOutcomeLocationsshouldShowTasksstaleLocationThresholdMillistakenPolylineCustomizationtaskFilterOptionstaskMarkerCustomizationtaskOutcomeMarkerCustomization

FleetEngineTaskFilterOptions 介面

屬性:completionTimeFromcompletionTimeTostate

FleetEngineDeliveryVehicleLocationProviderUpdateEvent 介面

屬性:completedVehicleJourneySegmentsdeliveryVehicletasks

FleetEngineDeliveryFleetLocationProvider 類別

屬性:deliveryVehicleFilterlocationRestrictionstaleLocationThresholdMillis

事件: update

FleetEngineDeliveryFleetLocationProviderOptions 介面

屬性: authTokenFetcherdeliveryVehicleFilterdeliveryVehicleMarkerCustomizationlocationRestrictionprojectIdstaleLocationThresholdMillis

FleetEngineDeliveryFleetLocationProviderUpdateEvent 介面

屬性: deliveryVehicles

車隊追蹤 - 叫車和外送 (Beta 版)

Beta 版FleetEngineVehicleLocationProvider 類別

靜態方法:TRAFFIC_AWARE_ACTIVE_POLYLINE_CUSTOMIZATION_FUNCTIONTRAFFIC_AWARE_REMAINING_POLYLINE_CUSTOMIZATION_FUNCTION

屬性: staleLocationThresholdMillisvehicleId

事件: errorupdate

Beta 版FleetEngineVehicleLocationProviderOptions 介面

資源: activePolylineCustomizationauthTokenFetcherdestinationMarkerCustomizationintermediateDestinationMarkerCustomizationoriginMarkerCustomizationpollingIntervalMillisprojectIdremainingPolylineCustomizationstaleLocationThresholdMillistakenPolylineCustomizationvehicleIdvehicleMarkerCustomization

Beta 版FleetEngineVehicleLocationProviderUpdateEvent 介面

屬性: tripsvehicle

Beta 版FleetEngineFleetLocationProvider 類別

屬性:locationRestrictionstaleLocationThresholdMillisvehicleFilter

事件: update

Beta 版FleetEngineFleetLocationProviderOptions 介面

屬性: authTokenFetcherlocationRestrictionprojectIdstaleLocationThresholdMillisvehicleFiltervehicleMarkerCustomization

Beta 版FleetEngineFleetLocationProviderUpdateEvent 介面

屬性: vehicles

運送追蹤

FleetEngineShipmentLocationProvider 類別

屬性: trackingId

方法:refresh

事件: errorupdate

FleetEngineShipmentLocationProviderOptions 介面

資源: activePolylineCustomizationauthTokenFetcherdeliveryVehicleMarkerCustomizationdestinationMarkerCustomizationpollingIntervalMillisprojectIdremainingPolylineCustomizationtakenPolylineCustomizationtrackingId

FleetEngineShipmentLocationProviderUpdateEvent 介面

屬性: taskTrackingInfo

當地特色 (Beta 版)

地圖檢視

Beta 版LocalContextMapView 類別

屬性: directionsOptionselementisTransitioningMapBoundslocationBiaslocationRestrictionmaxPlaceCountplaceTypePreferences

方法:addListenerhidePlaceDetailsViewsearch

事件: errorplacedetailsviewhidestartplacedetailsviewshowstart

Beta 版LocalContextMapViewOptions 介面

資源: directionsOptionselementlocationBiaslocationRestrictionmapmaxPlaceCountpinOptionsSetupplaceChooserViewSetupplaceDetailsViewSetupplaceTypePreferences

Beta 版PlaceTypePreference typedef
Beta 版MapDirectionsOptions 類別

方法:addListener

Beta 版MapDirectionsOptionsLiteral 介面

屬性: origin

Beta 版PinOptions 介面

屬性:backgroundglyphColorscale

PlaceChooserViewSetupOptions 介面

屬性: layoutModeposition

Beta 版PlaceChooserLayoutMode 常數

常數: HIDDENSHEET

Beta 版PlaceChooserPosition 常數

常數: BLOCK_ENDINLINE_ENDINLINE_START

PlaceDetailsViewSetupOptions 介面

屬性:hidesOnMapClicklayoutModeposition

Beta 版PlaceDetailsLayoutMode 常數

常數: INFO_WINDOWSHEET

Beta 版PlaceDetailsPosition 常數

常數: INLINE_ENDINLINE_START