LocationInfo
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Un emplacement avec des identifiants supplémentaires.
Représentation JSON |
{
"point": {
object (LatLng )
},
"place": string,
"pointLocationSource": enum (PointSource )
} |
Champs |
point |
object (LatLng )
Coordonnées du lieu. Vous devez spécifier point ou place comme entrée. Si les deux sont spécifiés, point est utilisé pour l'acheminement et place pour les métadonnées. Si seul place est spécifié en entrée, point est calculé à partir de place et inclus dans la sortie.
|
place |
string
Nom de la ressource du lieu qui représente cet emplacement. Il a le format suivant : places/{place_id} . Vous devez spécifier point ou place comme entrée. Si les deux sont spécifiés, point est utilisé pour l'acheminement et place pour les métadonnées. place n'est inclus dans la sortie que s'il était inclus dans l'entrée. Cela signifie qu'aucune recherche place à partir de LatLng n'est effectuée. Cette fonctionnalité est expérimentale.
|
pointLocationSource |
enum (PointSource )
Uniquement en sortie. Source du champ point latlng. Il s'agit d'une fonctionnalité expérimentale.
|
PointSource
Indique la source d'un LatLng
.
Enums |
POINT_SOURCE_UNSPECIFIED |
Source ponctuelle non spécifiée. |
POINT_SOURCE_DEVELOPER_PROVIDED |
Le LatLng a été fourni explicitement par le développeur. |
POINT_SOURCE_CALCULATED_FROM_PLACE |
La LatLng a été calculée à partir du lieu fourni. |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eLocation is represented in JSON format using a \u003ccode\u003epoint\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epoint\u003c/code\u003e object contains latitude and longitude coordinates within a \u003ccode\u003eLatLng\u003c/code\u003e object, providing geographical location data.\u003c/p\u003e\n"]]],[],null,["- [JSON representation](#SCHEMA_REPRESENTATION)\n- [PointSource](#PointSource)\n\nA location with any additional identifiers.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"point\": { object (/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/LatLng) }, \"place\": string, \"pointLocationSource\": enum (/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/LocationInfo#PointSource) } ``` |\n\n| Fields ||\n|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `point` | `object (`[LatLng](/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/LatLng)`)` The location's coordinates. Either `point` or `place` must be specified as input. If both are specified, `point` will be used for routing and `place` will be used for metadata. If only `place` is specified as input, `point` will be calculated from the `place` and included in the output. |\n| `place` | `string` The resource name of the place that represents this location. The format is `places/{place_id}`. Either `point` or `place` must be specified as input. If both are specified, `point` will be used for routing and `place` will be used for metadata. `place` is only included in the output if it was included in the input, meaning that there is no `place` lookup from `LatLng` performed. This is an experimental feature. |\n| `pointLocationSource` | `enum (`[PointSource](/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/LocationInfo#PointSource)`)` Output only. The source of the latlng `point` field. This is part of an experimental feature. |\n\nPointSource Indicates the source of a `LatLng`.\n\n| Enums ||\n|--------------------------------------|--------------------------------------------------------|\n| `POINT_SOURCE_UNSPECIFIED` | Point source unspecified. |\n| `POINT_SOURCE_DEVELOPER_PROVIDED` | The `LatLng` was explicitly provided by the developer. |\n| `POINT_SOURCE_CALCULATED_FROM_PLACE` | The `LatLng` was calculated from the provided place. |"]]