Google Maps JavaScript API V3 Reference

上次更新时间:2024 年 2 月 8 日(星期四)

这是 Maps JavaScript API 3.55 版中所有类、方法和接口的索引。

如需了解详情,请参阅版本说明版本控制

点击任意项目的名称可查看详细文档。

全局概念

google.maps

google.maps 命名空间

静态方法:importLibrary

常量:version

CoreLibrary 接口

属性: ControlPositioneventLatLngLatLngAltitudeLatLngBoundsMapsNetworkErrorMapsNetworkErrorEndpointMapsRequestErrorMapsServerErrorMVCArrayMVCObjectPointSettingsSizeSymbolPathUnitSystem

MapsLibrary 接口

属性: BicyclingLayerCircleDataFeatureTypeGroundOverlayImageMapTypeInfoWindowKmlLayerKmlLayerStatusMapMapTypeControlStyleMapTypeIdMapTypeRegistryMaxZoomServiceMaxZoomStatusOverlayViewPolygonPolylineRectangleDataRenderingTypeStrokePositionStrokePositionStrokePositionStyledMapTypeTrafficLayerTransitLayerWebGLOverlayViewBetaZoomChangeEvent

PlacesLibrary 接口

属性: AccessibilityOptionsAddressComponentAttributionAuthorAttributionAutocompleteAutocompleteServiceAutocompleteSessionTokenBusinessStatusOpeningHoursOpeningHoursPeriodOpeningHoursPointPhotoPlacePlacesServicePlacesServiceStatusPlusCodePriceLevelRankByReviewSearchBoxSearchByTextRankPreference

GeocodingLibrary 接口

属性:GeocoderGeocoderLocationTypeGeocoderStatus

RoutesLibrary 接口

属性:DirectionsRendererDirectionsServiceDirectionsStatusDistanceMatrixElementStatusDistanceMatrixServiceDistanceMatrixStatusTrafficModelTransitModeTransitRoutePreferenceTravelModeVehicleType

MarkerLibrary 接口

属性:AdvancedMarkerClickEventAdvancedMarkerElementAnimationCollisionBehaviorMarkerPinElement

GeometryLibrary 界面

属性:encodingpolyspherical

ElevationLibrary 接口

属性:ElevationServiceElevationStatus

StreetViewLibrary 接口

属性:InfoWindowOverlayViewStreetViewCoverageLayerStreetViewPanoramaStreetViewPreferenceStreetViewServiceStreetViewSourceStreetViewStatus

JourneySharingLibrary 界面

属性: AutomaticViewportModeDeliveryVehicleStopStateFleetEngineDeliveryFleetLocationProviderFleetEngineDeliveryVehicleLocationProviderFleetEngineFleetLocationProviderFleetEngineServiceTypeFleetEngineShipmentLocationProviderFleetEngineTripLocationProviderFleetEngineVehicleLocationProviderJourneySharingMapViewSpeedTripTypeVehicleNavigationStatusVehicleStateVehicleTypeWaypointType

DrawingLibrary 接口

属性:DrawingManagerOverlayType

VisualizationLibrary 接口

属性: HeatmapLayer

设置(Beta 版)

Beta 版Settings 类

静态方法: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_GATEWAYPLACES_GET_PLACEPLACES_GET_PLACEPLACES_LOCAL_CONTEXT_SEARCHPLACES_FIND_PLACE_FROM_QUERYPLACES_NEARBY_SEARCHPLACES_SEARCH_TEXTSTREETVIEW_GET_PANORAMA

Google 地图

Google 地图

映射类

属性:controlsdatamapTypesoverlayMapTypes

