Google Maps JavaScript API V3 Reference

上次更新時間:2024 年 2 月 26 日星期一

這是 Maps JavaScript API 3.56 版 (每週版本) 中所有類別、方法和介面的索引。本參考文件內含 API 的最新變更。

詳情請參閱版本資訊版本管理
另請參閱 3.55 版 (每季版本)、3.54 版 3.53 版的參考說明文件。

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

全域概念

google.maps

google.maps 命名空間

靜態方法: importLibrary

常數:version

CoreLibrary 介面

屬性: ControlPositioneventLatLngLatLngAltitudeLatLngBoundsMapsNetworkErrorMapsNetworkErrorEndpointMapsRequestErrorMapsServerErrorMVCArrayMVCObjectPointSettingsSizeSymbolPathUnitSystem

MapsLibrary 介面

資源: BicyclingLayerCircleDataFeatureTypeGroundOverlayImageMapTypeInfoWindowKmlLayerKmlLayerStatusMapMapTypeControlStyleMapTypeIdMapTypeRegistryMaxZoomServiceMaxZoomStatusOverlayViewPolygonPolylineRectangleRectangleRectangleRenderingTypeStrokePositionStyledMapTypeTrafficLayerTransitLayerWebGLOverlayViewBetaZoomChangeEvent

PlacesLibrary 介面

資源: AccessibilityOptionsAddressComponentAttributionAuthorAttributionAutocompleteAutocompleteServiceAutocompleteSessionTokenBusinessStatusOpeningHoursOpeningHoursPeriodOpeningHoursPointParkingOptionsPaymentOptionsPhotoPlacePlacesServicePlacesServiceStatusPlusCodePriceLevelPriceLevelPriceLevelAutocompleteAutocompleteServiceAutocompleteSessionTokenBusinessStatusOpeningHoursOpeningHoursPeriodRankByReviewSearchBoxSearchByTextRankPreference

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_GET_PLACEPLACES_GET_PLACEPLACES_GET_PLACEPLACES_GET_PLACEPLACES_LOCAL_CONTEXT_SEARCHPLACES_NEARBY_SEARCHPLACES_SEARCH_TEXTSTREETVIEW_GET_PANORAMA

Google 地圖

地圖

地圖類別

屬性:controlsdatamapTypesoverlayMapTypes

方法: fitBoundsgetBoundsgetCentergetClickableIconsBetagetDatasetFeatureLayergetDivgetFeatureLayergetHeadinggetMapCapabilitiesgetMapTypeIdgetProjectiongetRenderingTypegetStreetViewgetTiltgetZoommoveCamerapanBypanTopanToBoundspanToBoundspanToBoundssetCentersetClickableIconssetHeadingsetMapTypeIdsetOptionssetStreetViewsetTiltsetZoom

常數:DEMO_MAP_ID

事件: bounds_changedcenter_changedclickcontextmenudblclickdragdragenddragstartheading_changedidleisfractionalzoomenabled_changedmapcapabilities_changedmaptypeid_changedmousemovemouseoutmouseoverprojection_changedrenderingtype_changedtilesloadedtilesloadedtilesloadedtilt_changedzoom_changedrightclick

MapOptions 介面

資源: backgroundColorcenterclickableIconscontrolSizedisableDefaultUIdisableDoubleClickZoomdraggableCursordraggingCursorfullscreenControlfullscreenControlOptionsgestureHandlingheadingisFractionalZoomEnabledkeyboardShortcutsmapIdmapTypeControlmapTypeControlOptionsmapTypeId, maxZoom, , draggableCursor, draggingCursor, fullscreenControl, fullscreenControlOptionsminZoomnoClearrestrictionrotateControlrotateControlOptionsscaleControlscaleControlOptionsscrollwheelstreetViewstreetViewControlstreetViewControlOptionsstylestiltzoomzoomControlzoomControlOptionsdraggablepanControlpanControlOptions

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

RotateControlOptions 介面

資源: 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_TOPRIGHT_BOTTOMRIGHT_BOTTOMRIGHT_BOTTOMRIGHT_BOTTOMRIGHT_CENTERRIGHT_TOPTOP_CENTERTOP_LEFTTOP_RIGHT

幾何圖形程式庫

為命名空間進行編碼

靜態方法:decodePathencodePath

球形命名空間

靜態方法:computeAreacomputeDistanceBetweencomputeHeadingcomputeLengthcomputeOffsetcomputeOffsetOrigincomputeSignedAreainterpolate

poly 命名空間

靜態方法:containsLocationisLocationOnEdge

在地圖上繪圖

進階標記

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

圓形類別

方法: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

標記 (舊版)

標記類別

方法: getAnimationgetClickablegetCursorgetDraggablegetIcongetLabelgetMapgetOpacitygetPositiongetShapegetTitlegetVisiblegetZIndexsetAnimationsetClickablesetCursorsetDraggablesetIconsetLabelsetLabelsetLabelsetMapsetOpacitysetOptionssetPositionsetShapesetTitlesetVisiblesetZIndex

常數:MAX_ZINDEX

事件: animation_changedclickclickable_changedcontextmenucursor_changeddblclickdragdragenddraggable_changeddragstartflat_changedicon_changedmousedownmouseoutmouseovermouseupposition_changedshape_changedtitle_changedtitle_changedtitle_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

