Google Maps JavaScript API V3 Reference

使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。

最后更新时间:2022 年 11 月 21 日

这是 Maps JavaScript API 3.51 版(每周版)中所有类、方法和接口的索引。此参考资料会及时更新 API 的最新更改。

如需了解详情,请参阅版本说明版本控制
另请参阅 3.50 版(季度版)、3.49 版3.48 版的参考文档。

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

全局概念

google.maps

google.maps 命名空间

静态方法: BetaimportLibrary

常量: version

测试版CoreLibrary 接口

属性: ControlPositioneventLatLngLatLngAltitudeLatLngBoundsMapsNetworkErrorMapsNetworkErrorEndpointMapsRequestErrorMapsServerErrorMVCArrayMVCObjectPointSettingsSizeSymbolPathUnitSystem

测试版MapsLibrary 界面

{1/2/Circle {2/Circle/Data {2/Circle/Data Data,{2/Circle

测试版PlacesLibrary 界面

属性: AddressComponentAttributionAutocompleteAutocompleteServiceAutocompleteSessionTokenBusinessStatusOpeningHoursOpeningHoursPeriodOpeningHoursPointPhotoPhotoAttributionPlacePlacesServicePlacesServiceStatusPlusCodeRankByReviewSearchBox

测试版GeocodingLibrary 接口

属性: GeocoderGeocoderLocationTypeGeocoderStatus

测试版RoutesLibrary 接口

属性: DirectionsRendererDirectionsServiceDirectionsStatusDistanceMatrixElementStatusDistanceMatrixServiceDistanceMatrixStatusTrafficModelTransitModeTransitRoutePreferenceTravelModeVehicleType

测试版MarkerLibrary 接口

属性: AdvancedMarkerViewAnimationCollisionBehaviorMarkerPinView

测试版GeometryLibrary 接口

属性: encodingpolyspherical

测试版ElevationLibrary 界面

属性: ElevationServiceElevationStatus

测试版StreetViewLibrary 界面

属性: InfoWindowOverlayViewStreetViewCoverageLayerStreetViewPanoramaStreetViewPreferenceStreetViewServiceStreetViewSourceStreetViewStatus

测试版Journey SharingLibrary 界面

属性: AutomaticViewportModeFleetEngineDeliveryFleetLocationProviderFleetEngineDeliveryVehicleLocationProviderFleetEngineServiceTypeFleetEngineShipmentLocationProviderFleetEngineTripLocationProviderJourneySharingMapView

测试版绘图库接口

属性: DrawingManagerOverlayType

测试版VisualizationLibrary 接口

属性: HeatmapLayer

设置(Beta 版)

测试版设置类别

静态方法: BetagetInstance

属性: BetaexperienceIds

事件系统

事件类别

静态方法:addListeneraddListenerOnceclearInstanceListenersclearListenershasListenersremoveListenertriggeraddDomListeneraddDomListenerOnce

MapsEventListener 接口

方法: remove

MVCObject 类

方法:addListenerbindTogetnotifysetsetValuesunbindunbindAll

MVCArray 类

方法: clearforEachgetArraygetAtgetLengthinsertAtpoppushremoveAtsetAt

活动: insert_atremove_atset_at

ErrorEvent 接口

属性: error

错误

MapsNetworkError 类

属性: codeendpoint

MapsRequestError 类
MapsServerError 类
MapsNetworkErrorEndpoint 常量

<ph type="x-smartling-placeholder">{0}</ph>

地图

地图

地图类

属性: controlsdatamapTypesoverlayMapTypes

常量: DEMO_MAP_ID

事件:bounds_changedcenter_changedclickcontextmenudblclickdragdragenddragstartheading_changedidleisfractionalzoomenabled_changedBetamapcapabilities_changedmaptypeid_changedmousemovemouseoutmouseoverprojection_changedrenderingtype_changedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloadedtilesloaded/

MapOptions 接口

{2,/{2,/{2,/{2,/{2,/{2,/{2,/{2,/{2,/{2,/{2,/{/}

CrashlyticsStyle 接口

属性: elementTypefeatureTypestylers

MapMouseEvent 接口

属性: domEventlatLng

方法: stop

IconMouseEvent 接口

属性: placeId

LatLngId 常量

常量: HYBRIDROADMAPSATELLITETERRAIN

clickTAGRegistry 类

方法: set

MapRestriction 接口

属性: latLngBoundsstrictBounds

TrafficLayer 类

方法: getMapsetMapsetOptions

TrafficLayerOptions 接口

属性: autoRefreshmap

TransitLayer 类

方法:getMapsetMap

BicyclingLayer 类

方法:getMapsetMap

测试版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

Point 类

属性: xy

方法:equalstoString

Size 类

属性: heightwidth

方法:equalstoString

内边距界面

属性: bottomleftrighttop

CircleLiteral 接口

属性: centerradius

以数据为依据的样式(Beta 版)

测试版FeatureLayer 接口

属性: featureTypeisAvailablestyle

方法: addListener

测试版FeatureType 常量

常量: ADMINISTRATIVE_AREA_LEVEL_1ADMINISTRATIVE_AREA_LEVEL_2ADMINISTRATIVE_AREA_LEVEL_3ADMINISTRATIVE_AREA_LEVEL_4COUNTRYLOCALITYNEIGHBORHOODPOSTAL_CODESUBLOCALITY_LEVEL_1

测试版FeatureStyleFunction typedef
测试版FeatureStyleFunctionOptions 接口

属性: feature

测试版FeatureStyleOptions 接口

属性: fillColorfillOpacitystrokeColorstrokeOpacitystrokeWeight

测试版功能界面

属性: featureType

测试版PlaceFeature 接口

属性: displayNameplaceId

测试版FeatureMouseEvent 接口

属性: features

控件

FullscreenControlOptions 接口

属性: position

LatLngControlOptions 接口

属性: mapTypeIdspositionstyle

CrashlyticsControlStyle 常量

常量:DEFAULTDROPDOWN_MENUHORIZONTAL_BAR

MotionTrackingControlOptions 接口

属性: position

PanControlOptions 接口

属性: position

RotateControlOptions 接口

属性: position

ScaleControlOptions 接口

属性: style

ScaleControlStyle 常量

常量: DEFAULT

StreetViewControlOptions 接口

属性: position

ZoomControlOptions 接口

属性: position

ControlPosition 常量

常量:BOTTOM_CENTERBOTTOM_LEFTBOTTOM_RIGHTLEFT_BOTTOMLEFT_CENTERLEFT_TOPRIGHT_BOTTOMRIGHT_CENTERRIGHT_TOPTOP_CENTERTOP_LEFTTOP_RIGHT

几何图形库

编码命名空间

静态方法: decodePathencodePath

球形命名空间

静态方法:computeAreacomputeDistanceBetweencomputeHeadingcomputeLengthcomputeOffsetcomputeOffsetOrigincomputeSignedAreainterpolate

poly 命名空间

静态方法: containsLocationisLocationOnEdge

在地图上绘制

Marker

Marker 类

getClickable,{2/getCursor,{2/getCursor,{2/getCursor,{2/getCursor,{2/getCursor,{2/getCursor,{2/{2/getCursor,{2/getCursor,{2/getCursor,{2/getCursor,{2/{2/getCursor,{2/getCursor,{2/{2/getCursor,{2/getCursor,{2/getCursor,{2/getCursor,{2/getCursorgetCursorgetCursorgetCursorgetCursorgetCursorgetCursor

常量: MAX_ZINDEX

事件:animation_changedclickclickable_changedcontextmenucursor_changeddblclickdragdragenddraggable_changeddragstartflat_changedicon_changedmousedownmouseoutmouseovermouseupposition_changedshape_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changed/

MarkerOptions 接口

属性: anchorPointanimationclickableBetacollisionBehaviorcrossOnDragcursordraggableiconlabelmapopacityoptimizedpositionshapetitlevisiblezIndex

测试版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

高级标记(Beta 版)

测试版AdvancedMarkerView 类

属性: collisionBehaviorcontentdraggableelementmappositiontitlezIndex

方法: addListener

事件: clickdragdragenddragstart

测试版AdvancedMarkerViewOptions 接口

属性: collisionBehaviorcontentdraggableelementmappositiontitlezIndex

测试版PinView 类

属性: backgroundborderColorelementglyphglyphColorscale

方法: addListener

测试版PinViewOptions 接口

属性: backgroundborderColorelementglyphglyphColorscale

信息窗口

InfoWindow 类

方法: closefocusgetContentgetPositiongetZIndexopensetContentsetOptionssetPositionsetZIndex

事件: closeclickcontent_changeddomreadyposition_changedvisiblezindex_changed

InfoWindowOptions 接口

属性: ariaLabelcontentdisableAutoPanmaxWidthminWidthpixelOffsetpositionzIndex

InfoWindowOpenOptions 接口

属性: anchormapshouldFocus

多边形

多段线类

方法: getDraggablegetEditablegetMapgetPathgetVisiblesetDraggablesetEditablesetMapsetOptionssetPathsetVisible

事件: clickcontextmenudblclickdragdragenddragstartmousedownmousemovemouseoutmouseovermouseuprightclick

PolygonOptions 接口

属性: clickabledraggableeditablegeodesiciconsmappathstrokeColorstrokeOpacitystrokeWeightvisiblezIndex

IconSequence 接口

属性: fixedRotationiconoffsetrepeat

多边形类

方法: getDraggablegetEditablegetMapgetPathgetPathsgetVisiblesetDraggablesetEditablesetMapsetOptionssetPathsetPathssetVisible

事件: clickcontextmenudblclickdragdragenddragstartmousedownmousemovemouseoutmouseovermouseuprightclick

PolygonOptions 接口

属性: clickabledraggableeditablefillColorfillOpacitygeodesicmappathsstrokeColorstrokeOpacitystrokePositionstrokeWeightvisiblezIndex

PolyMouseEvent 接口

属性: edgepathvertex

Rectangle 类

方法: getBoundsgetDraggablegetEditablegetMapgetVisiblesetBoundssetDraggablesetEditablesetMapsetOptionssetVisible

事件: bounds_changedclickcontextmenudblclickdragdragenddragstartmousedownmousemovemouseoutmouseovermouseuprightclick

RectangleOptions 接口

属性: boundsclickabledraggableeditablefillColorfillOpacitymapstrokeColorstrokeOpacitystrokePositionstrokeWeightvisiblezIndex

Circle 类

方法:getBoundsgetCentergetDraggablegetEditablegetMapgetRadiusgetVisiblesetCentersetDraggablesetEditablesetMapsetOptionssetRadiussetVisible

事件: center_changedclickdblclickdragdragenddragstartmousedownmousemovemouseoutmouseovermouseupradius_changedrightclick

CircleOptions 接口

属性: centerclickabledraggableeditablefillColorfillOpacitymapradiusstrokeColorstrokeOpacitystrokePositionstrokeWeightvisiblezIndex

StrokePosition 常量

常量:CENTERINSIDEOUTSIDE

数据

数据类

方法: addaddGeoJsoncontainsforEachgetControlPositiongetControlsgetDrawingModegetFeatureByIdgetMapgetStyleloadGeoJsonoverrideStyleremoverevertStylesetControlPositionsetControlssetDrawingModesetMapsetStyle

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

图像叠加层

clickTAG 接口

属性: altmaxZoomminZoomnameprojectionradiustileSize

方法:getTilereleaseTile

投影界面

方法:fromLatLngToPointfromPointToLatLng

ImageAlign 类

属性: altmaxZoomminZoomnameprojectionradiustileSize

方法:getOpacitygetTilereleaseTilesetOpacity

活动: tilesloaded

ImageAlignOptions 接口

属性: altgetTileUrlmaxZoomminZoomnameopacitytileSize

GroundOverlay 类

方法:getBoundsgetMapgetOpacitygetUrlsetMapsetOpacity

活动: clickdblclick

GroundOverlayOptions 接口

属性: clickablemapopacity

StyledAlign 类

属性: altmaxZoomminZoomnameprojectionradiustileSize

方法:getTilereleaseTile

StyledDIVOptions 接口

属性: altmaxZoomminZoomname

绘图库

DrawManager 类

方法:getDrawingModegetMapsetDrawingModesetMapsetOptions

事件: circlecompletemarkercompleteoverlaycompletepolygoncompletepolylinecompleterectanglecomplete

DrawManagerOptions 接口

属性: circleOptionsdrawingControldrawingControlOptionsdrawingModemapmarkerOptionspolygonOptionspolylineOptionsrectangleOptions

DrawControlOptions 接口

属性: drawingModesposition

OverlayCompleteEvent 接口

属性: overlaytype

OverlayType 常量

常量: CIRCLEMARKERPOLYGONPOLYLINERECTANGLE

热图

HeatmapLayer 类

方法:getDatagetMapsetDatasetMapsetOptions

HeatmapLayerOptions 接口

属性: datadissipatinggradientmapmaxIntensityopacityradius

WeightedLocation 接口

属性: locationweight

最大缩放

MaxZoomService 类

方法: getMaxZoomAtLatLng

MaxZoomResult 接口

属性: statuszoom

MaxZoomStatus 常量

常量: ERROROK

街景

渲染

StreetViewPanorama 类

属性: controls

方法: focusgetLinksgetLocationgetMotionTrackinggetPanogetPhotographerPovgetPositiongetPovgetStatusgetVisiblegetZoomregisterPanoProvidersetLinkssetMotionTrackingsetOptionssetPanosetPositionsetPovsetVisible

事件: closeclickpano_changedposition_changedpov_changedresizestatus_changedvisible_changedzoom_changed

StreetViewPanoramaOptions 接口

{1/2/addressControlOptions {2/addressControlOptions/clickToGo {2/addressControlOptions/clickToGo clickToGo,{2/addressControlOptions

StreetViewAddressControlOptions 接口

属性: position

PanoProviderOptions 接口

属性: cors

StreetViewTileData 接口

属性: centerHeadingtileSizeworldSize

方法: getTileUrl

StreetViewPov 界面

属性: headingpitch

StreetViewCoverageLayer 类

方法:getMapsetMap

服务

StreetViewService 类

方法: getPanorama

StreetViewStatus 常量

常量:OKUNKNOWN_ERRORZERO_RESULTS

StreetViewLocationRequest 接口

属性: locationpreferenceradiussource

StreetViewPanoRequest 接口

属性: pano

StreetViewResponse 接口

属性: data

StreetViewLocation 接口

属性: descriptionlatLngpanoshortDescription

StreetViewPreference 常量

常量: BESTNEAREST

StreetViewSource 常量

常量: DEFAULTOUTDOOR

StreetViewPanoramaData 接口

属性: copyrightimageDatelinkslocationtiles

属性: descriptionheadingpano

地点

地点微件

自动补全类

方法:getBoundsgetFieldsgetPlacesetBoundssetComponentRestrictionssetFieldssetOptionssetTypes

活动: place_changed

AutocompleteOptions 接口

属性: boundscomponentRestrictionsfieldsstrictBoundstypesplaceIdOnly

方法: getBoundsgetPlacessetBounds

活动: places_changed

SearchBoxOptions 接口

属性: bounds

地点(Beta 版)

测试版地点类

静态方法: findPlaceFromPhoneNumberfindPlaceFromQuery

adrFormatAddress,{2/attributions,{2/attributions,{2/attributions,{2/attributions,{2/attributions,{2/attributions,{2/attributionsattributions,{2/attributionsattributions,{2/attributionsattributionsattributionsattributionsattributionsattributionsattributionsattributionsattributionsattributions

方法: fetchFieldsgetNextOpeningTimeisOpen

测试版PlaceOptions 接口

属性: idrequestedLanguagerequestedRegion

测试版AddressComponent 类

属性: longTextshortTexttypes

测试版归因类别

属性: providerproviderURI

测试版FetchFieldsRequest 接口

属性: fieldssessionToken

测试版OpeningHours 课程

属性: periodsweekdayDescriptions

测试版OpeningHoursPeriod 类

属性: closeopen

测试版OpeningHoursPoint 类

属性: dayhourminute

测试版照片类别

属性: attributionsheightPxwidthPx

方法: getURI

测试版照片归因类

属性: authorauthorURI

测试版PlusCode 类

属性: compoundCodeglobalCode

测试版查看课程

属性: authorauthorPhotoURIauthorURIpublishTimeratingrelativePublishTimeDescriptiontexttextLanguageCode

地点服务

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 接口

{2,{2,}

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

照片选项界面

属性: maxHeightmaxWidth

PlaceReview 接口

属性: author_nameauthor_urllanguageprofile_photo_urlratingrelative_time_descriptiontexttimeaspects

地点自动补全服务

AutocompleteService 类

方法:getPlacePredictionsgetQueryPredictions

Auto completionRequest 接口

属性: boundscomponentRestrictionsinputlanguagelocationoffsetoriginradiusregionsessionTokentypes

AutocompleteResponse 接口

属性: predictions

QueryAuto completionRequest 接口

属性: boundsinputlocationoffsetradius

AutocompleteSessionToken 类
ComponentRestrictions 接口

属性: country

AutocompletePrediction 接口

属性: descriptiondistance_metersmatched_substringsplace_idstructured_formattingtermstypes

QueryAutocompletePrediction 接口

属性: descriptionmatched_substringsplace_idterms

PredictionTerm 接口

属性: offsetvalue

PredictionSubstring 接口

属性: lengthoffset

StructuredFormat 接口

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

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

DirectionsDirections 界面

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

“持续时间”界面

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

Local Context(Beta 版)

地图视图

测试版LocalContextMapView 类

属性: directionsOptionselementisTransitioningMapBoundslocationBiaslocationRestrictionmaxPlaceCountplaceTypePreferences

方法: addListenerhidePlaceDetailsViewsearch

活动: errorplacedetailsviewhidestartplacedetailsviewshowstart

测试版LocalContextMapViewOptions 接口

属性: directionsOptionselementlocationBiaslocationRestrictionmapmaxPlaceCountpinOptionsSetupplaceChooserViewSetupplaceDetailsViewSetupplaceTypePreferences

测试版PlaceTypePreference typedef
测试版MapDirectionsOptions 类

方法: addListener

测试版MapDirectionsOptionsLiteral 接口

属性: origin

测试版PinOptions 接口

属性: backgroundglyphColorscale

PlaceChooserViewSetupOptions 接口

属性: layoutModeposition

测试版PlaceChooserLayoutMode 常量

常量: HIDDENSHEET

测试版PlaceChooserPosition 常量

常量:BLOCK_ENDINLINE_ENDINLINE_START

PlaceDetailsViewSetupOptions 接口

属性: hidesOnMapClicklayoutModeposition

测试版PlaceDetailsLayoutMode 常量

常量: INFO_WINDOWSHEET

测试版PlaceDetailsPosition 常量

常量: INLINE_ENDINLINE_START

旅程分享(Beta 版)

地图视图

测试版Journey SharingMapView 类

{1/2/anticipatedRoutePolylineSetup {2/anticipatedRoutePolylineSetup/automaticViewportMode {2/anticipatedRoutePolylineSetup/automaticViewportMode automaticViewportMode,{2/anticipatedRoutePolylineSetup

测试版Journey SharingMapViewOptions 接口

属性: anticipatedRoutePolylineSetupautomaticViewportModeelementlocationProvidermapOptionstakenRoutePolylineSetupdestinationMarkerSetuporiginMarkerSetuppingMarkerSetupsuccessfulTaskMarkerSetuptaskOutcomeMarkerSetupunsuccessfulTaskMarkerSetupvehicleMarkerSetupwaypointMarkerSetup

测试版AutomaticViewportMode 常量

常量: FIT_ANTICIPATED_ROUTENONE

测试版LocationProvider 抽象类

方法: addListener

测试版PollingLocationProvider 抽象类

属性: isPolling

活动: ispollingchange

测试版PollingLocationProviderIsPollingChangeEvent 接口

属性: error

身份验证

测试版AuthToken 接口

属性: expiresInSecondstoken

测试版AuthTokenContext 接口

属性: deliveryVehicleIdtaskIdtrackingIdtripIdvehicleId

测试版AuthTokenFetcher typedef
测试版AuthTokenFetcherOptions 接口

属性: contextserviceType

测试版FleetEngineServiceType 常量

常量: DELIVERY_VEHICLE_SERVICETASK_SERVICETRIP_SERVICEUNKNOWN_SERVICE

界面自定义

测试版多段线设置类型定义符
测试版PolygonSetupOptions 接口

属性: polylineOptionsvisible

测试版DefaultPolygonSetupOptions 接口

属性: defaultPolylineOptionsdefaultVisible

测试版MarkerSetup typedef
测试版MarkerSetupOptions 接口

属性: markerOptions

测试版DefaultMarkerSetupOptions 接口

属性: defaultMarkerOptions

测试版MarkerCustomizeFunctionParams 接口

属性: defaultOptionsisNewmarker

测试版交付车辆标记自定义函数参数接口

属性: vehicle

测试版PlannedStopMarkerCustomizeFunctionParams 接口

属性: stopIndex

测试版TaskMarkerCustomizeFunctionParams 接口

属性: task

测试版ShipmentMarkerCustomizeFunctionParams 接口

属性: task

舰队引擎实体

测试版任务界面

属性: estimatedCompletionTimelatestVehicleLocationUpdatenameoutcomeoutcomeLocationoutcomeLocationSourceoutcomeTimeplannedLocationremainingVehicleJourneySegmentsstatustrackingIdtypevehicleId

测试版行程界面

属性: actualDropOffLocationactualPickupLocationdropOffTimelatestVehicleLocationUpdatenamepassengerCountpickupTimeplannedDropOffLocationplannedPickupLocationremainingWaypointsstatustypevehicleId

测试版送货车辆界面

属性: attributescurrentRouteSegmentEndPointlatestVehicleLocationUpdatenamenavigationStatusremainingDistanceMetersremainingDurationMillisremainingVehicleJourneySegments

测试版VehicleJourneySegment 接口

属性: distanceMetersdurationMillisextraDurationMillislocationpath

测试版VehicleLocationUpdate 接口

属性: headinglocationspeedKilometersPerHourtime

测试版VehicleWaypoint 接口

属性: distanceMetersdurationMillislocationpath

行程和订单进度

测试版FleetEngineTripLocationProvider 类

属性: tripId

方法: refresh

活动: errorupdate

测试版FleetEngineTripLocationProviderOptions 接口

属性: authTokenFetcherpollingIntervalMillisprojectIdtripId

测试版FleetEngineTripLocationProviderUpdateEvent 接口

属性: trip

车队跟踪

测试版FleetEngineDeliverVehicleLocationProvider 类

属性: deliveryVehicleIdshouldShowOutcomeLocationsshouldShowTasksstaleLocationThresholdMillistaskFilterOptions

活动: errorupdate

测试版FleetEngineDeliverVehicleLocationProviderOptions 接口

属性: authTokenFetcherdeliveryVehicleIddeliveryVehicleMarkerCustomizationplannedStopMarkerCustomizationpollingIntervalMillisprojectIdshouldShowOutcomeLocationsshouldShowTasksstaleLocationThresholdMillistaskFilterOptionstaskMarkerCustomizationtaskOutcomeMarkerCustomization

测试版FleetEngineTaskFilterOptions 接口

属性: completionTimeFromcompletionTimeTostate

测试版FleetEngineDeliverVehicleLocationProviderUpdateEvent 接口

属性: completedVehicleJourneySegmentsdeliveryVehicletasks

测试版FleetEngine DeliveryFleetLocationProvider 类

属性: deliveryVehicleFilterlocationRestrictionpollingIntervalMillisstaleLocationThresholdMillis

活动: update

测试版FleetEngine DeliveryFleetLocationProviderOptions 接口

属性: authTokenFetcherdeliveryVehicleFilterdeliveryVehicleMarkerCustomizationlocationRestrictionprojectIdstaleLocationThresholdMillis

测试版FleetEngine DeliveryFleetLocationProviderUpdateEvent 接口

属性: deliveryVehicles

物流跟踪

测试版FleetEngineShipmentLocationProvider 类

属性: trackingId

方法:getTaskrefresh

活动: errorupdate

测试版FleetEngineShipmentLocationProviderOptions 接口

属性: authTokenFetcherdeliveryVehicleMarkerCustomizationdestinationMarkerCustomizationpollingIntervalMillisprojectIdtrackingId

测试版FleetEngineShipmentLocationProviderUpdateEvent 接口

属性: task