Geocoding API
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
آدرس ها را به مختصات جغرافیایی (ژئوکدینگ) تبدیل کنید، که می توانید از آنها برای قرار دادن نشانگرها یا موقعیت نقشه استفاده کنید. این API همچنین به شما امکان می دهد مختصات جغرافیایی را به یک آدرس تبدیل کنید (ژئوکدینگ معکوس).
خدمات: geocoding-backend.googleapis.com
اگر برنامه شما نیاز به استفاده از کتابخانه های خود برای فراخوانی این سرویس دارد، هنگام درخواست API از اطلاعات زیر استفاده کنید.
سند کشف
Discovery Document یک ویژگی قابل خواندن توسط ماشین برای توصیف و مصرف API های REST است. از آن برای ساخت کتابخانه های سرویس گیرنده، پلاگین های IDE و سایر ابزارهایی که با Google API در تعامل هستند استفاده می شود. یک سرویس ممکن است چندین سند کشف را ارائه دهد. این سرویس اسناد کشف زیر را ارائه می دهد:
نقطه پایان خدمات
نقطه پایانی سرویس یک URL پایه است که آدرس شبکه یک سرویس API را مشخص می کند. یک سرویس ممکن است چندین نقطه پایانی سرویس داشته باشد. این سرویس دارای نقطه پایانی سرویس زیر است و همه URI های زیر مربوط به این نقطه پایانی سرویس هستند:
-
https://geocode.googleapis.com
روش ها |
---|
geocodeAddress | GET /v4beta/geocode/address این روش یک ژئوکد آدرس را انجام می دهد که یک آدرس را به یک LatLng نگاشت می کند. |
geocodeAddressQuery | GET /v4beta/geocode/address/{addressQuery} این روش یک ژئوکد آدرس را انجام می دهد که یک آدرس را به یک LatLng نگاشت می کند. |
روش ها |
---|
geocodeLocation | GET /v4beta/geocode/location این روش یک ژئوکد مکان را انجام می دهد که یک LatLng را به یک آدرس نگاشت می کند. |
geocodeLocationQuery | GET /v4beta/geocode/location/{locationQuery} این روش یک ژئوکد مکان را انجام می دهد که یک LatLng را به یک آدرس نگاشت می کند. |
روش ها |
---|
geocodePlace | GET /v4beta/geocode/{place=places/*} این روش جستجوی ژئوکد را با استفاده از شناسه مکان انجام می دهد. |
روش ها |
---|
searchDestinations | POST /v4alpha/geocode/destinations این روش جستجوی مقصد را انجام می دهد و لیستی از مقصدها را برمی گرداند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-13 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-13 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Geocoding API\n\nConvert addresses into geographic coordinates (geocoding), which you can use to place markers or position the map. This API also allows you to convert geographic coordinates into an address (reverse geocoding).\n\n- [REST Resource: v4beta.geocode.address](#v4beta.geocode.address)\n- [REST Resource: v4beta.geocode.location](#v4beta.geocode.location)\n- [REST Resource: v4beta.geocode.places](#v4beta.geocode.places)\n- [REST Resource: v4alpha.geocode.destinations](#v4alpha.geocode.destinations)\n\nService: geocoding-backend.googleapis.com\n-----------------------------------------\n\nIf your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:\n\n- \u003chttps://geocoding-backend.googleapis.com/$discovery/rest?version=v4beta\u003e\n- \u003chttps://geocoding-backend.googleapis.com/$discovery/rest?version=v4alpha\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://geocode.googleapis.com`\n\nREST Resource: [v4beta.geocode.address](/maps/documentation/geocoding/reference/rest/v4beta/geocode.address)\n------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [geocodeAddress](/maps/documentation/geocoding/reference/rest/v4beta/geocode.address/geocodeAddress) | `GET /v4beta/geocode/address` This method performs an address geocode, which maps an address to a LatLng. |\n| [geocodeAddressQuery](/maps/documentation/geocoding/reference/rest/v4beta/geocode.address/geocodeAddressQuery) | `GET /v4beta/geocode/address/{addressQuery}` This method performs an address geocode, which maps an address to a LatLng. |\n\nREST Resource: [v4beta.geocode.location](/maps/documentation/geocoding/reference/rest/v4beta/geocode.location)\n--------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| [geocodeLocation](/maps/documentation/geocoding/reference/rest/v4beta/geocode.location/geocodeLocation) | `GET /v4beta/geocode/location` This method performs a location geocode, which maps a LatLng to an address. |\n| [geocodeLocationQuery](/maps/documentation/geocoding/reference/rest/v4beta/geocode.location/geocodeLocationQuery) | `GET /v4beta/geocode/location/{locationQuery}` This method performs a location geocode, which maps a LatLng to an address. |\n\nREST Resource: [v4beta.geocode.places](/maps/documentation/geocoding/reference/rest/v4beta/geocode.places)\n----------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| [geocodePlace](/maps/documentation/geocoding/reference/rest/v4beta/geocode.places/geocodePlace) | `GET /v4beta/geocode/{place=places/*}` This method performs a geocode lookup using a place ID. |\n\nREST Resource: [v4alpha.geocode.destinations](/maps/documentation/geocoding/reference/rest/v4alpha/geocode.destinations)\n------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------|\n| [searchDestinations](/maps/documentation/geocoding/reference/rest/v4alpha/geocode.destinations/searchDestinations) | `POST /v4alpha/geocode/destinations` This method performs a destination lookup and returns a list of destinations. |"]]