Google Maps JavaScript API V3 Reference

Organiza tus páginas con colecciones Guarda y categoriza el contenido según tus preferencias.

Última actualización: 22 de abril de 2022

Este es un índice de todas las clases, interfaces y métodos de la versión 3.48 de la API de Maps JavaScript.

Para obtener información adicional, consulta las Notas de la versión y el Control de versiones.

Haga clic en el nombre de cualquier elemento para ver la documentación detallada.

Maps

Maps

Clase de mapa

Propiedades: controls, data, mapTypes, overlayMapTypes

Métodos: fitBounds, getBounds, getCenter, getClickableIcons, getDiv, getHeading, getMapTypeId, getProjection, getRenderingType, getStreetView, getTilt, getZoom, moveCamera, panBy, panTo, setHeading, 2, 2

Eventos: bounds_changed, center_changed, click, contextmenu, dblclick, drag, dragend, dragstart, heading_changed, idle, isfractionalzoomenabled_changed, maptypeid_changed, mousemove, mouseout, mouseover, tilesloaded, tilesloaded, tilesloaded

Interfaz de MapOptions

2.

Interfaz de MapTypeStyle

Propiedades: elementType, featureType y stylers

Interfaz de MapMouseEvent

Propiedades: domEvent, latLng

Métodos: stop

Interfaz de IconMouseEvent

Propiedades: placeId

Constantes de MapTypeId

Constantes: HYBRID, ROADMAP, SATELLITE, TERRAIN

Clase MapTypeRegistry

Métodos: set

Interfaz de MapRestriction

Propiedades: latLngBounds, strictBounds

Clase TrafficLayer

Métodos: getMap, setMap, setOptions

Interfaz TrafficLayerOptions

Propiedades: autoRefresh, map

Clase TransitLayer

Métodos: getMap, setMap

Clase BicyclingLayer

Métodos: getMap, setMap

>Interfaz CameraOptions

Propiedades: center, heading, tilt, zoom

Interfaz visibleVisible

Propiedades: farLeft, farRight, latLngBounds, nearLeft, nearRight

Constantes de Tipo de renderización

Constantes: RASTER, UNINITIALIZED, VECTOR

WebGL

Clase WebGLOverlayView

Métodos: getMap, onAdd, onContextLost, onContextRestored, onDraw, onRemove, onStateUpdate, requestRedraw, requestStateUpdate, setMap

Interfaz WebGLDrawOptions

Propiedades: gl, transformer

Interfaz de WebGL StateOptions

Propiedades: gl

Interfaz de Coordinate

Métodos: fromLatLngAltitude, getCameraParams

Interfaz de CameraParams

Propiedades: center, heading, tilt, zoom

Coordenadas

Clase LatLng

Métodos: equals, lat, lng, toJSON, toString, toUrlValue

Interfaz de LatLngLiteral

Propiedades: lat, lng

Clase LatLngBounds

Métodos: contains, equals, extend, getCenter, getNorthEast, getSouthWest, intersects, isEmpty, toJSON, toSpan, toString, toUrlValue, union

Interfaz LatLngBoundsLiteral

Propiedades: east, north, south, west

Clase LatLngAltitude

Propiedades: altitude, lat y lng

Métodos: equals, toJSON

Interfaz LatLngAltitudeLiteral

Propiedades: altitude, lat y lng

Clase puntual

Propiedades: x, y

Métodos: equals, toString

Clase de tamaño

Propiedades: height, width

Métodos: equals, toString

Interfaz de relleno

Propiedades: bottom, left, right, top

Interfaz de CircleLiteral

Propiedades: center, radius

Sistema de eventos

espacio de nombres de eventos

Métodos estáticos: addDomListener, addDomListenerOnce, addListener, addListenerOnce, clearInstanceListeners, clearListeners, hasListeners, removeListener, trigger

Interfaz de MapsEventListener

Métodos: remove

Clase MVCObject

Métodos: addListener, bindTo, get, notify, set, setValues, unbind y unbindAll

Clase MVCArray

Métodos: clear, forEach, getArray, getAt, getLength, insertAt, pop, push, removeAt, setAt

Eventos: insert_at, remove_at, set_at

Interfaz de ErrorEvent

Propiedades: error

Controles

Interfaz FullscreenControlOptions

Propiedades: position

Interfaz de MapTypeControlOptions

Propiedades: mapTypeIds, position y style

Constantes de MapTypeControlStyle

Constantes: DEFAULT, DROPDOWN_MENU, HORIZONTAL_BAR

