Classe MapsNetworkError
Classe
google.maps.MapsNetworkError
Classe base para gerenciar erros de rede no Maps.
Essa classe estende
Error
.
Acesse chamando const {MapsNetworkError} = await google.maps.importLibrary("core")
. Consulte Bibliotecas na API Maps JavaScript.
Propriedades | |
---|---|
code |
Tipo:
DirectionsStatus|DistanceMatrixStatus|ElevationStatus|GeocoderStatus|MaxZoomStatus|PlacesServiceStatus|StreetViewStatus Identifica o tipo de erro produzido pela API. |
endpoint |
Representa o serviço de rede que respondeu com o erro. |
Classe MapsRequestError
Classe
google.maps.MapsRequestError
Representa um erro de solicitação de um serviço da Web (ou seja, o equivalente a um código 4xx no HTTP).
Essa classe estende
MapsNetworkError
.
Acesse chamando const {MapsRequestError} = await google.maps.importLibrary("core")
. Consulte Bibliotecas na API Maps JavaScript.
Propriedades | |
---|---|
Herdado:
code ,
endpoint
|
Classe MapsServerError
Classe
google.maps.MapsServerError
Representa um erro do servidor de um serviço da Web (ou seja, o equivalente a um código 5xx no HTTP).
Essa classe estende
MapsNetworkError
.
Acesse chamando const {MapsServerError} = await google.maps.importLibrary("core")
. Consulte Bibliotecas na API Maps JavaScript.
Propriedades | |
---|---|
Herdado:
code ,
endpoint
|
Constantes MapsNetworkErrorEndpoint
Constantes
google.maps.MapsNetworkErrorEndpoint
Identificadores de endpoints da API usados por instâncias de MapsNetworkError
.
Acesse chamando const {MapsNetworkErrorEndpoint} = await google.maps.importLibrary("core")
. Consulte Bibliotecas na API Maps JavaScript.
Constantes | |
---|---|
DIRECTIONS_ROUTE |
Identifica a API Routes na API Directions. |
DISTANCE_MATRIX |
Identifica a API DistanceMatrix. |
ELEVATION_ALONG_PATH |
Identifica a API getElevationsAlongPath na API Elevation. |
ELEVATION_LOCATIONS |
Identifica a API getElevationForLocations na API Elevation. |
FLEET_ENGINE_GET_DELIVERY_VEHICLE |
Identifica a API Get DeliveryVehicle no Fleet Engine. |
FLEET_ENGINE_GET_TRIP |
Identifica a API Get Trip no Fleet Engine. |
FLEET_ENGINE_GET_VEHICLE |
Identifica a API Get Vehicle no Fleet Engine. |
FLEET_ENGINE_LIST_DELIVERY_VEHICLES |
Identifica a API List DeliveryVehicles no Fleet Engine. |
FLEET_ENGINE_LIST_TASKS |
Identifica a API List Tasks no Fleet Engine. |
FLEET_ENGINE_LIST_VEHICLES |
Identifica a API List Vehicles no Fleet Engine. |
FLEET_ENGINE_SEARCH_TASKS |
Identifica a API Search Tasks no Fleet Engine. |
GEOCODER_GEOCODE |
Identifica a API de geocodificação no Geocoder. |
MAPS_MAX_ZOOM |
Identifica a API MaximumZoomImageryService na API Maps. |
PLACES_AUTOCOMPLETE |
Identifica a API Autocomplete na API Places. |
PLACES_DETAILS |
Identifica a API Details na API Places. |
PLACES_FIND_PLACE_FROM_PHONE_NUMBER |
Identifica a API findPlaceFromPhoneNumber na API Places. |
PLACES_FIND_PLACE_FROM_QUERY |
Identifica a API findPlaceFromQuery na API Places. |
PLACES_GATEWAY |
Identifica a API Gateway na API Places. |
PLACES_GET_PLACE |
Identifica a API Get Place na API Places. |
PLACES_LOCAL_CONTEXT_SEARCH |
Identifica a API LocalContextSearch na API Places. |
PLACES_NEARBY_SEARCH |
Identifica a API NearbySearch na API Places. |
PLACES_SEARCH_TEXT |
Identifica a API Search Text na API Places. |
STREETVIEW_GET_PANORAMA |
Identifica o método getPanorama no serviço do Street View. |