जगहों को खोजने और उनके बारे में ज़्यादा जानकारी पाने के लिए, Maps SDK for iOS के साथ Places SDK for iOS और Geocoding API का इस्तेमाल किया जा सकता है. जगह के आईडी पाने के लिए, Places SDK for iOS और Geocoding API बेहतर और भरोसेमंद विकल्प हैं. अगर आपने पहले से ही जगह के आईडी का इस्तेमाल किया है, तो सीमाओं के लिए डेटा पर आधारित स्टाइलिंग के साथ उन आईडी का फिर से इस्तेमाल किया जा सकता है.
Maps SDK for iOS ऐप्लिकेशन में, Places और Geocoding को इन तरीकों से जोड़ा जा सकता है:
Places SDK for iOS, एचटीटीपी अनुरोधों का इस्तेमाल करके जगहों की जानकारी देता है.
CLGeocoder क्लास, उपयोगकर्ता के इनपुट के आधार पर जियोकोड और रिवर्स जियोकोड कर सकती है.
Geocoding API की मदद से, स्टैटिक और जाने-पहचाने पतों को जियोकोड किया जा सकता है.
Places API का इस्तेमाल करना
Places API Text
Search, किसी स्ट्रिंग के आधार पर जगहों के सेट के बारे में जानकारी दिखाता है. उदाहरण के लिए, "न्यूयॉर्क में पिज़्ज़ा", "ओटावा के आस-पास जूते की दुकानें" या "123 मेन स्ट्रीट". यह सेवा, टेक्स्ट स्ट्रिंग और सेट की गई किसी भी जगह के हिसाब से, मिलती-जुलती जगहों की सूची दिखाती है.
किसी इलाके के लिए, जगह की जानकारी का डेटा भी काम का होता है. उदाहरण के लिए:
जगह के नामों के आधार पर, सीमा के प्लेस आईडी खोजें.
किसी सीमा पर ज़ूम करने के लिए व्यूपोर्ट पाएं.
सीमा के लिए सुविधा का टाइप पाएं. उदाहरण के लिए, इलाका.
फ़ॉर्मैट किया गया पता पाएं. अमेरिका में यह "जगह का नाम, राज्य,
देश" के तौर पर दिखता है. उदाहरण के लिए, "किर्कलैंड, वॉशिंगटन, अमेरिका".
फ़ोटो जैसे अन्य काम का डेटा पाएं.
Geocoding API का इस्तेमाल करना
Geocoding API की मदद से, किसी पते, अक्षांश और देशांतर निर्देशांक या जगह के आईडी को भौगोलिक निर्देशांकों में बदला जा सकता है. इसके अलावा, भौगोलिक निर्देशांकों को पते, अक्षांश और देशांतर निर्देशांक या जगह के आईडी में भी बदला जा सकता है. सीमाओं के लिए डेटा पर आधारित स्टाइलिंग के साथ इनका इस्तेमाल किया जा सकता है:
किसी इलाके के व्यूपोर्ट की जानकारी पाने के लिए, जियोकोडिंग का इस्तेमाल करें.
राज्य, ज़िला, तहसील, गांव, शहर, पिन कोड वगैरह के प्लेस आईडी पाने के लिए, अपने जियोकोडिंग कॉल में कॉम्पोनेंट फ़िल्टरिंग लागू करें.
अक्षांश और देशांतर निर्देशांकों के हिसाब से जगह के आईडी ढूंढने के लिए, रिवर्स जियोकोडिंग का इस्तेमाल करें. इसके अलावा, किसी जगह के सभी कॉम्पोनेंट के लिए भी जगह के आईडी पाए जा सकते हैं.
इस उदाहरण में, जियोकोडिंग एपीआई से अनुरोध करने के लिए, पते (यूआरएल-एस्केप किया गया) का इस्तेमाल किया गया है:
जगह के आईडी ढूंढने के लिए, रिवर्स जियोकोडिंग का इस्तेमाल किया जा सकता है. जियोकोडिंग सेवा का यह उदाहरण, दिए गए अक्षांश और देशांतर निर्देशांकों के हिसाब से, पते के सभी कॉम्पोनेंट के लिए जगह के आईडी दिखाता है:
किसी जगह के पते के कॉम्पोनेंट का पता लगाने के लिए, कॉम्पोनेंट फ़िल्टर करने की सुविधा के साथ रिवर्स जियोकोडिंग का इस्तेमाल करें. ऐसा इन टाइप में से किसी एक या उससे ज़्यादा के लिए किया जा सकता है:
administrativeArea
country
locality
postalCode
schoolDistrict
यहां दिए गए उदाहरण में, Geocoding सेवा का इस्तेमाल करके, पते के सभी कॉम्पोनेंट को वापस पाने के लिए, रिवर्स जियोकोडिंग के साथ कॉम्पोनेंट की पाबंदियां जोड़ने का तरीका दिखाया गया है. ऐसा locality टाइप के लिए, तय की गई जगह पर किया जाता है:
[null,null,["आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eYou can search for and get information about regions using the Places SDK for iOS and the Geocoding API with the Maps SDK for iOS.\u003c/p\u003e\n"],["\u003cp\u003eThe Places API Text Search and Autocomplete service enable searching for regions based on text strings and user input.\u003c/p\u003e\n"],["\u003cp\u003ePlace Details provide comprehensive information about regions, including boundary place IDs, viewport for zooming, and feature type.\u003c/p\u003e\n"],["\u003cp\u003eThe Geocoding API facilitates converting addresses and coordinates into geographic coordinates and vice-versa, useful for retrieving viewport, place IDs, and address components.\u003c/p\u003e\n"],["\u003cp\u003eReverse geocoding with the Geocoding API allows finding place IDs based on latitude and longitude coordinates and applying component filtering for specific address types.\u003c/p\u003e\n"]]],[],null,["Select platform: [Android](/maps/documentation/android-sdk/dds-boundaries/dds-use-maps-places-apis \"View this page for the Android platform docs.\") [iOS](/maps/documentation/ios-sdk/dds-boundaries/dds-use-maps-places-apis \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/dds-boundaries/dds-use-maps-places-apis \"View this page for the JavaScript platform docs.\")\n\n\u003cbr /\u003e\n\n**European Economic Area (EEA) developers** If your billing address is in the European Economic Area, effective on 8 July 2025, the [Google Maps Platform EEA Terms of Service](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. Functionality varies by region. [Learn more](/maps/comms/eea/faq).\n\nYou can use the Places SDK for iOS and the\nGeocoding API with the Maps SDK for iOS to\nsearch for regions, and get more information about places. The\nPlaces SDK for iOS and Geocoding API\nare powerful and stable alternatives for obtaining [place\nIDs](/maps/documentation/places/ios-sdk/place-id). If you're already using place\nIDs, you can reuse those IDs with data-driven styling for boundaries.\n\nAdd Places and Geocoding to your Maps SDK for iOS apps in the following ways:\n\n- [Places SDK for iOS](/maps/documentation/places/ios-sdk) returns information about places using HTTP requests.\n- [CLGeocoder](https://developer.apple.com/documentation/corelocation/clgeocoder) class can geocode and reverse geocode dynamically from user input.\n- [Geocoding API](/maps/documentation/geocoding) lets you geocode static, known addresses.\n\n| **Note:** The [Places SDK for iOS](/maps/documentation/places/ios-sdk) and Geocoding API must be enabled, and are billed separately from the Maps SDK for iOS.\n\nUse the Places API\n\n- The [Places API Text\n Search](/maps/documentation/places/web-service/text-search) returns\n information about a set of places based on a string --- for example \"pizza in\n New York\" or \"shoe stores near Ottawa\" or \"123 Main Street\". The service\n responds with a list of places matching the text string and any location\n bias that has been set.\n\n- The [Places Autocomplete](/maps/documentation/places/ios-sdk/autocomplete#restrict_results_to_a_specific_region) service provides a convenient\n way to let your users search for regions. To display results within the\n defined region, set `locationRestriction` on\n [`GMSAutocompleteFilter`](/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSAutocompleteFilter).\n\nGet place details for a region\n\n- The [Place Details](/maps/documentation/places/ios-sdk/place-details) data\n for a region is also effective. For example, you can:\n\n - Search for boundary place IDs based on place names.\n - Get the viewport for zooming to a boundary.\n - Get the feature type for the boundary (for example locality).\n - Get the formatted address, which resolves to \"Place Name, State, Country\" in the United States region (for example, \"Kirkland, WA, USA\").\n - Get other useful data such as photos.\n\nUse the Geocoding API\n\n- The [Geocoding API](/maps/documentation/geocoding) lets you\n convert an address, latitude and longitude coordinates, or place ID into\n geographic coordinates, and vice-versa. The following uses combine well with\n data-driven styling for boundaries:\n\n - Use Geocoding to get the viewport for a region.\n - Apply component filtering to your Geocoding call to get the place IDs for administrative areas 1-4, locality, or postal code.\n - Use reverse geocoding to find place IDs by latitude and longitude coordinates, or even return place IDs for all components in a particular location.\n\n The following example uses an address (url-escaped) to make a request to the\n Geocoding API: \n\n ```html\n https://maps.googleapis.com/maps/api/geocode/json?latlng=41.864182,-87.676930&key=YOUR_API_KEY\n ```\n\n You can use [reverse\n geocoding](/maps/documentation/geocoding/requests-reverse-geocoding) to\n find place IDs. The following example Geocoding service function returns the\n place IDs for all address components at the specified latitude and longitude\n coordinates: \n\n ```html\n https://maps.googleapis.com/maps/api/geocode/json?latlng=41.864182,-87.676930&result_type=locality&key=YOUR_API_KEY\n ```\n\n Use reverse geocoding with component filtering to get the address component\n for one or more of the following types at the specified location:\n - `administrativeArea`\n - `country`\n - `locality`\n - `postalCode`\n - `schoolDistrict`\n\n The following example shows using the Geocoding service, adding component\n restrictions with reverse geocoding to retrieve all address components\n at the specified location for the `locality` type: \n\n ```html\n https://maps.googleapis.com/maps/api/geocode/json?latlng=41.864182,-87.676930&result_type=locality&key=YOUR_API_KEY\n ```"]]