Interfaz MotionTrackingControlOptions

Propiedades: position

Interfaz de PanControlOptions

Propiedades: position

Interfaz RotarControlOptions

Propiedades: position

Interfaz ScaleControlOptions

Propiedades: style

Constantes de ScaleControlStyle

Constantes: DEFAULT

Interfaz StreetViewControlOptions

Propiedades: position

Interfaz ZoomControlOptions

Propiedades: position

Constantes de ControlPosition

Constantes: BOTTOM_CENTER, BOTTOM_LEFT, BOTTOM_RIGHT, LEFT_BOTTOM, LEFT_CENTER, LEFT_TOP, RIGHT_BOTTOM, RIGHT_CENTER, RIGHT_TOP, TOP_CENTER, TOP_LEFT, TOP_RIGHT

Biblioteca de geometría

espacio de nombres de codificación

Métodos estáticos: decodePath, encodePath

espacio de nombres esférico

Métodos estáticos: computeArea, computeDistanceBetween, computeHeading, computeLength, computeOffset, computeOffsetOrigin, computeSignedArea, interpolate

espacio de nombres Poly

Métodos estáticos: containsLocation, isLocationOnEdge

Cómo dibujar en el mapa

Marker

Clase de marcador

Métodos: getAnimation, getClickable, getCursor, getDraggable, getIcon, getLabel, getMap, getOpacity, getPosition, getShape, getTitle, getVisible, getZIndex, setAnimation, setLabel, {2, ,

Constantes: MAX_ZINDEX

Eventos: animation_changed, click, clickable_changed, contextmenu, cursor_changed, dblclick, drag, dragend, draggable_changed, dragstart, flat_changed, icon_changed, mousedown, mouseout, mouseover, shape_changed, shape_changed,

Interfaz MarkerOptions

Propiedades: anchorPoint, animation, clickable, ">collisionBehavior, crossOnDrag, cursor, draggable, icon, label, map, opacity, optimized, position, shape, title, visible, zIndex

>Constantes de CollisionBehavior

Constantes: OPTIONAL_AND_HIDES_LOWER_PRIORITY, REQUIRED, REQUIRED_AND_HIDES_OPTIONAL

Interfaz de íconos

Propiedades: anchor, labelOrigin, origin, scaledSize, size, url

Interfaz de MarkerLabel

Propiedades: className, color, fontFamily, fontSize, fontWeight, text

Interfaz de MarkerShape

Propiedades: coords, type

Interfaz de símbolos

Propiedades: anchor, fillColor, fillOpacity, labelOrigin, path, rotation, scale, strokeColor, strokeOpacity, strokeWeight

Constantes de SymbolPath

Constantes: BACKWARD_CLOSED_ARROW, BACKWARD_OPEN_ARROW, CIRCLE, FORWARD_CLOSED_ARROW, FORWARD_OPEN_ARROW

Constantes de animación

Constantes: BOUNCE, DROP

Ventana de información

Clase InfoWindow

Métodos: close, focus, getContent, getPosition, getZIndex, open, setContent, setOptions, setPosition, setZIndex

Eventos: closeclick, content_changed, domready, position_changed, visible, zindex_changed

Interfaz de InfoWindowOptions

Propiedades: ariaLabel, content, disableAutoPan, maxWidth, minWidth, pixelOffset, position, zIndex

Interfaz de InfoWindowOpenOptions

Propiedades: anchor, map y shouldFocus

Polígonos

Clase de polilínea

Métodos: getDraggable, getEditable, getMap, getPath, getVisible, setDraggable, setEditable, setMap, setOptions, setPath, setVisible

Eventos: click, contextmenu, dblclick, drag, dragend, dragstart, mousedown, mousemove, mouseout, mouseover, mouseup, rightclick

Interfaz PolylineOptions

Propiedades: clickable, draggable, editable, geodesic, icons, map, path, strokeColor, strokeOpacity, strokeWeight, visible, zIndex

Interfaz de IconSequence

Propiedades: fixedRotation, icon, offset, repeat

Clase Polygon

Métodos: getDraggable, getEditable, getMap, getPath, getPaths, getVisible, setDraggable, setEditable, setMap, setOptions, setPath, setPaths, setVisible

Eventos: click, contextmenu, dblclick, drag, dragend, dragstart, mousedown, mousemove, mouseout, mouseover, mouseup, rightclick

Interfaz PolygonOptions

Propiedades: clickable, draggable, editable, fillColor, fillOpacity, geodesic, map, paths, strokeColor, strokeOpacity, strokePosition, strokeWeight, visible, zIndex

Interfaz de PolyMouseEvent

Propiedades: edge, path y vertex

Clase de rectángulo

Métodos: getBounds, getDraggable, getEditable, getMap, getVisible, setBounds, setDraggable, setEditable, setMap, setOptions, setVisible

Eventos: bounds_changed, click, contextmenu, dblclick, drag, dragend, dragstart, mousedown, mousemove, mouseout, mouseover, mouseup, rightclick

Interfaz RectangleOptions

Propiedades: bounds, clickable, draggable, editable, fillColor, fillOpacity, map, strokeColor, strokeOpacity, strokePosition, strokeWeight, visible, zIndex

Clase de círculo

Métodos: getBounds, getCenter, getDraggable, getEditable, getMap, getRadius, getVisible, setCenter, setDraggable, setEditable, setMap, setOptions, setRadius, setVisible

Eventos: center_changed, click, dblclick, drag, dragend, dragstart, mousedown, mousemove, mouseout, mouseover, mouseup, radius_changed, rightclick

Interfaz CircleOptions

Propiedades: center, clickable, draggable, editable, fillColor, fillOpacity, map, radius, strokeColor, strokeOpacity, strokePosition, strokeWeight, visible, zIndex

Constantes de StrokePosition

Constantes: CENTER, INSIDE, OUTSIDE

Datos

Clase de datos

Métodos: add, addGeoJson, contains, forEach, getControlPosition, getControls, getDrawingMode, getFeatureById, getMap, getStyle, loadGeoJson, overrideStyle, remove, revertStyle, setControlPosition, setControls, setDrawingMode, setMap, setStyle,

Eventos: addfeature, click, contextmenu, dblclick, mousedown, mouseout, mouseover, mouseup, removefeature, removeproperty, rightclick, setgeometry, setproperty

Interfaz DataData.DataOptions

Propiedades: controlPosition, controls, drawingMode, featureFactory, map, style

Interfaz de Data.GeoJsonOptions

Propiedades: idPropertyName

Interfaz Data.StyleOptions

Propiedades: animation, clickable, cursor, draggable, editable, fillColor, fillOpacity, icon, icons, label, opacity, shape, strokeColor, strokeOpacity, strokeWeight, title, visible, zIndex

Data.StylingFunction typedef
Clase Data.Feature

Métodos: forEachProperty, getGeometry, getId, getProperty, removeProperty, setGeometry, setProperty y toGeoJson

Eventos: removeproperty, setgeometry, setproperty

Interfaz DataData.FeatureOptions

Propiedades: geometry, id y properties

Interfaz de Data.Geometry

Métodos: forEachLatLng, getType

Clase Data.Point

Métodos: forEachLatLng, get, getType

Clase Data.MultiPoint

Métodos: forEachLatLng, getArray, getAt, getLength, getType

Clase Data.LineString

Métodos: forEachLatLng, getArray, getAt, getLength, getType

Clase Data.MultiLineString

Métodos: forEachLatLng, getArray, getAt, getLength, getType

Clase Data.LinearRing

Métodos: forEachLatLng, getArray, getAt, getLength, getType

Clase Data.Polygon

Métodos: forEachLatLng, getArray, getAt, getLength, getType

Clase Data.MultiPolygon

Métodos: forEachLatLng, getArray, getAt, getLength, getType

Clase Data.GeometryCollection

Métodos: forEachLatLng, getArray, getAt, getLength, getType

Interfaz de Data.MouseEvent

Propiedades: feature

Interfaz Data.AddFeatureEvent

Propiedades: feature

Interfaz Data.RemoveFeatureEvent

Propiedades: feature

Interfaz de Data.SetGeometryEvent

Propiedades: feature, newGeometry y oldGeometry

Interfaz Data.SetPropertyEvent

Propiedades: feature, name, newValue, oldValue

Interfaz de Data.RemovePropertyEvent

Propiedades: feature, name y oldValue

Elementos del DOM

Clase OverlayView

Métodos estáticos: preventMapHitsAndGesturesFrom, preventMapHitsFrom

Métodos: draw, getMap, getPanes, getProjection, onAdd, onRemove, setMap

Interfaz de PanPanes

Propiedades: floatPane, mapPane, markerLayer, overlayLayer, overlayMouseTarget

Interfaz de MapCanvasProjection

Métodos: fromContainerPixelToLatLng, fromDivPixelToLatLng, fromLatLngToContainerPixel, fromLatLngToDivPixel, getVisibleRegion, getWorldWidth

KML

Clase KmlLayer

Métodos: getDefaultViewport, getMap, getMetadata, getStatus, getUrl, getZIndex, setMap, setOptions, setUrl, setZIndex

Eventos: click, defaultviewport_changed, status_changed

Interfaz KmlLayerOptions

Propiedades: clickable, map, preserveViewport, screenOverlays, suppressInfoWindows, url, zIndex

Interfaz de KmlLayerMetadata

Propiedades: author, description, hasScreenOverlays, name, snippet

Constantes de KmlLayerStatus

Constantes: DOCUMENT_NOT_FOUND, DOCUMENT_TOO_LARGE, FETCH_ERROR, INVALID_DOCUMENT, INVALID_REQUEST, LIMITS_EXCEEDED, OK, TIMED_OUT, UNKNOWN

Interfaz de EventKmlMouse

Propiedades: featureData, latLng y pixelOffset

Interfaz de KmlFeatureData

Propiedades: author, description, id, infoWindowHtml, name, snippet

Interfaz de KmlAuthor

Propiedades: email, name y uri

Superposiciones de imágenes

Interfaz de MapType

Propiedades: alt, maxZoom, minZoom, name, projection, radius, tileSize

Métodos: getTile, releaseTile

Interfaz de proyección

Métodos: fromLatLngToPoint, fromPointToLatLng

Clase ImageMapType

Propiedades: alt, maxZoom, minZoom, name, projection, radius, tileSize

Métodos: getOpacity, getTile, releaseTile, setOpacity

Eventos: tilesloaded

Interfaz de ImageMapTypeOptions

Propiedades: alt, getTileUrl, maxZoom, minZoom, name, opacity, tileSize

Clase GroundOverlay

Métodos: getBounds, getMap, getOpacity, getUrl, setMap, setOpacity

Eventos: click, dblclick

Interfaz GroundOverlayOptions

Propiedades: clickable, map y opacity

Clase StyledMapType

Propiedades: alt, maxZoom, minZoom, name, projection, radius, tileSize

Métodos: getTile, releaseTile

Interfaz de styledMapTypeOptions

Propiedades: alt, maxZoom, minZoom, name

Biblioteca de dibujos

Clase DrawingManager

Métodos: getDrawingMode, getMap, setDrawingMode, setMap, setOptions

Eventos: circlecomplete, markercomplete, overlaycomplete, polygoncomplete, polylinecomplete, rectanglecomplete

Interfaz de DrawingManagerOptions

Propiedades: circleOptions, drawingControl, drawingControlOptions, drawingMode, map, markerOptions, polygonOptions, polylineOptions, rectangleOptions

Interfaz de DrawingControlOptions

Propiedades: drawingModes, position

Interfaz OverlayCompleteEvent

Propiedades: overlay, type

Constantes de OverlayType

Constantes: CIRCLE, MARKER, POLYGON, POLYLINE, RECTANGLE

Mapas de calor

Clase HeatmapLayer

Métodos: getData, getMap, setData, setMap, setOptions

Interfaz HeatmapLayerOptions

Propiedades: data, dissipating, gradient, map, maxIntensity, opacity, radius

Interfaz de WeightedLocation

Propiedades: location, weight

Zoom máximo

Clase MaxZoomService

Métodos: getMaxZoomAtLatLng

Interfaz MaxZoomResult

Propiedades: status, zoom

Constantes de MaxZoomStatus

Constantes: ERROR, OK

Street View

Procesamiento

Clase StreetViewPanorama

Propiedades: controls

Métodos: getLinks, getLocation, getMotionTracking, getPano, getPhotographerPov, getPosition, getPov, getStatus, getVisible, getZoom, registerPanoProvider, setLinks, setMotionTracking, setOptions, setPano, setPosition, setPov, setVisible,

Eventos: closeclick, pano_changed, position_changed, pov_changed, resize, status_changed, visible_changed, zoom_changed

Interfaz StreetViewPanoramaOptions

Propiedades: addressControl, addressControlOptions, clickToGo, controlSize, disableDefaultUI, disableDoubleClickZoom, enableCloseButton, fullscreenControl, fullscreenControlOptions, imageDateControl, linksControl, motionTracking, motionTrackingControl, motionTrackingControlOptions, panControl, pov, 2, 2

Interfaz StreetViewAddressControlOptions

Propiedades: position

Interfaz PanoProviderOptions

Propiedades: cors

Interfaz de TileTileData

Propiedades: centerHeading, tileSize y worldSize

Métodos: getTileUrl

Interfaz de StreetViewPov

Propiedades: heading, pitch

Clase StreetViewCoberturaLayer

Métodos: getMap, setMap

Servicio

Clase StreetViewService

Métodos: getPanorama

Constantes StreetViewStatus

Constantes: OK, UNKNOWN_ERROR, ZERO_RESULTS

Interfaz de StreetViewLocationRequest

Propiedades: location, preference, radius, source

Interfaz de StreetViewPanoRequest

Propiedades: pano

Interfaz de StreetViewResponse

Propiedades: data

Interfaz de StreetViewLocation

Propiedades: description, latLng, pano, shortDescription

Constantes StreetViewPreference

Constantes: BEST, NEAREST

Constantes StreetViewSource

Constantes: DEFAULT, OUTDOOR

Interfaz de StreetViewPanoramaData

Propiedades: copyright, imageDate, links, location, tiles

Propiedades: description, heading y pano

Places

Widgets de Places

Clase Autocomplete

Métodos: getBounds, getFields, getPlace, setBounds, setComponentRestrictions, setFields, setOptions y setTypes

Eventos: place_changed

Interfaz de AutocompleteOptions

Propiedades: bounds, componentRestrictions, fields, placeIdOnly, strictBounds, types

Métodos: getBounds, getPlaces, setBounds

Eventos: places_changed

Interfaz de SearchBoxOptions

Propiedades: bounds

Servicio de Places

Clase PlacesService

Métodos: findPlaceFromPhoneNumber, findPlaceFromQuery, getDetails, nearbySearch, textSearch

Interfaz de PlaceDetailsRequest

Propiedades: fields, placeId y sessionToken

Interfaz de FindPlaceFromPhoneNumberRequest

Propiedades: fields, locationBias y phoneNumber

Interfaz de FindPlaceFromQueryRequest

Propiedades: fields, locationBias y query

Interfaz de PlaceSearchRequest

Propiedades: bounds, keyword, location, maxPriceLevel, minPriceLevel, name, openNow, radius, rankBy, type

Interfaz de TextSearchRequest

Propiedades: bounds, location, query, radius, type

Constantes de RankBy

Constantes: DISTANCE, PROMINENCE

LocationBias typedef;
LocationRestriction typedef:
Constantes de PlacesServiceStatus

Constantes: INVALID_REQUEST, NOT_FOUND, OK, OVER_QUERY_LIMIT, REQUEST_DENIED, UNKNOWN_ERROR, ZERO_RESULTS

Interfaz de PlaceSearchPagination

Propiedades: hasNextPage

Métodos: nextPage

Interfaz de PlaceResult

Propiedades: 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, price_level, 2, 2, 2, 2

Interfaz de PlaceAspectRating

Propiedades: rating, type

Constantes de BusinessStatus

Constantes: CLOSED_PERMANENTLY, CLOSED_TEMPORARILY, OPERATIONAL

Interfaz de PlaceGeometry

Propiedades: location, viewport

Interfaz de PlaceOpeningHours

Propiedades: open_now, periods y weekday_text

Métodos: isOpen

Interfaz de PlaceOpeningHoursPeriod

Propiedades: close, open

Interfaz de PlaceOpeningHoursTime

Propiedades: day, hours, minutes, nextDate, time

Interfaz de PlacePlusCode

Propiedades: compound_code, global_code

Interfaz de PlacePhoto

Propiedades: height, html_attributions y width

Métodos: getUrl

Interfaz de PhotoOptions

Propiedades: maxHeight, maxWidth

Interfaz de PlaceReview

Propiedades: aspects, author_name, author_url, language, profile_photo_url, rating, relative_time_description, text, time

Servicio de Place Autocomplete

Clase AutocompleteService

Métodos: getPlacePredictions, getQueryPredictions

Interfaz de AutocompletionRequest

Propiedades: bounds, componentRestrictions, input, location, offset, origin, radius, sessionToken, types

Clase AutocompleteResponse

Propiedades: predictions

Interfaz de QueryAutocompletion

Propiedades: bounds, input, location, offset, radius

Clase AutocompleteSessionToken
Interfaz de ComponentRestrictions

Propiedades: country

Interfaz de AutocompletePrediction

Propiedades: description, distance_meters, matched_substrings, place_id, structured_formatting, terms, types

Interfaz de QueryAutocompletePrediction

Propiedades: description, matched_substrings, place_id, terms

Interfaz de PredictionTerm

Propiedades: offset, value

Interfaz de PredictionSubstring

Propiedades: length, offset

Interfaz de formato estructurado

Propiedades: main_text, main_text_matched_substrings y secondary_text

Geocoder

Clase de geocodificador

Métodos: geocode

Interfaz de GeocoderRequest

Propiedades: address, bounds, componentRestrictions, location, placeId, region

Interfaz de GeoCoderComponentRestrictions

Propiedades: administrativeArea, country, locality, postalCode, route

Constantes de GeocoderStatus

Constantes: ERROR, INVALID_REQUEST, OK, OVER_QUERY_LIMIT, REQUEST_DENIED, UNKNOWN_ERROR, ZERO_RESULTS

Interfaz de GeocoderResponse

Propiedades: results

Interfaz de GeocoderResult

Propiedades: address_components, formatted_address, geometry, partial_match, place_id, plus_code, postcode_localities, types

Interfaz de GeoCoderAddressComponent

Propiedades: long_name, short_name y types

Interfaz de GeoGeorGeometry

Propiedades: bounds, location, location_type, viewport

Constantes de GeocoderLocationType

Constantes: APPROXIMATE, GEOMETRIC_CENTER, RANGE_INTERPOLATED, ROOFTOP

Routes

Directions

Clase DirectionsService

Métodos: route

Interfaz de DirectionsRequest

Propiedades: avoidFerries, avoidHighways, avoidTolls, destination, drivingOptions, optimizeWaypoints, origin, provideRouteAlternatives, region, transitOptions, travelMode, unitSystem, waypoints

Constantes de DirectionsStatus

Constantes: INVALID_REQUEST, MAX_WAYPOINTS_EXCEEDED, NOT_FOUND, OK, OVER_QUERY_LIMIT, REQUEST_DENIED, UNKNOWN_ERROR, ZERO_RESULTS

Interfaz de DirectionsResult

Propiedades: available_travel_modes, geocoded_waypoints y routes

Clase DirectionsRenderer

Métodos: getDirections, getMap, getPanel, getRouteIndex, setDirections, setMap, setOptions, setPanel, setRouteIndex

Eventos: directions_changed

Interfaz DirectionsRendererOptions

Propiedades: directions, draggable, hideRouteList, infoWindow, map, markerOptions, panel, polylineOptions, preserveViewport, routeIndex, suppressBicyclingLayer, suppressInfoWindows, suppressMarkers, suppressPolylines

Interfaz de DirectionsWaypoint

Propiedades: location, stopover

Interfaz de DirectionsGeocodedWaypoint

Propiedades: partial_match, place_id y types

Interfaz de DirectionsRoute

Propiedades: bounds, copyrights, fare, legs, overview_path, overview_polyline, summary, warnings, waypoint_order

Interfaz DirectionsLeg

Propiedades: arrival_time, departure_time, distance, duration, duration_in_traffic, end_address, end_location, start_address, start_location, steps, traffic_speed_entry, via_waypoints

Interfaz de DirectionsStep

Propiedades: distance, duration, encoded_lat_lngs, end_location, end_point, instructions, lat_lngs, maneuver, path, polyline, start_location, start_point, steps, transit, transit_details, travel_mode

Interfaz de PolyPolyline

Propiedades: points

Interfaz de lugar

Propiedades: location, placeId y query

Constantes de TravelMode

Constantes: BICYCLING, DRIVING, TRANSIT, WALKING

Interfaz de DrivingOptions

Propiedades: departureTime, trafficModel

Constantes de TrafficModel

Constantes: BEST_GUESS, OPTIMISTIC, PESSIMISTIC

Interfaz de TransitOptions

Propiedades: arrivalTime, departureTime, modes, routingPreference

Constantes de TransitMode

Constantes: BUS, RAIL, SUBWAY, TRAIN, TRAM

Constantes de TransitRoutePreference

Constantes: FEWER_TRANSFERS, LESS_WALKING

Interfaz de Transit Fare

Propiedades: currency, value

Interfaz de TransitDetails

Propiedades: arrival_stop, arrival_time, departure_stop, departure_time, headsign, headway, line, num_stops, trip_short_name

Interfaz de TransitStop

Propiedades: location, name

Interfaz de TransitLine

Propiedades: agencies, color, icon, name, short_name, text_color, url, vehicle

Interfaz de TransitAgency

Propiedades: name, phone y url

Interfaz de TransitVehicle

Propiedades: icon, local_icon, name, type

Constantes de VehicleType

Constantes: 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

Constantes de SystemSystem

Constantes: IMPERIAL, METRIC

Interfaz de distancia

Propiedades: text, value

Interfaz de duración

Propiedades: text, value

Interfaz de tiempo

Propiedades: text, time_zone y value

Distance Matrix

Clase DistanceMatrixService

Métodos: getDistanceMatrix

Interfaz DistanceMatrixRequest

Propiedades: avoidFerries, avoidHighways, avoidTolls, destinations, drivingOptions, origins, region, transitOptions, travelMode, unitSystem

Interfaz de DistanceMatrixResponse

Propiedades: destinationAddresses, originAddresses y rows

Interfaz de DistanceMatrixResponseRow

Propiedades: elements

Interfaz de DistanceMatrixResponseElement

Propiedades: distance, duration, duration_in_traffic, fare, status

Constantes de DistanceMatrixStatus

Constantes: INVALID_REQUEST, MAX_DIMENSIONS_EXCEEDED, MAX_ELEMENTS_EXCEEDED, OK, OVER_QUERY_LIMIT, REQUEST_DENIED, UNKNOWN_ERROR

Constantes de DistanceMatrixElementStatus

Constantes: NOT_FOUND, OK, ZERO_RESULTS

Elevation

Clase ElevationService

Métodos: getElevationAlongPath, getElevationForLocations

Interfaz LocationElevationRequest

Propiedades: locations

Interfaz de LocationElevationResponse

Propiedades: results

Interfaz PathElevationRequest

Propiedades: path, samples

Interfaz PathElevationResponse

Propiedades: results

Interfaz de ElevationResult

Propiedades: elevation, location y resolution

Constantes de ElevationStatus

Constantes: INVALID_REQUEST, OK, OVER_QUERY_LIMIT, REQUEST_DENIED, UNKNOWN_ERROR

Contexto local (beta)

Vista del mapa

Clase LocalContextMapView

Propiedades: directionsOptions, element, isTransitioningMapBounds, locationBias, locationRestriction, maxPlaceCount, placeTypePreferences

Métodos: addListener, hidePlaceDetailsView, search

Eventos: error, placedetailsviewhidestart, placedetailsviewshowstart

Interfaz de LocalContextMapViewOptions

Propiedades: directionsOptions, element, locationBias, locationRestriction, map, maxPlaceCount, pinOptionsSetup, placeChooserViewSetup, placeDetailsViewSetup, placeTypePreferences

PlaceTypePreference typedef.
Clase MapDirectionsOptions

Métodos: addListener

Interfaz de MapDirectionsOptionsLiteral

Propiedades: origin

Interfaz PinOptions

Propiedades: background, glyphColor y scale

Interfaz de PlaceChooserViewSetupOptions

Propiedades: layoutMode, position

Constantes de PlaceChooserLayoutMode

Constantes: HIDDEN, SHEET

Constantes de PlaceChooserPosition

Constantes: BLOCK_END, INLINE_END, INLINE_START

Interfaz de PlaceDetailsViewSetupOptions

Propiedades: hidesOnMapClick, layoutMode y position

Constantes de PlaceDetailsLayoutMode

Constantes: INFO_WINDOW, SHEET

Constantes de PlaceDetailsPosition

Constantes: INLINE_END, INLINE_START

Viajes compartidos (beta)

Vista del mapa

>Clase JourneySharingMapView

Propiedades: anticipatedRoutePolylines, anticipatedRoutePolylineSetup, automaticViewportMode, destinationMarkers, destinationMarkerSetup, element, enableTraffic, locationProvider, map, mapOptions, originMarkers, originMarkerSetup, pingMarkerSetup, successfulTaskMarkers, successfulTaskMarkerSetup, takenRoutePolylines, 2, 2, 2

>Interfaz JourneySharingMapViewOptions

Propiedades: anticipatedRoutePolylineSetup, automaticViewportMode, destinationMarkerSetup, element, locationProvider, mapOptions, originMarkerSetup, pingMarkerSetup, successfulTaskMarkerSetup, takenRoutePolylineSetup, taskOutcomeMarkerSetup, unsuccessfulTaskMarkerSetup, vehicleMarkerSetup, waypointMarkerSetup

>Constantes de AutoViewportMode

Constantes: FIT_ANTICIPATED_ROUTE, NONE

>Clase LocationProvider

Métodos: addListener

Autenticación

>Interfaz AuthToken

Propiedades: expiresInSeconds, token

>Interfaz AuthTokenContext

Propiedades: deliveryVehicleId, taskId, trackingId, tripId, vehicleId

>AuthTokenFetcher typedef
>Interfaz AuthTokenFetcherOptions

Propiedades: context, serviceType

>Constantes de FleetEngineServiceType

Constantes: DELIVERY_VEHICLE_SERVICE, TASK_SERVICE, TRIP_SERVICE, UNKNOWN_SERVICE

Personalización de la IU

>PolylineSetup typedef
>Interfaz PolylineSetupOptions

Propiedades: polylineOptions, visible

">Interfaz DefaultPolylineSetupOptions

Propiedades: defaultPolylineOptions, defaultVisible

">MarkerSetup typedef
>Interfaz MarkerSetupOptions

Propiedades: markerOptions

">Interfaz DefaultMarkerSetupOptions

Propiedades: defaultMarkerOptions

Entidades de Fleet Engine

">Interfaz de la tarea

Propiedades: estimatedCompletionTime, latestVehicleLocationUpdate, name, outcome, outcomeLocation, outcomeLocationSource, outcomeTime, plannedLocation, remainingVehicleJourneySegments, status, trackingId, type, vehicleId

">Interfaz de viaje

Propiedades: actualDropOffLocation, actualPickupLocation, dropOffTime, latestVehicleLocationUpdate, name, passengerCount, pickupTime, plannedDropOffLocation, plannedPickupLocation, remainingWaypoints, status, type, vehicleId

>Interfaz de DeliveryVehicle

Propiedades: currentRouteSegmentEndPoint, latestVehicleLocationUpdate, name, navigationStatus, remainingDistanceMeters, remainingDurationMillis, remainingVehicleJourneySegments

">Interfaz VehicleJourneySegment

Propiedades: distanceMeters, durationMillis, extraDurationMillis, location, path

">Interfaz VehicleLocationUpdate

Propiedades: heading, location, speedKilometersPerHour, time

>Interfaz de VehicleWaypoint

Propiedades: distanceMeters, durationMillis, location, path

Progreso del viaje y pedido

>Clase FleetEngineTripLocationProvider

Propiedades: tripId

Métodos: refresh

Eventos: error, update

">Interfaz FleetEngineTripLocationProviderOptions

Propiedades: authTokenFetcher, pollingIntervalMillis, projectId, tripId

>Interfaz FleetEngineTripLocationProviderUpdateEvent

Propiedades: trip

Seguimiento de la flota

>Clase FleetEngineDeliveryVehicleLocationProvider

Propiedades: deliveryVehicleId, shouldShowOutcomeLocations, shouldShowTasks, staleLocationThresholdMillis, taskFilterOptions

Eventos: error, update

">Interfaz FleetEngineDeliveryVehicleLocationProviderOptions

Propiedades: authTokenFetcher, deliveryVehicleId, pollingIntervalMillis, projectId, shouldShowOutcomeLocations, shouldShowTasks, staleLocationThresholdMillis, taskFilterOptions

>Interfaz FleetEngineDeliveryVehicleFilterOptions

Propiedades: requiredAttributes

>Interfaz FleetEngineTaskFilterOptions

Propiedades: completionTimeFrom, completionTimeTo y state

>Interfaz FleetEngineDeliveryVehicleLocationProviderUpdateEvent

Propiedades: completedVehicleJourneySegments, deliveryVehicle y tasks

>Clase FleetEngineDeliveryFleetLocationProvider

Propiedades: deliveryVehicleFilterOptions, locationRestriction, pollingIntervalMillis, staleLocationThresholdMillis

Eventos: update

">Interfaz FleetEngineDeliveryFleetLocationProviderOptions

Propiedades: authTokenFetcher, deliveryVehicleFilterOptions, locationRestriction, projectId, staleLocationThresholdMillis

>Interfaz FleetEngineDeliveryFleetLocationProviderUpdateEvent

Propiedades: deliveryVehicles

Seguimiento del envío

>Clase FleetEngineShipmentLocationProvider

Propiedades: trackingId

Métodos: getTask, refresh

Eventos: error, update

>Interfaz FleetEngineShipmentLocationProviderOptions

Propiedades: authTokenFetcher, pollingIntervalMillis, projectId, trackingId

>Interfaz FleetEngineShipmentLocationProviderUpdateEvent

Propiedades: task

Configuración global (beta)

Configuración

>Clase de configuración

Métodos estáticos: ">getInstance

Propiedades: ">experienceIds