上次更新时间:2023 年 5 月 18 日,星期四
这是 Maps JavaScript API 3.53 版(每周渠道)中所有类、方法和接口的索引。此参考资料会及时了解该 API 的最新变更。
点击任一项的名称即可查看详细文档。
全局概念
google.maps
- google.maps 命名空间
-
静态方法:
importLibrary
常量:
version
- CoreLibrary 接口
-
属性:
ControlPosition
、event
、LatLng
、LatLngAltitude
、LatLngBounds
、MapsNetworkError
、MapsNetworkErrorEndpoint
、MapsRequestError
、MapsServerError
、MVCArray
、MVCObject
、Point
、Settings
、Size
、SymbolPath
、UnitSystem
- MapsLibrary 接口
-
、
BicyclingLayer
、Data
、Circle
FeatureType
GroundOverlay
ImageMapType
InfoWindow
KmlLayer
KmlLayerStatus
Map
MapTypeControlStyle
MapTypeId
MapTypeRegistry
MaxZoomService
MaxZoomStatus
OverlayView
Polygon
Polyline
Rectangle
RenderingType
StrokePosition
StyledMapType
TrafficLayer
TransitLayer
WebGLOverlayView
- PlacesLibrary 接口
-
属性:
AddressComponent
、Attribution
、Autocomplete
、AutocompleteService
、AutocompleteSessionToken
、BusinessStatus
、OpeningHours
、OpeningHoursPeriod
、OpeningHoursPoint
、Photo
、PhotoAttribution
、Place
、PlacesService
、PlacesServiceStatus
、PlusCode
、PriceLevel
、RankBy
、Review
、SearchBox
- GeocodingLibrary 界面
- RoutesLibrary 接口
-
属性:
DirectionsRenderer
、DirectionsService
、DirectionsStatus
、DistanceMatrixElementStatus
、DistanceMatrixService
、DistanceMatrixStatus
、TrafficModel
、TransitMode
、TransitRoutePreference
、TravelMode
、VehicleType
- MarkerLibrary 接口
-
属性:
AdvancedMarkerClickEvent
、AdvancedMarkerElement
、Animation
、CollisionBehavior
、Marker
、PinElement
- GeometryLibrary 接口
- ElevationLibrary 接口
- StreetViewLibrary 界面
-
属性:
InfoWindow
、OverlayView
、StreetViewCoverageLayer
、StreetViewPanorama
、StreetViewPreference
、StreetViewService
、StreetViewSource
、StreetViewStatus
- JourneySHAREDLibrary 接口
-
属性:
AutomaticViewportMode
、DeliveryVehicleStopState
、FleetEngineDeliveryFleetLocationProvider
、FleetEngineDeliveryVehicleLocationProvider
、FleetEngineServiceType
、FleetEngineShipmentLocationProvider
、FleetEngineTripLocationProvider
、JourneySharingMapView
- DrawingLibrary 界面
- VisualizationLibrary 接口
-
属性:
HeatmapLayer
设置(Beta 版)
设置类
-
静态方法:
getInstance
属性:
experienceIds
事件系统
- 事件类
-
静态方法:
addListener
、addListenerOnce
、clearInstanceListeners
、clearListeners
、hasListeners
、removeListener
、trigger
、
、addDomListeneraddDomListenerOnce - MapsEventListener 接口
-
方法:
remove
- MVCObject 类
-
方法:
addListener
、bindTo
、get
、notify
、set
、setValues
、unbind
、unbindAll
- MVCArray 类
-
方法:
clear
、forEach
、getArray
、getAt
、getLength
、insertAt
、pop
、push
、removeAt
、setAt
- ErrorEvent 接口
-
属性:
error
错误
- MapsNetworkError 类
- MapsRequestError 类
- MapsServerError 类
- MapsNetworkErrorEndpoint 常量
-
DIRECTIONS_ROUTE
、DISTANCE_MATRIX
、ELEVATION_ALONG_PATH
、 、ELEVATION_LOCATIONS
FLEET_ENGINE_GET_DELIVERY_VEHICLE
FLEET_ENGINE_GET_TRIP
FLEET_ENGINE_GET_VEHICLE
FLEET_ENGINE_LIST_DELIVERY_VEHICLES
FLEET_ENGINE_LIST_TASKS
FLEET_ENGINE_LIST_VEHICLES
FLEET_ENGINE_SEARCH_TASKS
GEOCODER_GEOCODE
MAPS_MAX_ZOOM
PLACES_AUTOCOMPLETE
PLACES_DETAILS
PLACES_FIND_PLACE_FROM_PHONE_NUMBER
PLACES_FIND_PLACE_FROM_QUERY
PLACES_GATEWAY
PLACES_LOCAL_CONTEXT_SEARCH
PLACES_NEARBY_SEARCH
STREETVIEW_GET_PANORAMA
地图
Google 地图
- 映射类
-
属性:
controls
、data
、mapTypes
、overlayMapTypes
(
fitBounds
)getBounds
getCenter
getClickableIcons
getDatasetFeatureLayer
getDiv
getFeatureLayer
getHeading
getMapCapabilities
getMapTypeId
getProjection
getRenderingType
getStreetView
getTilt
getZoom
moveCamera
panBy
panTo
panToBounds
setCenter
setClickableIcons
setHeading
setMapTypeId
setOptions
setStreetView
setTilt
setZoom
常量:
DEMO_MAP_ID
事件:
bounds_changed
、center_changed
、click
、contextmenu
、dblclick
、drag
、dragend
、dragstart
、heading_changed
、idle
、isfractionalzoomenabled_changed
、mapcapabilities_changed
、maptypeid_changed
、mousemove
、mouseout
、mouseover
、projection_changed
、renderingtype_changed
、tilesloaded
、tilesloaded
、tilesloaded
、tilesloaded
、tilesloaded
、}tilt_changed
zoom_changed
rightclick - MapOptions 接口
-
。
backgroundColor
center
clickableIcons
controlSize
disableDefaultUI
disableDoubleClickZoom
draggableCursor
draggingCursor
fullscreenControl
fullscreenControlOptions
gestureHandling
heading
isFractionalZoomEnabled
keyboardShortcuts
mapId
mapTypeControl
mapTypeControlOptions
mapTypeId
maxZoom
minZoom
noClear
panControl
panControlOptions
restriction
rotateControl
rotateControlOptions
scaleControl
scaleControlOptions
scrollwheel
streetView
streetViewControl
streetViewControlOptions
styles
tilt
zoom
zoomControl
zoomControlOptions
draggable MapElement 类
MapElementOptions 接口
- MapTypeStyle 接口
-
属性:
elementType
、featureType
、stylers
- MapMouseEvent 接口
-
方法:
stop
- IconMouseEvent 接口
-
属性:
placeId
- MapTypeId 常量
- MapTypeRegistry 类
-
方法:
set
- MapRestriction 接口
-
属性:
latLngBounds
、strictBounds
- TrafficLayer 类
-
方法:
getMap
、setMap
、setOptions
- TrafficLayerOptions 接口
-
属性:
autoRefresh
、map
- TransitLayer 类
- BicyclingLayer 类
CameraOptions 接口
- VisibleRegion 接口
- RenderingType 常量
- MapCapabilities 接口
-
属性:
isAdvancedMarkersAvailable
、isDataDrivenStylingAvailable
WebGL
- WebGLOverlayView 类
-
方法:
getMap
、onAdd
、onContextLost
、onContextRestored
、onDraw
、onRemove
、onStateUpdate
、requestRedraw
、requestStateUpdate
、setMap
- WebGLDrawOptions 接口
-
属性:
gl
、transformer
- WebGLStateOptions 接口
-
属性:
gl
- CoordinateTransform 接口
- CameraParams 接口
坐标
- LatLng 类
- LatLngLiteral 接口
- LatLngBounds 类
-
方法:
contains
、equals
、extend
、getCenter
、getNorthEast
、getSouthWest
、intersects
、isEmpty
、toJSON
、toSpan
、toString
、toUrlValue
、union
常量:
MAX_BOUNDS
- LatLngBoundsLiteral 接口
- LatLngAltitude 类
- LatLngAltitudeLiteral 接口
- 点类
- 大小类别
- 内边距界面
- CircleLiteral 接口
数据驱动型样式
- FeatureLayer 接口
-
属性:
、datasetId
featureType
、isAvailable
、style
方法:
addListener
- FeatureType 常量
-
常量:
ADMINISTRATIVE_AREA_LEVEL_1
、ADMINISTRATIVE_AREA_LEVEL_2
、COUNTRY
、
、DATASET
LOCALITY
、POSTAL_CODE
- FeatureStyleFunction typedef
- FeatureStyleFunctionOptions 接口
-
属性:
feature
- FeatureStyleOptions 接口
-
属性:
fillColor
、fillOpacity
、strokeColor
、strokeOpacity
、strokeWeight
- 功能界面
-
属性:
featureType
- PlaceFeature 接口
-
属性:
placeId
方法:
fetchPlace
DatasetFeature 接口
- FeatureMouseEvent 接口
-
属性:
features
控件
- FullscreenControlOptions 接口
-
属性:
position
- MapTypeControlOptions 接口
-
属性:
mapTypeIds
、position
、style
- MapTypeControlStyle 常量
- MotionTrackingControlOptions 接口
-
属性:
position
- PanControlOptions 接口
-
属性:
position
- RotateControlOptions 接口
-
属性:
position
- ScaleControlOptions 接口
-
属性:
style
- ScaleControlStyle 常量
-
常量:
DEFAULT
- StreetViewControlOptions 接口
-
属性:
position
- ZoomControlOptions 接口
-
属性:
position
- ControlPosition 常量
-
常量:
BOTTOM_CENTER
、BOTTOM_LEFT
、BOTTOM_RIGHT
、LEFT_BOTTOM
、LEFT_CENTER
、LEFT_TOP
、RIGHT_BOTTOM
、RIGHT_CENTER
、RIGHT_TOP
、TOP_CENTER
、TOP_LEFT
、TOP_RIGHT
几何图形库
- 对命名空间进行编码
-
静态方法:
decodePath
、encodePath
- 球形命名空间
-
静态方法:
computeArea
、computeDistanceBetween
、computeHeading
、computeLength
、computeOffset
、computeOffsetOrigin
、computeSignedArea
、interpolate
- poly 命名空间
在地图上绘制
Marker
- Marker 类
-
(
getAnimation
)getClickable
getCursor
getDraggable
getIcon
getLabel
getMap
getOpacity
getPosition
getShape
getTitle
getVisible
getZIndex
setAnimation
setClickable
setCursor
setDraggable
setIcon
setLabel
setMap
setOpacity
setOptions
setPosition
setShape
setTitle
setVisible
setZIndex
常量:
MAX_ZINDEX
事件:
animation_changed
、click
、clickable_changed
、contextmenu
、cursor_changed
、dblclick
、drag
、dragend
、draggable_changed
、dragstart
、flat_changed
、icon_changed
、mousedown
、mouseout
、mouseover
、mouseup
、position_changed
、shape_changed
、title_changed
、title_changed
、title_changed
、title_changed
、title_changed
、}visible_changed
zindex_changed
rightclick - MarkerOptions 接口
-
属性:
anchorPoint
、animation
、clickable
、
、collisionBehavior
crossOnDrag
、cursor
、draggable
、icon
、label
、map
、opacity
、optimized
、position
、shape
、title
、visible
、zIndex
- 冲突行为常量
-
常量:
OPTIONAL_AND_HIDES_LOWER_PRIORITY
、REQUIRED
、REQUIRED_AND_HIDES_OPTIONAL
- 图标界面
-
属性:
anchor
、labelOrigin
、origin
、scaledSize
、size
、url
- MarkerLabel 接口
-
属性:
className
、color
、fontFamily
、fontSize
、fontWeight
、text
- MarkerShape 接口
- 符号接口
-
属性:
anchor
、fillColor
、fillOpacity
、labelOrigin
、path
、rotation
、scale
、strokeColor
、strokeOpacity
、strokeWeight
- SymbolPath 常量
-
常量:
BACKWARD_CLOSED_ARROW
、BACKWARD_OPEN_ARROW
、CIRCLE
、FORWARD_CLOSED_ARROW
、FORWARD_OPEN_ARROW
- 动画常量
高级标记
- AdvancedMarkerElement 类
-
属性:
collisionBehavior
、content
、element
、gmpDraggable
、map
、position
、title
、zIndex
- AdvancedMarkerElementOptions 接口
-
属性:
collisionBehavior
、content
、gmpDraggable
、map
、position
、title
、zIndex
AdvancedMarkerClickEvent 类
- PinElement 类
-
属性:
background
、borderColor
、element
、glyph
、glyphColor
、scale
- PinElementOptions 接口
信息窗口
- InfoWindow 类
-
方法:
close
、focus
、getContent
、getPosition
、getZIndex
、open
、setContent
、setOptions
、setPosition
、setZIndex
事件:
closeclick
、content_changed
、domready
、position_changed
、visible
、zindex_changed
- InfoWindowOptions 接口
-
属性:
ariaLabel
、content
、disableAutoPan
、maxWidth
、minWidth
、pixelOffset
、position
、zIndex
- InfoWindowOpenOptions 接口
-
属性:
anchor
、map
、shouldFocus
多边形
- 多段线类
-
方法:
getDraggable
、getEditable
、getMap
、getPath
、getVisible
、setDraggable
、setEditable
、setMap
、setOptions
、setPath
、setVisible
事件:
click
、contextmenu
、dblclick
、drag
、dragend
、dragstart
、mousedown
、mousemove
、mouseout
、mouseover
、mouseup
和rightclick - 多段线接口
-
属性:
clickable
、draggable
、editable
、geodesic
、icons
、map
、path
、strokeColor
、strokeOpacity
、strokeWeight
、visible
、zIndex
- IconSequence 接口
- 多边形类
-
方法:
getDraggable
、getEditable
、getMap
、getPath
、getPaths
、getVisible
、setDraggable
、setEditable
、setMap
、setOptions
、setPath
、setPaths
、setVisible
事件:
click
、contextmenu
、dblclick
、drag
、dragend
、dragstart
、mousedown
、mousemove
、mouseout
、mouseover
、mouseup
和rightclick - PolygonOptions 接口
-
属性:
clickable
、draggable
、editable
、fillColor
、fillOpacity
、geodesic
、map
、paths
、strokeColor
、strokeOpacity
、strokePosition
、strokeWeight
、visible
、zIndex
- PolyMouseEvent 接口
- 矩形类
-
方法:
getBounds
、getDraggable
、getEditable
、getMap
、getVisible
、setBounds
、setDraggable
、setEditable
、setMap
、setOptions
、setVisible
事件:
bounds_changed
、click
、contextmenu
、dblclick
、drag
、dragend
、dragstart
、mousedown
、mousemove
、mouseout
、mouseover
、mouseup
和rightclick - RectangleOptions 接口
-
属性:
bounds
、clickable
、draggable
、editable
、fillColor
、fillOpacity
、map
、strokeColor
、strokeOpacity
、strokePosition
、strokeWeight
、visible
、zIndex
- Circle 类
-
方法:
getBounds
、getCenter
、getDraggable
、getEditable
、getMap
、getRadius
、getVisible
、setCenter
、setDraggable
、setEditable
、setMap
、setOptions
、setRadius
、setVisible
事件:
center_changed
、click
、dblclick
、drag
、dragend
、dragstart
、mousedown
、mousemove
、mouseout
、mouseover
、mouseup
、radius_changed
和rightclick
- CircleOptions 接口
-
属性:
center
、clickable
、draggable
、editable
、fillColor
、fillOpacity
、map
、radius
、strokeColor
、strokeOpacity
、strokePosition
、strokeWeight
、visible
、zIndex
- StrokePosition 常量
数据
- 数据类
-
方法:
add
、addGeoJson
、contains
、forEach
、getControlPosition
、getControls
、getDrawingMode
、getFeatureById
、getMap
、getStyle
、loadGeoJson
、overrideStyle
、remove
、revertStyle
、setControlPosition
、setControls
、setDrawingMode
、setMap
、setStyle
、setStyle
toGeoJson
事件:
addfeature
、click
、contextmenu
、dblclick
、mousedown
、mouseout
、mouseover
、mouseup
、removefeature
、removeproperty
、setgeometry
、setproperty
和rightclick - Data.DataOptions 接口
-
属性:
controlPosition
、controls
、drawingMode
、featureFactory
、map
、style
- Data.GeoJsonOptions 接口
-
属性:
idPropertyName
- Data.StyleOptions 接口
-
属性:
animation
、clickable
、cursor
、draggable
、editable
、fillColor
、fillOpacity
、icon
、icons
、label
、opacity
、shape
、strokeColor
、strokeOpacity
、strokeWeight
、title
、visible
、zIndex
- Data.StylingFunction typedef
- Data.Feature 类
-
方法:
forEachProperty
、getGeometry
、getId
、getProperty
、removeProperty
、setGeometry
、setProperty
、toGeoJson
- Data.FeatureOptions 接口
-
属性:
geometry
、id
、properties
- Data.Geometry 接口
-
方法:
forEachLatLng
、getType
- Data.Point 类
-
方法:
forEachLatLng
、get
、getType
- Data.MultiPoint 类
- Data.LineString 类
- Data.MultiLineString 类
- Data.LinearRing 类
- Data.Polygon 类
- Data.MultiPolygon 类
- Data.GeometryCollection 类
- Data.MouseEvent 接口
-
属性:
feature
- Data.AddFeatureEvent 接口
-
属性:
feature
- Data.RemoveFeatureEvent 接口
-
属性:
feature
- Data.SetGeometryEvent 接口
-
属性:
feature
、newGeometry
、oldGeometry
- Data.SetPropertyEvent 接口
- Data.RemovePropertyEvent 接口
DOM 元素
- OverlayView 类
- MapPanes 接口
-
属性:
floatPane
、mapPane
、markerLayer
、overlayLayer
、overlayMouseTarget
- MapCanvasProjection 接口
-
方法:
fromContainerPixelToLatLng
、fromDivPixelToLatLng
、fromLatLngToContainerPixel
、fromLatLngToDivPixel
、getVisibleRegion
、getWorldWidth
KML
- KmlLayer 类
-
方法:
getDefaultViewport
、getMap
、getMetadata
、getStatus
、getUrl
、getZIndex
、setMap
、setOptions
、setUrl
、setZIndex
- KmlLayerOptions 接口
-
属性:
clickable
、map
、preserveViewport
、screenOverlays
、suppressInfoWindows
、url
、zIndex
- KmlLayerMetadata 接口
- KmlLayerStatus 常量
-
常量:
DOCUMENT_NOT_FOUND
、DOCUMENT_TOO_LARGE
、FETCH_ERROR
、INVALID_DOCUMENT
、INVALID_REQUEST
、LIMITS_EXCEEDED
、OK
、TIMED_OUT
、UNKNOWN
- KmlMouseEvent 接口
-
属性:
featureData
、latLng
、pixelOffset
- KmlFeatureData 接口
-
属性:
author
、description
、id
、infoWindowHtml
、name
、snippet
- KmlAuthor 接口
图像叠加层
- MapType 接口
-
属性:
alt
、maxZoom
、minZoom
、name
、projection
、radius
、tileSize
方法:
getTile
、releaseTile
- 投影界面
- ImageMapType 类
-
属性:
alt
、maxZoom
、minZoom
、name
、projection
、radius
、tileSize
方法:
getOpacity
、getTile
、releaseTile
、setOpacity
事件:
tilesloaded
- ImageMapTypeOptions 接口
-
属性:
alt
、getTileUrl
、maxZoom
、minZoom
、name
、opacity
、tileSize
- GroundOverlay 类
- GroundOverlayOptions 接口
- StyledMapType 类
-
属性:
alt
、maxZoom
、minZoom
、name
、projection
、radius
、tileSize
方法:
getTile
、releaseTile
- StyledMapTypeOptions 接口
绘图库
- DrawingManager 类
-
方法:
getDrawingMode
、getMap
、setDrawingMode
、setMap
、setOptions
事件:
circlecomplete
、markercomplete
、overlaycomplete
、polygoncomplete
、polylinecomplete
、rectanglecomplete
- DrawingManagerOptions 接口
-
属性:
circleOptions
、drawingControl
、drawingControlOptions
、drawingMode
、map
、markerOptions
、polygonOptions
、polylineOptions
、rectangleOptions
- DrawingControlOptions 接口
-
属性:
drawingModes
、position
- OverlayCompleteEvent 接口
- OverlayType 常量
热图
- HeatmapLayer 类
- HeatmapLayerOptions 接口
-
属性:
data
、dissipating
、gradient
、map
、maxIntensity
、opacity
、radius
- WeightedLocation 接口
最大缩放
街景
渲染
- StreetViewPanorama 类
-
属性:
controls
方法:
focus
、getLinks
、getLocation
、getMotionTracking
、getPano
、getPhotographerPov
、getPosition
、getPov
、getStatus
、getVisible
、getZoom
、registerPanoProvider
、setLinks
、setMotionTracking
、setOptions
、setPano
、setPosition
、setPov
、setVisible
、setVisible
setZoom
事件:
closeclick
、pano_changed
、position_changed
、pov_changed
、resize
、status_changed
、visible_changed
、zoom_changed
- StreetViewPanoramaOptions 接口
-
、
addressControl
、clickToGo
、addressControlOptions
controlSize
disableDefaultUI
disableDoubleClickZoom
enableCloseButton
fullscreenControl
fullscreenControlOptions
imageDateControl
linksControl
motionTracking
motionTrackingControl
motionTrackingControlOptions
panControl
panControlOptions
pano
position
pov
scrollwheel
showRoadLabels
visible
zoom
zoomControl
zoomControlOptions
- StreetViewAddressControlOptions 接口
-
属性:
position
- PanoProviderOptions 接口
-
属性:
cors
- StreetViewTileData 接口
-
属性:
centerHeading
、tileSize
、worldSize
方法:
getTileUrl
- StreetViewPov 界面
- StreetViewCoverageLayer 类
服务
- StreetViewService 类
-
方法:
getPanorama
- StreetViewStatus 常量
- StreetViewLocationRequest 接口
- StreetViewPanoRequest 接口
-
属性:
pano
- StreetViewResponse 接口
-
属性:
data
- StreetViewLocation 接口
- StreetViewPreference 常量
- StreetViewSource 常量
- StreetViewPanoramaData 接口
- StreetViewLink 界面
-
属性:
description
、heading
、pano
地点
地点微件
PlaceAutocompleteElement 类
-
属性:
element
、inputElement
方法:
addListener
PlaceAutocompleteElementOptions 接口
-
属性:
componentRestrictions
、element
、inputElement
、locationBias
、locationRestriction
、requestedLanguage
、requestedRegion
、types
- 自动补全类
-
方法:
getBounds
、getFields
、getPlace
、setBounds
、setComponentRestrictions
、setFields
、setOptions
、setTypes
事件:
place_changed
- AutocompleteOptions 接口
-
属性:
bounds
、componentRestrictions
、fields
、strictBounds
、types
、placeIdOnly - SearchBox 类
-
方法:
getBounds
、getPlaces
、setBounds
事件:
places_changed
- SearchBoxOptions 接口
-
属性:
bounds
地点(Beta 版)
地点类
-
静态方法:
、findPlaceFromPhoneNumber
findPlaceFromQuery
。
addressComponents
adrFormatAddress
attributions
businessStatus
displayName
formattedAddress
googleMapsURI
hasCurbsidePickup
hasDelivery
hasDineIn
hasTakeout
hasWheelchairAccessibleEntrance
iconBackgroundColor
id
internationalPhoneNumber
isReservable
location
nationalPhoneNumber
openingHours
photos
plusCode
priceLevel
rating
requestedLanguage
requestedRegion
reviews
servesBeer
servesBreakfast
servesBrunch
servesDinner
servesLunch
servesVegetarianFood
servesWine
svgIconMaskURI
types
userRatingCount
utcOffsetMinutes
viewport
websiteURI
PlaceOptions 接口
AddressComponent 类
归因类别
-
属性:
provider
、providerURI
FetchFieldsRequest 接口
-
属性:
fields
、sessionToken
OpeningHours 类
OpeningHoursPeriod 类
OpeningHoursPoint 类
照片课程
-
属性:
attributions
、heightPx
、widthPx
方法:
getURI
PhotoAttribution 类
PlusCode 类
-
属性:
compoundCode
、globalCode
查看课程
-
属性:
author
、authorPhotoURI
、authorURI
、publishTime
、rating
、relativePublishTimeDescription
、text
、textLanguageCode
PriceLevel 常量
地点服务
- PlacesService 类
-
方法:
findPlaceFromPhoneNumber
、findPlaceFromQuery
、getDetails
、nearbySearch
、textSearch
- PlaceDetailsRequest 接口
- FindPlaceFromPhoneNumberRequest 接口
- FindPlaceFromQueryRequest 接口
- PlaceSearchRequest 接口
-
属性:
bounds
、keyword
、language
、location
、maxPriceLevel
、minPriceLevel
、openNow
、radius
、rankBy
、type
、name - TextSearchRequest 接口
- RankBy 常量
- LocationBias 类型定义符
- LocationRestriction typedef
- PlacesServiceStatus 常量
-
常量:
INVALID_REQUEST
、NOT_FOUND
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
、ZERO_RESULTS
- PlaceSearchPagination 接口
-
属性:
hasNextPage
方法:
nextPage
- PlaceResult 接口
-
、
address_components
adr_address
aspects
business_status
formatted_address
formatted_phone_number
geometry
html_attributions
icon
icon_background_color
icon_mask_base_uri
international_phone_number
name
opening_hours
photos
place_id
plus_code
price_level
rating
reviews
types
url
user_ratings_total
utc_offset_minutes
vicinity
website
utc_offsetpermanently_closed PlaceAspectRating 接口- BusinessStatus 常量
- PlaceGeometry 接口
- PlaceOpeningHours 接口
-
属性:
periods
、weekday_text
、open_now方法:
isOpen
- PlaceOpeningHoursPeriod 接口
- PlaceOpeningHoursTime 接口
- PlacePlusCode 接口
-
属性:
compound_code
、global_code
- PlacePhoto 界面
-
属性:
height
、html_attributions
、width
方法:
getUrl
- PhotoOptions 接口
- PlaceReview 接口
-
属性:
author_name
、author_url
、language
、profile_photo_url
、rating
、relative_time_description
、text
、time
、aspects
地点自动补全服务
- AutocompleteService 类
- AutoCompletionRequest 接口
-
属性:
componentRestrictions
、input
、language
、locationBias
、locationRestriction
、offset
、origin
、region
、sessionToken
、types
、
、bounds
、locationradius - AutocompleteResponse 接口
-
属性:
predictions
- QueryAuto completionRequest 接口
- AutocompleteSessionToken 类
- ComponentRestrictions 接口
-
属性:
country
- AutocompletePrediction 接口
-
属性:
description
、distance_meters
、matched_substrings
、place_id
、structured_formatting
、terms
、types
- QueryAutocompletePrediction 接口
- Predictionterm 接口
- PredictionSubstring 接口
- StructuredFormat 接口
地理编码器
- 地理编码器类
-
方法:
geocode
- GeocoderRequest 接口
-
属性:
address
、bounds
、componentRestrictions
、language
、location
、placeId
、region
- GeocoderComponentRestrictions 接口
- GeocoderStatus 常量
-
常量:
ERROR
、INVALID_REQUEST
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
、ZERO_RESULTS
- GeocoderResponse 接口
-
属性:
results
- GeocoderResult 接口
-
属性:
address_components
、formatted_address
、geometry
、partial_match
、place_id
、plus_code
、postcode_localities
、types
- GeocoderAddressComponent 接口
-
属性:
long_name
、short_name
、types
- GeocoderGeometry 接口
- GeocoderLocationType 常量
路线
路线
- DirectionsService 类
-
方法:
route
- DirectionsRequest 接口
-
属性:
avoidFerries
、avoidHighways
、avoidTolls
、destination
、drivingOptions
、language
、optimizeWaypoints
、origin
、provideRouteAlternatives
、region
、transitOptions
、travelMode
、unitSystem
、waypoints
- DirectionsStatus 常量
-
常量:
INVALID_REQUEST
、MAX_WAYPOINTS_EXCEEDED
、NOT_FOUND
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
、ZERO_RESULTS
- DirectionsResult 接口
- DirectionsRenderer 类
-
方法:
getDirections
、getMap
、getPanel
、getRouteIndex
、setDirections
、setMap
、setOptions
、setPanel
、setRouteIndex
- DirectionsRendererOptions 接口
-
属性:
directions
、draggable
、hideRouteList
、infoWindow
、map
、markerOptions
、panel
、polylineOptions
、preserveViewport
、routeIndex
、suppressBicyclingLayer
、suppressInfoWindows
、suppressMarkers
、suppressPolylines
- DirectionsWaypoint 接口
- DirectionsGeocodedWaypoint 接口
-
属性:
partial_match
、place_id
、types
- DirectionsRoute 接口
-
属性:
bounds
、copyrights
、fare
、legs
、overview_path
、overview_polyline
、summary
、warnings
、waypoint_order
- DirectionsLeg 接口
-
属性:
arrival_time
、departure_time
、distance
、duration
、duration_in_traffic
、end_address
、end_location
、start_address
、start_location
、steps
、via_waypoints
、traffic_speed_entry - DirectionsStep 接口
-
属性:
distance
、duration
、encoded_lat_lngs
、end_location
、instructions
、maneuver
、path
、start_location
、steps
、transit
、transit_details
、travel_mode
、
、start_point
、end_point
、lat_lngspolyline - DirectionsLine 接口
-
属性:
points
- 地点界面
- TravelMode 常量
- DrivingOptions 接口
- TrafficModel 常量
- TransitOptions 接口
- TransitMode 常量
- TransitRoutePreference 常量
- TransitFare 接口
- TransitDetails 接口
-
属性:
arrival_stop
、arrival_time
、departure_stop
、departure_time
、headsign
、headway
、line
、num_stops
、trip_short_name
- TransitStop 接口
- TransitLine 接口
-
属性:
agencies
、color
、icon
、name
、short_name
、text_color
、url
、vehicle
- TransitAgency 界面
- TransitVehicle 接口
-
属性:
icon
、local_icon
、name
、type
- VehicleType 常量
-
常量:
BUS
、CABLE_CAR
、COMMUTER_TRAIN
、FERRY
、FUNICULAR
、GONDOLA_LIFT
、HEAVY_RAIL
、HIGH_SPEED_TRAIN
、INTERCITY_BUS
、METRO_RAIL
、MONORAIL
、OTHER
、RAIL
、SHARE_TAXI
、SUBWAY
、TRAM
、TROLLEYBUS
- UnitSystem 常量
- 距离界面
- “时长”界面
- 时间界面
DirectionsTravelMode 常量DirectionsUnitSystem 常量
距离矩阵
- DistanceMatrixService 类
- DistanceMatrixRequest 接口
-
属性:
avoidFerries
、avoidHighways
、avoidTolls
、destinations
、drivingOptions
、language
、origins
、region
、transitOptions
、travelMode
、unitSystem
- DistanceMatrixResponse 接口
- DistanceMatrixResponseRow 接口
-
属性:
elements
- DistanceMatrixResponseElement 接口
- DistanceMatrixStatus 常量
-
常量:
INVALID_REQUEST
、MAX_DIMENSIONS_EXCEEDED
、MAX_ELEMENTS_EXCEEDED
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
- DistanceMatrixElementStatus 常量
海拔
- ElevationService 类
- LocationElevationRequest 接口
-
属性:
locations
- LocationElevationResponse 接口
-
属性:
results
- PathElevationRequest 接口
- PathElevationResponse 接口
-
属性:
results
- ElevationResult 接口
-
属性:
elevation
、location
、resolution
- ElevationStatus 常量
-
常量:
INVALID_REQUEST
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
旅程分享
地图视图
- Journey SharingMapView 类
-
、
anticipatedRoutePolylines
、automaticViewportMode
、anticipatedRoutePolylineSetup
element
enableTraffic
locationProvider
map
mapOptions
takenRoutePolylines
takenRoutePolylineSetup
destinationMarkerSetuporiginMarkerSetuppingMarkerSetupsuccessfulTaskMarkerSetuptaskOutcomeMarkerSetupunsuccessfulTaskMarkerSetupvehicleMarkerSetupwaypointMarkerSetupdestinationMarkersoriginMarkerssuccessfulTaskMarkerstaskOutcomeMarkersunsuccessfulTaskMarkersvehicleMarkerswaypointMarkers - Journey SharingMapViewOptions 接口
-
属性:
anticipatedRoutePolylineSetup
、automaticViewportMode
、element
、locationProvider
、mapOptions
、takenRoutePolylineSetup
、
、destinationMarkerSetup
、originMarkerSetup
、pingMarkerSetup
、successfulTaskMarkerSetup
、taskOutcomeMarkerSetup
、unsuccessfulTaskMarkerSetup
、vehicleMarkerSetupwaypointMarkerSetup - AutomaticViewportMode 常量
- LocationProvider 抽象类
-
方法:
addListener
- PollingLocationProvider 抽象类
-
属性:
isPolling
、pollingIntervalMillis
事件:
ispollingchange
- PollingLocationProviderIsPollingChangeEvent 接口
-
属性:
error
身份验证
- AuthToken 接口
-
属性:
expiresInSeconds
、token
- AuthTokenContext 接口
- AuthTokenFetcher typedef
- AuthTokenFetcherOptions 接口
-
属性:
context
、serviceType
- FleetEngineServiceType 常量
-
常量:
DELIVERY_VEHICLE_SERVICE
、TASK_SERVICE
、TRIP_SERVICE
、UNKNOWN_SERVICE
界面自定义
- 多段线设置类型定义符
- 折线设置选项界面
-
属性:
polylineOptions
、visible
- Default 折线 SetupOptions 接口
标记设置 typedefMarkerMarkerOptions 接口-
属性:
markerOptions
DefaultMarkerSetupOptions 接口- MarkerCustomizationFunctionParams 接口
-
属性:
defaultOptions
、isNew
、marker
- DeliveryVehicleMarkerCustomizationFunctionParams 接口
-
属性:
vehicle
- PlannedStopMarkerCustomizationFunctionParams 接口
-
属性:
stopIndex
- TaskMarkerCustomizationFunctionParams 接口
-
属性:
task
- ShipmentMarkerCustomizationFunctionParams 接口
-
属性:
taskTrackingInfo
- TripMarkerCustomizationFunctionParams 接口
-
属性:
trip
- TripWaypointMarkerCustomizationFunctionParams 接口
-
属性:
waypointIndex
舰队引擎实体
- 任务界面
-
属性:
attributes
、estimatedCompletionTime
、latestVehicleLocationUpdate
、name
、outcome
、outcomeLocation
、outcomeLocationSource
、outcomeTime
、plannedLocation
、remainingVehicleJourneySegments
、status
、targetTimeWindow
、trackingId
、type
、vehicleId
- TaskTrackingInfo 接口
-
属性:
attributes
、estimatedArrivalTime
、estimatedTaskCompletionTime
、latestVehicleLocationUpdate
、name
、plannedLocation
、remainingDrivingDistanceMeters
、remainingStopCount
、routePolylinePoints
、state
、targetTimeWindow
、taskOutcome
、taskOutcomeTime
、trackingId
- 行程界面
-
属性:
actualDropOffLocation
、actualPickupLocation
、dropOffTime
、latestVehicleLocationUpdate
、name
、passengerCount
、pickupTime
、plannedDropOffLocation
、plannedPickupLocation
、remainingWaypoints
、status
、type
、vehicleId
- DeliveryVehicle 接口
-
属性:
attributes
、currentRouteSegmentEndPoint
、latestVehicleLocationUpdate
、name
、navigationStatus
、remainingDistanceMeters
、remainingDurationMillis
、remainingVehicleJourneySegments
- DeliveryVehicleStop 接口
-
属性:
tasks
- DeliveryVehicleStopState 常量
- VehicleJourneySegment 接口
- VehicleLocationUpdate 接口
- VehicleWaypoint 接口
- TimeWindow 接口
行程和订单进度
- FleetEngineTripLocationProvider 类
-
属性:
tripId
方法:
refresh
- FleetEngineTripLocationProviderOptions 接口
-
属性:
authTokenFetcher
、destinationMarkerCustomization
、originMarkerCustomization
、pollingIntervalMillis
、projectId
、tripId
、vehicleMarkerCustomization
、waypointMarkerCustomization
- FleetEngineTripLocationProviderUpdateEvent 接口
-
属性:
trip
车队跟踪
- FleetEngineDeliveryVehicleLocationProvider 类
-
属性:
deliveryVehicleId
、shouldShowOutcomeLocations
、shouldShowTasks
、staleLocationThresholdMillis
、taskFilterOptions
- FleetEngineDeliveryVehicleLocationProviderOptions 接口
-
属性:
authTokenFetcher
、deliveryVehicleId
、deliveryVehicleMarkerCustomization
、plannedStopMarkerCustomization
、pollingIntervalMillis
、projectId
、shouldShowOutcomeLocations
、shouldShowTasks
、staleLocationThresholdMillis
、taskFilterOptions
、taskMarkerCustomization
、taskOutcomeMarkerCustomization
- FleetEngineTaskFilterOptions 接口
- FleetEngineDeliveryVehicleLocationProviderUpdateEvent 接口
- FleetEngineDeliveryFleetLocationProvider 类
-
属性:
deliveryVehicleFilter
、locationRestriction
、staleLocationThresholdMillis
事件:
update
- FleetEngineDeliveryFleetLocationProviderOptions 接口
-
属性:
authTokenFetcher
、deliveryVehicleFilter
、deliveryVehicleMarkerCustomization
、locationRestriction
、projectId
、staleLocationThresholdMillis
- FleetEngineDeliveryFleetLocationProviderUpdateEvent 接口
-
属性:
deliveryVehicles
货运跟踪
- FleetEngineShipmentLocationProvider 类
-
属性:
trackingId
方法:
refresh
- FleetEngineShipmentLocationProviderOptions 接口
-
属性:
authTokenFetcher
、deliveryVehicleMarkerCustomization
、destinationMarkerCustomization
、pollingIntervalMillis
、projectId
、trackingId
- FleetEngineShipmentLocationProviderUpdateEvent 接口
-
属性:
taskTrackingInfo
Local Context(Beta 版)
地图视图
LocalContextMapView 类
-
属性:
directionsOptions
、element
、isTransitioningMapBounds
、locationBias
、locationRestriction
、maxPlaceCount
、placeTypePreferences
方法:
addListener
、hidePlaceDetailsView
、search
事件:
error
、placedetailsviewhidestart
、placedetailsviewshowstart
LocalContextMapViewOptions 接口
-
属性:
directionsOptions
、element
、locationBias
、locationRestriction
、map
、maxPlaceCount
、pinOptionsSetup
、placeChooserViewSetup
、placeDetailsViewSetup
、placeTypePreferences
PlaceTypePreference typedef
MapDirectionsOptions 类
-
方法:
addListener
MapDirectionsOptionsLiteral 接口
-
属性:
origin
PinOptions 接口
-
属性:
background
、glyphColor
、scale
- PlaceChooserViewSetupOptions 接口
-
属性:
layoutMode
、position
PlaceChooserLayoutMode 常量
PlaceChooserPosition 常量
- PlaceDetailsViewSetupOptions 接口
PlaceDetailsLayoutMode 常量
-
常量:
INFO_WINDOW
、SHEET
PlaceDetailsPosition 常量