GeoCoordinates
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Dane geograficzne lokalizacji, w tym szerokość i długość geograficzna oraz adres.
Zapis JSON |
{
"latitude": number,
"longitude": number,
// Union field addresses can be only one of the following:
"address": {
object (PostalAddress )
},
"unstructuredAddress": string
// End of list of possible types for union field addresses .
} |
Pola |
latitude |
number
Szerokość geograficzna w stopniach. (opcjonalnie)
|
longitude |
number
Długość geograficzna w stopniach. (opcjonalnie)
|
Pole sumy addresses . Adres lokalizacji może być uporządkowany lub nieuporządkowany. addresses może mieć tylko jedną z tych wartości: |
address |
object (PostalAddress )
Preferowany adres pocztowy lokalizacji.
|
unstructuredAddress |
string
Jako adres zastępczy można też podać nieuporządkowany adres. np. „1600 Amphitheatre Parkway, Mountain View, CA 94043”
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003eThe Geo data of a location includes latitude, longitude, and address, represented in JSON format.\u003c/p\u003e\n"],["\u003cp\u003eAddress can be provided in a structured format using \u003ccode\u003eaddress\u003c/code\u003e field (PostalAddress object) or an unstructured format using \u003ccode\u003eunstructuredAddress\u003c/code\u003e field (string).\u003c/p\u003e\n"],["\u003cp\u003eLatitude and longitude are represented as numbers in degrees and are optional fields within the Geo data.\u003c/p\u003e\n"]]],[],null,["# GeoCoordinates\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nThe Geo data of a location, including latitude, longitude, and address.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"latitude\": number, \"longitude\": number, // Union field `addresses` can be only one of the following: \"address\": { object (/maps-booking/reference/maps-booking-api/rest/v1alpha/PostalAddress) }, \"unstructuredAddress\": string // End of list of possible types for union field `addresses`. } ``` |\n\n| Fields ||\n|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| `latitude` | `number` Latitude in degrees. (optional) |\n| `longitude` | `number` Longitude in degrees. (optional) |\n| Union field `addresses`. Address for a location, could either be structured or unstructured. `addresses` can be only one of the following: ||\n| `address` | `object (`[PostalAddress](/maps-booking/reference/maps-booking-api/rest/v1alpha/PostalAddress)`)` Postal address of the location, preferred. |\n| `unstructured``Address` | `string` An unstructured address could also be provided as a fallback. E.g. \"1600 amphitheatre parkway mountain view, ca 94043\" |"]]