方法:fitBoundsgetBoundsgetCentergetClickableIconsBetagetDatasetFeatureLayergetDivgetFeatureLayergetHeadinggetMapCapabilitiesgetMapTypeIdgetProjectiongetRenderingTypegetStreetViewgetTiltgetZoommoveCamerapanBypanTopanToBoundsgetCentergetCentersetCentersetCenter、{20setClickableIconssetHeadingsetMapTypeIdsetOptionssetStreetViewsetTiltsetZoom

常量:DEMO_MAP_ID

事件: bounds_changedcenter_changedclickcontextmenudblclickdragdragenddragstartheading_changedidleisfractionalzoomenabled_changedmapcapabilities_changedmaptypeid_changedmousemovemouseoutmouseoverprojection_changedrenderingtype_changedtilesloadedtilt_changedzoom_changedrightclick

MapOptions 接口

属性: backgroundColor, center, clickableIcons, controlSize, disableDefaultUI, disableDoubleClickZoom, draggableCursor, draggingCursor, fullscreenControl, fullscreenControlOptions, gestureHandling, heading, isFractionalZoomEnabled, keyboardShortcuts, mapId, mapTypeControl, mapTypeControlOptions, mapTypeId, maxZoom, maxZoom, noClear, noClear, keyboardShortcuts, mapId, mapTypeControl, mapTypeId, mapTypeId, maxZoom, minZoom, noClearrestrictionrotateControlrotateControlOptionsscaleControlscaleControlOptionsscrollwheelstreetViewstreetViewControlstreetViewControlOptionsstylestiltzoomzoomControlzoomControlOptionsdraggablepanControlpanControlOptions

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 类型定义
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

rotationControlOptions 接口

属性: 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_TOPRIGHT_BOTTOMRIGHT_BOTTOMRIGHT_CENTER、{19、LEFT_CENTERRIGHT_TOPTOP_CENTERTOP_LEFTTOP_RIGHT

几何图形库

对命名空间进行编码

静态方法:decodePathencodePath

球形命名空间

静态方法:computeAreacomputeDistanceBetweencomputeHeadingcomputeLengthcomputeOffsetcomputeOffsetOrigincomputeSignedAreainterpolate

poly 命名空间

静态方法:containsLocationisLocationOnEdge

在地图上绘制

Marker

Marker 类

方法:getAnimationgetClickablegetCursorgetDraggablegetIcongetLabelgetMapgetOpacitygetPositiongetShapegetTitlegetVisiblegetZIndexsetAnimationsetClickablesetCursorsetDraggablesetIconsetLabelgetCursorgetCursorsetMapsetMap、{20setOpacitysetOptionssetPositionsetShapesetTitlesetVisiblesetZIndex

常量:MAX_ZINDEX

事件: animation_changedclickclickable_changedcontextmenucursor_changeddblclickdragdragenddraggable_changeddragstartflat_changedicon_changedmousedownmouseoutmouseovermouseupposition_changedshape_changedtitle_changedvisible_changedzindex_changedrightclick

MarkerOptions 接口

属性: anchorPointanimationclickablecrossOnDragcursordraggableiconlabelmapopacityoptimizedpositionshapetitlevisiblezIndexBetacollisionBehavior

CollisionBehavior 常量

常量: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

多边形

Polyline 类

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

数据

数据类

方法:addaddGeoJsoncontainsforEachgetControlPositiongetControlsgetDrawingModegetFeatureByIdgetMapgetStyleloadGeoJsonoverrideStyleremoverevertStylesetControlPositionsetControlssetDrawingModesetMapsetStyletoGeoJson

事件: addfeatureclickcontextmenudblclickmousedownmouseoutmouseovermouseupremovefeatureremovepropertysetgeometrysetpropertyrightclick

Data.DataOptions 接口

属性:controlPositioncontrolsdrawingModefeatureFactorymapstyle

Data.GeoJsonOptions 接口

属性: idPropertyName

Data.StyleOptions 接口

属性: animationclickablecursordraggableeditablefillColorfillOpacityiconiconslabelopacityshapestrokeColorstrokeOpacitystrokeWeighttitlevisiblezIndex

Data.StylingFunction 类型定义
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

方法:focusgetLinksgetLocationgetMotionTrackinggetPanogetPhotographerPovgetPositiongetPovgetStatusgetVisiblegetZoomregisterPanoProvidersetLinkssetMotionTrackingsetOptionssetPanosetPositionsetPovsetVisiblesetZoom

事件: closeclickpano_changedposition_changedpov_changedresizestatus_changedvisible_changedzoom_changed

StreetViewPanoramaOptions 接口

属性: addressControladdressControlOptionsclickToGocontrolSizedisableDefaultUIdisableDoubleClickZoomenableCloseButtonfullscreenControlfullscreenControlOptionsimageDateControllinksControlmotionTrackingmotionTrackingControlmotionTrackingControlOptionspanControlpanControlOptionspanopositionpovclickToGoshowRoadLabelsshowRoadLabelsshowRoadLabelsscrollwheelvisiblezoomzoomControlzoomControlOptions

StreetViewAddressControlOptions 接口

属性: position

PanoProviderOptions 接口

属性: cors

StreetViewTileData 接口

属性:centerHeadingtileSizeworldSize

方法:getTileUrl

StreetViewPov 接口

属性:headingpitch

StreetViewCoverageLayer 类

方法:getMapsetMap

服务

StreetViewService 类

方法:getPanorama

StreetViewStatus 常量

常量:OKUNKNOWN_ERRORZERO_RESULTS

StreetViewLocationRequest 接口

属性:locationpreferenceradiussourcessource

StreetViewPanoRequest 接口

属性: pano

StreetViewResponse 接口

属性: data

StreetViewLocation 接口

属性:descriptionlatLngpanoshortDescription

StreetViewPreference 常量

常量:BESTNEAREST

StreetViewSource 常量

常量:DEFAULTGOOGLEOUTDOOR

StreetViewPanoramaData 接口

属性:copyrightimageDatelinkslocationtiles

属性:descriptionheadingpano

地点

地点 widget

Beta 版PlaceAutocompleteElement 类

属性:componentRestrictionslocationBiaslocationRestrictionnamerequestedLanguagerequestedRegiontypes

方法:BetaaddEventListenerBetaremoveEventListener

Beta 版PlaceAutocompleteElementOptions 接口

属性:componentRestrictionslocationBiaslocationRestrictionrequestedLanguagerequestedRegiontypes

Beta 版PlaceAutocompletePlaceSelectEvent 类

属性: Betaplace

Beta 版PlaceAutocompleteRequestErrorEvent 类
自动补全类

方法:getBoundsgetFieldsgetPlacesetBoundssetComponentRestrictionssetFieldssetOptionssetTypes

事件: place_changed

AutocompleteOptions 接口

属性:boundscomponentRestrictionsfieldsstrictBoundstypesplaceIdOnly

方法:getBoundsgetPlacessetBounds

事件: places_changed

SearchBoxOptions 接口

属性: bounds

Place

地点类

静态方法:searchByText

属性: accessibilityOptions, addressComponents, adrFormatAddress, attributions, businessStatus, displayName, editorialSummary, editorialSummaryLanguageCode, formattedAddress, googleMapsURI, hasCurbsidePickup, hasDelivery, hasDineIn, hasTakeout, iconBackgroundColor, id, isReservable, isReservable, location, location, photos, hasTakeout, iconBackgroundColor, id, isReservable, isReservable, location, nationalPhoneNumber, photosinternationalPhoneNumberplusCodepriceLevelratingregularOpeningHoursrequestedLanguagerequestedRegionreviewsservesBeerservesBreakfastservesBrunchservesDinnerservesLunchservesVegetarianFoodservesWinesvgIconMaskURItypesuserRatingCountutcOffsetMinutesviewportwebsiteURIopeningHours

方法: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 类型定义
LocationRestriction 类型定义
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_levelratingaspectsaspectsreviewstypestypestypesurluser_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

地点自动补全服务

AutocompleteService 类

方法:getPlacePredictionsgetQueryPredictions

AutocompletionRequest 接口

属性:componentRestrictionsinputlanguagelocationBiaslocationRestrictionoffsetoriginregionsessionTokentypesboundslocationradius

AutocompleteResponse 接口

属性: predictions

QueryAutocompletionRequest 接口

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

地理编码器

Geocoder 类

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

TransitVehicle 界面

属性:iconlocal_iconnametype

VehicleType 常量

常量:BUSCABLE_CARCOMMUTER_TRAINFERRYFUNICULARGONDOLA_LIFTHEAVY_RAILHIGH_SPEED_TRAININTERCITY_BUSMETRO_RAILMONORAILOTHERRAILSHARE_TAXISUBWAYTRAMTROLLEYBUS

UnitSystem 常量

常量:IMPERIALMETRIC

距离界面

属性:textvalue

Duration 界面

属性: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 类

属性: automaticViewportModeelementenableTrafficlocationProvidersmapmapOptionslocationProviderdestinationMarkerSetuporiginMarkerSetuptaskOutcomeMarkerSetupunsuccessfulTaskMarkerSetupvehicleMarkerSetupwaypointMarkerSetupanticipatedRoutePolylineSetuptakenRoutePolylineSetuppingMarkerSetupsuccessfulTaskMarkerSetupdestinationMarkersoriginMarkersenableTrafficsuccessfulTaskMarkerstaskOutcomeMarkerstaskOutcomeMarkerstaskOutcomeMarkersunsuccessfulTaskMarkersvehicleMarkerswaypointMarkersanticipatedRoutePolylinestakenRoutePolylines

方法:addLocationProviderremoveLocationProvider

JourneySharingMapViewOptions 界面

属性:automaticViewportModeelementlocationProvidersmapOptionslocationProviderdestinationMarkerSetuporiginMarkerSetuptaskOutcomeMarkerSetupunsuccessfulTaskMarkerSetupvehicleMarkerSetupwaypointMarkerSetupanticipatedRoutePolylineSetuptakenRoutePolylineSetuppingMarkerSetupsuccessfulTaskMarkerSetup

AutomaticViewportMode 常量

常量:FIT_ANTICIPATED_ROUTENONE

LocationProvider 抽象类

方法:addListener

PollingLocationProvider 抽象类

属性:isPollingpollingIntervalMillis

事件: ispollingchange

PollingLocationProviderIsPollingChangeEvent 接口

属性: error

身份验证

AuthToken 接口

属性:expiresInSecondstoken

AuthTokenContext 接口

属性:deliveryVehicleIdtaskIdtrackingIdtripIdvehicleId

AuthTokenFetcher 类型定义
AuthTokenFetcherOptions 接口

属性:contextserviceType

FleetEngineServiceType 常量

常量:DELIVERY_VEHICLE_SERVICETASK_SERVICETRIP_SERVICEUNKNOWN_SERVICE

界面自定义

PolylineSetup typedef
PolylineSetupOptions 接口

属性:polylineOptionsvisible

DefaultPolylineSetupOptions 接口

属性:defaultPolylineOptionsdefaultVisible

MarkerSetup 类型定义
MarkerSetupOptions 界面

属性: markerOptions

DefaultMarkerSetupOptions 接口

属性: defaultMarkerOptions

MarkerCustomFunctionParams 接口

属性:defaultOptionsisNewmarker

DeliveryVehicleMarkerCustomizeFunctionParams 接口

属性: vehicle

PlannedStopMarkerCustomizeFunctionParams 接口

属性: stopIndex

TaskMarkerCustomFunctionParams 接口

属性: task

ShipmentMarkerCustomizeFunctionParams 接口

属性: taskTrackingInfo

TripMarkerCustomizeFunctionParams 接口

属性: trip

TripWaypointMarkerCustomizeFunctionParams 接口

属性: waypointIndex

Beta 版VehicleMarkerCustomizeFunctionParams 接口

属性: vehicle

Beta 版VehicleWaypointMarkerCustomizeFunctionParams 接口

属性: waypointIndex

多段线自定义 FunctionParams 接口

属性:defaultOptionsisNewpolylines

ShipmentPolylineCustomizeFunctionParams 接口

属性: taskTrackingInfo

Trip 多段线自定义 FunctionParams 接口

属性: trip

VehiclePolygonCustomizeFunctionParams 接口

属性: vehicle

DeliveryVehiclePolygonCustomizeFunctionParams 接口

属性: deliveryVehicle

Fleet Engine 实体

任务界面

属性:attributesestimatedCompletionTimelatestVehicleLocationUpdatenameoutcomeoutcomeLocationoutcomeLocationSourceoutcomeTimeplannedLocationremainingVehicleJourneySegmentsstatustargetTimeWindowtrackingIdtypevehicleId

TaskInfo 接口

属性:extraDurationMillisidtargetTimeWindow

TaskTrackingInfo 接口

属性:attributesestimatedArrivalTimeestimatedTaskCompletionTimelatestVehicleLocationUpdatenameplannedLocationremainingDrivingDistanceMetersremainingStopCountroutePolylinePointsstatetargetTimeWindowtaskOutcometaskOutcomeTimetrackingId

行程界面

属性:actualDropOffLocationactualPickupLocationdropOffTimelatestVehicleLocationUpdatenamepassengerCountpickupTimeplannedDropOffLocationplannedPickupLocationremainingWaypointsstatustypevehicleId

DeliveryVehicle 接口

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

车队跟踪 - 最后一公里车队

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

Local Context(Beta 版)

地图视图

Beta 版LocalContextMapView 类

属性:directionsOptionselementisTransitioningMapBoundslocationBiaslocationRestrictionmaxPlaceCountplaceTypePreferences

方法:addListenerhidePlaceDetailsViewsearch

事件:errorplacedetailsviewhidestartplacedetailsviewshowstart

Beta 版LocalContextMapViewOptions 接口

属性:directionsOptionselementlocationBiaslocationRestrictionmapmaxPlaceCountpinOptionsSetupplaceChooserViewSetupplaceDetailsViewSetupplaceTypePreferences

Beta 版PlaceTypePreference 类型定义
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