Développeurs de l'Espace économique européen (EEE)
Introduction
Le SDK Places pour iOS vous permet de créer des applications utilisant la détection de la position qui répondent de manière contextuelle aux établissements locaux et autres lieux à proximité de l'appareil. Cela signifie que vous pouvez créer des applications riches basées sur des lieux qui ont une signification pour l'utilisateur.
Concepts
Un lieu est défini comme un espace physique qui a un nom. Un lieu peut être défini comme tout ce que vous pouvez trouver sur une carte.
Il peut s'agir d'établissements locaux, de points d'intérêt ou de zones géographiques. Dans l'API, un lieu est représenté par GMSPlace Class Reference.
Il inclut des informations telles que le nom et l'adresse du lieu, sa situation géographique, son ID, son numéro de téléphone, son type, l'URL de son site Web, etc.
Présentation du SDK
Utilisez le SDK Places pour iOS afin d'aider vos clients à explorer leur environnement. Le SDK Places pour iOS fournit les API suivantes :
Renvoie des informations sur des lieux, y compris leur nom et leur adresse, leur emplacement géographique, leur type (boîte de nuit, animalerie, musée, etc.) et plus encore.
remplit automatiquement le nom et/ou l'adresse d'un lieu à mesure que les utilisateurs saisissent du texte ;
Voici d'autres points forts du SDK :
Détection précise des lieux avec une faible consommation d'énergie grâce à la recherche Wi-Fi.
Mise en cache sur l'appareil : la plupart des requêtes envoyées au Places SDK for iOS peuvent impliquer un aller-retour vers un serveur Google, mais vous pouvez également mettre en cache les données localement pendant 30 jours.
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/08/31 (UTC).
[null,null,["Dernière mise à jour le 2025/08/31 (UTC)."],[[["\u003cp\u003eThe Places SDK for iOS allows you to build location-aware iOS applications that utilize local business and point of interest data.\u003c/p\u003e\n"],["\u003cp\u003eThe SDK offers two versions: Places SDK for iOS and Places SDK for iOS (New), with the latter featuring a simplified pricing model and Swift support through a separate Preview SDK.\u003c/p\u003e\n"],["\u003cp\u003eCore functionalities include place details retrieval, place photos, text search, nearby search, autocomplete, and current place detection (in the older SDK version).\u003c/p\u003e\n"],["\u003cp\u003eThe SDK leverages on-device caching for improved performance and requires adherence to Google Maps Platform Terms of Service and attribution display guidelines.\u003c/p\u003e\n"],["\u003cp\u003eBefore starting, ensure you have a project with an active billing account and the Places API enabled.\u003c/p\u003e\n"]]],[],null,["# Overview\n\nSelect platform: [Android](/maps/documentation/places/android-sdk/overview \"View this page for the Android platform docs.\") [iOS](/maps/documentation/places/ios-sdk/overview \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/place \"View this page for the JavaScript platform docs.\") [Web Service](/maps/documentation/places/web-service/overview \"View this page for the Web Service platform docs.\") \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| **Before you begin:** Before you start using the Places SDK for iOS, you need a project with a billing account and the Places API enabled. We recommend creating multiple Project Owners and Billing Administrators, so that you'll always have someone with these roles available to your team. To learn more, see [Set up in Cloud console](/maps/documentation/places/ios-sdk/cloud-setup).\n\nIntroduction\n------------\n\nThe Places SDK for iOS lets you build location-aware apps that respond\ncontextually to the local businesses and other places near the device. This means you\ncan build rich apps based on places that mean something to the user.\n| **Note:** Places API (New) is the current version of the Places SDK for iOS. Places API is now Legacy and can no longer be enabled. Legacy documentation and migration guides are available on the [Legacy](/maps/documentation/places/ios-sdk/overview-legacy) tab.\n\nConcepts\n--------\n\nA *place* is defined as a physical space that has a name. Another way\nof thinking about a place is that it's anything you can find on a map.\nExamples include local businesses, points of interest, and geographic\nlocations. In the API, a place is represented by the\n[`GMSPlace Class Reference`](/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlace).\nIt includes information such as the name of the place and its address, geographical location,\nplace ID, phone number, place type, website URL, and more.\n| **Note:** Whenever your app displays information about places sourced from the Places SDK for iOS, the app must also show all relevant attributions that are returned by the API. See the documentation on [displaying attributions](/maps/documentation/places/ios-sdk/attributions).\n\nSDK overview\n------------\n\nUse Places SDK for iOS to help your customers explore where they are and what's around\nthem. Places SDK for iOS provides the following APIs:\n\n| Places SDK for iOS (New) | Description |\n|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Place Details (New)](/maps/documentation/places/ios-sdk/details-place) | Returns information about places, including the place's name and address, the geographical location, the type of place (such as night club, pet store, museum), and more. |\n| [Place Photo (New)](/maps/documentation/places/ios-sdk/place-photos) | Returns high-quality images of a place. |\n| [Text Search (New)](/maps/documentation/places/ios-sdk/text-search) | Returns information about a set of places based on a text search. |\n| [Nearby Search (New)](/maps/documentation/places/ios-sdk/nearby-search) | Returns information about a set of places by specifying a location as a search area. |\n| [Autocomplete (New)](/maps/documentation/places/ios-sdk/place-autocomplete) | Automatically fills in the name and/or address of a place as users type. |\n\nOther highlights of the SDK include:\n\n- Accurate place detection at low power with Wi-Fi scan.\n- On-device caching: Most requests to the Places SDK for iOS may involve a round trip to a Google server, but you can also cache data locally for 30 days.\n\nPolicies and terms\n------------------\n\nAll applications that use the Places SDK for iOS must adhere\nto the requirements described in the\n[Google Maps Platform Terms of Service](https://cloud.google.com/maps-platform/terms),\nand [Displaying Attributions](/maps/documentation/places/ios-sdk/attributions)."]]