街景服務

轉譯

StreetViewPanorama 類別

資源: controls

方法:focusgetLinksgetLocationgetMotionTrackinggetPanogetPhotographerPovgetPositiongetPovgetStatusgetVisiblegetZoomregisterPanoProvidersetLinkssetMotionTrackingsetOptionssetPanosetPositionsetPovsetVisiblesetVisiblesetZoom

事件:closeclickpano_changedposition_changedpov_changedresizestatus_changedvisible_changedzoom_changed

StreetViewPanoramaOptions 介面

資源: addressControladdressControlOptionsclickToGocontrolSizedisableDefaultUIdisableDoubleClickZoomenableCloseButtonfullscreenControlfullscreenControlOptionsimageDateControllinksControlmotionTrackingmotionTrackingControlmotionTrackingControlOptionspanControlpanControlOptionspanopositionpovpovpovscrollwheelshowRoadLabelsvisiblezoomzoomControlzoomControlOptions

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 類別
自動完成類別

方法:getBoundsgetFieldsgetPlacesetBoundssetComponentRestrictionssetFieldssetOptionssetTypes

事件: place_changed

AutocompleteOptions 介面

屬性:boundscomponentRestrictionsfieldsstrictBoundstypesplaceIdOnly

方法:getBoundsgetPlacessetBounds

事件: places_changed

SearchBoxOptions 介面

資源: bounds

地點

地點類別

靜態方法: searchByText

資源: accessibilityOptions, addressComponents, adrFormatAddress, allowsDogs, attributions, businessStatus, displayName, editorialSummary, editorialSummaryLanguageCode, formattedAddress, googleMapsURI, hasCurbsidePickup, hasDelivery, hasDineIn, hasLiveMusic, hasMenuForChildren, hasOutdoorSeating,hasRestroomhasTakeouthasWiFiiconBackgroundColoridinternationalPhoneNumberisGoodForChildrenisGoodForGroupsisGoodForWatchingSportsisReservablelocationnationalPhoneNumberparkingOptionspaymentOptionsphotosplusCodepriceLevelratingregularOpeningHoursrequestedLanguagerequestedRegionreviewsservesBeerservesBreakfastservesBrunchservesCocktailsservesCoffeeservesDessertservesDinnerservesLunchservesVegetarianFoodservesWinesvgIconMaskURItypesuserRatingCountutcOffsetMinutesviewportwebsiteURIopeningHours

方法:fetchFieldsBetagetNextOpeningTimeBetaisOpentoJSON

PlaceOptions 介面

屬性:idrequestedLanguagerequestedRegion

AccessibilityOptions 類別

屬性:hasWheelchairAccessibleEntrancehasWheelchairAccessibleParkinghasWheelchairAccessibleRestroomhasWheelchairAccessibleSeating

Beta 版AddressComponent 類別

屬性:longTextshortTexttypes

Beta 版歸因類別

資源:providerproviderURI

FetchFieldsRequest 介面

資源: fields

Beta 版OpeningHours 類別

資源:periodsweekdayDescriptions

Beta 版OpeningHoursPeriod 類別

資源:closeopen

Beta 版OpeningHoursPoint 類別

屬性:dayhourminute

ParkingOptions 類別

屬性:hasFreeGarageParkinghasFreeParkingLothasFreeStreetParkinghasPaidGarageParkinghasPaidParkingLothasPaidStreetParkinghasValetParking

PaymentOptions 類別

屬性:acceptsCashOnlyacceptsCreditCardsacceptsDebitCardsacceptsNFC

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_idplus_codeprice_levelratingratingratingreviewstypesurluser_ratings_totalutc_offset_minutesvicinitywebsiteutc_offsetpermanently_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 類別
ComponentRestrict 介面

資源: country

AutocompletePrediction 介面

屬性:descriptiondistance_metersmatched_substringsplace_idstructured_formattingtermstypes

QueryAutocompletePrediction 介面

屬性:descriptionmatched_substringsplace_idterms

PredictionTerm 介面

資源:offsetvalue

PredictionSubstring 介面

資源:lengthoffset

結構化格式介面

屬性:main_textmain_text_matched_substringssecondary_text

地理編碼器

地理編碼器類別

方法:geocode

GeocoderRequest 介面

屬性:addressboundscomponentRestrictionslanguagelocationplaceIdregion

GeocoderComponentRestrict 介面

屬性: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 類別

資源: automaticViewportModeelementenableTrafficlocationProvidersmapmapOptionslocationProviderdestinationMarkerSetuporiginMarkerSetuptaskOutcomeMarkerSetupunsuccessfulTaskMarkerSetupvehicleMarkerSetupwaypointMarkerSetupanticipatedRoutePolylineSetuptakenRoutePolylineSetuppingMarkerSetupsuccessfulTaskMarkerSetupdestinationMarkersoriginMarkersoriginMarkersoriginMarkerssuccessfulTaskMarkerstaskOutcomeMarkersunsuccessfulTaskMarkersvehicleMarkerswaypointMarkersanticipatedRoutePolylinestakenRoutePolylines

方法: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

UI 自訂

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

Delivery 車輛介面

屬性: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