LocationInfo
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Ein Standort mit zusätzlichen Kennzeichnungen.
JSON-Darstellung |
{
"point": {
object (LatLng )
},
"place": string,
"pointLocationSource": enum (PointSource )
} |
Felder |
point |
object (LatLng )
Die Koordinaten des Standorts. Es muss entweder point oder place als Eingabe angegeben werden. Wenn beide angegeben sind, wird point für das Routing und place für Metadaten verwendet. Wenn nur place als Eingabe angegeben ist, wird point anhand von place berechnet und in die Ausgabe eingeschlossen.
|
place |
string
Der Ressourcenname des Orts, der diesen Standort darstellt. Das Format dafür ist places/{place_id} . Es muss entweder point oder place als Eingabe angegeben werden. Wenn beide angegeben sind, wird point für das Routing und place für Metadaten verwendet. place ist nur dann in der Ausgabe enthalten, wenn es in der Eingabe enthalten war. Das bedeutet, dass keine place -Suche von LatLng durchgeführt wird. Dies ist eine experimentelle Funktion.
|
pointLocationSource |
enum (PointSource )
Nur Ausgabe. Die Quelle des Felds „latlng“ point . Dies ist Teil einer experimentellen Funktion.
|
PointSource
Gibt die Quelle einer LatLng
an.
Enums |
POINT_SOURCE_UNSPECIFIED |
Punktquelle nicht angegeben. |
POINT_SOURCE_DEVELOPER_PROVIDED |
Die LatLng wurde vom Entwickler ausdrücklich angegeben. |
POINT_SOURCE_CALCULATED_FROM_PLACE |
Der LatLng wurde anhand des angegebenen Orts berechnet. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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. |"]]