Google link review with place id năm 2024

Place IDs uniquely identify a place in the Google Places database and on Google Maps. Place IDs are accepted in requests to the following Maps APIs:

  • Retrieving an address for a Place ID in the Geocoding API web service and Geocoding Service, Maps JavaScript API.
  • Specifying origin, destination and intermediate waypoints in the Routes API and Directions API web service and Directions Service, Maps JavaScript API.
  • Specifying origins and destinations in the Routes API and Distance Matrix API web service and Distance Matrix Service, Maps JavaScript API.
  • Retrieving Place Details in Places API web service, Places SDK for Android, Places SDK for iOS, and Places Library.
  • Using Place ID parameters in Maps Embed API.
  • Retrieving search queries in Maps URLs.
  • Displaying speed limits in Roads API.
  • Finding and styling boundary polygons in data-driven styling for boundaries.

Find the ID of a particular place

Are you looking for the place ID of a specific place? Use the place ID finder below to search for a place and get its ID:

Alternatively, you can view the place ID finder with its code in the Maps JavaScript API documentation.

Overview

A place ID is a textual identifier that uniquely identifies a place. The length of the identifier may vary (there is no maximum length for Place IDs). Examples:

  • ChIJgUbEo8cfqokR5lP9_Wh_DaM
  • { "places": [
    {  
      "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",  
      "formattedAddress": "29 King St, Sydney NSW 2000, Australia",  
      "displayName": {  
        "text": "Peace Harmony",  
        "languageCode": "en"  
      }  
    },  
    
    ... } 0
  • { "places": [
    {  
      "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",  
      "formattedAddress": "29 King St, Sydney NSW 2000, Australia",  
      "displayName": {  
        "text": "Peace Harmony",  
        "languageCode": "en"  
      }  
    },  
    
    ... } 1
  • { "places": [
    {  
      "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",  
      "formattedAddress": "29 King St, Sydney NSW 2000, Australia",  
      "displayName": {  
        "text": "Peace Harmony",  
        "languageCode": "en"  
      }  
    },  
    
    ... } 2
  • { "places": [
    {  
      "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",  
      "formattedAddress": "29 King St, Sydney NSW 2000, Australia",  
      "displayName": {  
        "text": "Peace Harmony",  
        "languageCode": "en"  
      }  
    },  
    
    ... } 3

Place IDs are available for most locations, including businesses, landmarks, parks, and intersections. It is possible for the same place or location to have multiple different place IDs. Place IDs may change over time.

You can use the same place ID across the Places API and a number of Google Maps Platform APIs. For example, you can use the same place ID to reference a place in the Places API, the Maps JavaScript API, the Geocoding API, the Maps Embed API and the Roads API.

Retrieve place details using the place ID

A common way of using place IDs is to search for a place (using the Places API or the in the Maps JavaScript API, for example) then use the returned place ID to retrieve place details. You can store the place ID and use it to retrieve the same place details later. Read about below.

The following examples show how to request an icon URL for Places API (New) and Places API.

Places API (New)

Using the Places API, you can find a place ID by doing a Text Search (New) request.

curl -X POST -d '{ "textQuery" : "Spicy Vegetarian Food in Sydney, Australia" }' \ -H 'Content-Type: application/json' -H 'X-Goog-Api-Key: API_KEY' \ -H 'X-Goog-FieldMask: places.id,places.displayName,places.formattedAddress' \ 'https://places.googleapis.com/v1/places:searchText'

The response includes a place ID in the

{ "places": [

{
  "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",
  "formattedAddress": "29 King St, Sydney NSW 2000, Australia",
  "displayName": {
    "text": "Peace Harmony",
    "languageCode": "en"
  }
},
... }

4 field, as shown below:

{ "places": [

{
  "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",
  "formattedAddress": "29 King St, Sydney NSW 2000, Australia",
  "displayName": {
    "text": "Peace Harmony",
    "languageCode": "en"
  }
},
... }

Now you can now make a Place Details (New) request by including the place ID in the request URL:

https://places.googleapis.com/v1/places/ChIJs5ydyTiuEmsR0fRSlU0C7k0?fields=id,displayName&key=API_KEY

Places API

Using the Places API, you can find a place ID by doing a Place Search request.

The following example is a search request for places of type 'restaurant' within a 1500m radius of a point in Sydney, Australia, containing the word 'cruise':

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=1500&type=restaurant&keyword=cruise&key=YOUR_API_KEY

The response includes a place ID in the

{ "places": [

{
  "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",
  "formattedAddress": "29 King St, Sydney NSW 2000, Australia",
  "displayName": {
    "text": "Peace Harmony",
    "languageCode": "en"
  }
},
... }

5 field, as shown in this snippet:

{ "html_attributions" : [], "results" : [

{
  "geometry" : {
    "location" : {
      "lat" : -33.870775,
      "lng" : 151.199025
    }
  },
  ...
  "place_id" : "ChIJrTLr-GyuEmsRBfy61i59si0",
  ...
}
], "status" : "OK" }

Now you can send a , putting the place ID in the

{ "places": [

{
  "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",
  "formattedAddress": "29 King St, Sydney NSW 2000, Australia",
  "displayName": {
    "text": "Peace Harmony",
    "languageCode": "en"
  }
},
... }

5 parameter:

https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJrTLr-GyuEmsRBfy61i59si0&key=YOUR_API_KEY

Save place IDs for later use

Place IDs are exempt from the caching restrictions stated in of the Google Maps Platform Terms of Service. You can therefore store place ID values for later use.

Refreshing stored place IDs

We recommend refreshing place IDs if they are more than 12 months old. You can refresh Place IDs at no charge, by making a Place Details request, specifying only the place ID field in the

{ "places": [

{
  "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",
  "formattedAddress": "29 King St, Sydney NSW 2000, Australia",
  "displayName": {
    "text": "Peace Harmony",
    "languageCode": "en"
  }
},
... }

7 parameter.

Places API (New)

For example, using Place Details (New):

https://places.googleapis.com/v1/places/ChIJ05IRjKHxEQ0RJLV_5NLdK2w?fields=id&key=API_KEY

Places API

For example, using the legacy Place Details API:

https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJ05IRjKHxEQ0RJLV_5NLdK2w&fields=place_id&key=API_KEY

This call triggers the or SKU.

This request might also return

{ "places": [

{
  "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",
  "formattedAddress": "29 King St, Sydney NSW 2000, Australia",
  "displayName": {
    "text": "Peace Harmony",
    "languageCode": "en"
  }
},
... }

8 status code. One strategy is to store the original request that returned each place ID. If a place ID becomes invalid, you can re-issue that request to get fresh results. These results may or may not include the original place. However, this request is chargeable.

Error codes when using place IDs

The

{ "places": [

{
  "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",
  "formattedAddress": "29 King St, Sydney NSW 2000, Australia",
  "displayName": {
    "text": "Peace Harmony",
    "languageCode": "en"
  }
},
... }

9 status code indicates that the specified place ID is not valid.

{ "places": [

{
  "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",
  "formattedAddress": "29 King St, Sydney NSW 2000, Australia",
  "displayName": {
    "text": "Peace Harmony",
    "languageCode": "en"
  }
},
... }

9 may be returned when the place ID has been truncated or otherwise modified, and is no longer correct.

The

{ "places": [

{
  "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",
  "formattedAddress": "29 King St, Sydney NSW 2000, Australia",
  "displayName": {
    "text": "Peace Harmony",
    "languageCode": "en"
  }
},
... }

8 status code indicates that the specified place ID is obsolete. A place ID may become obsolete if a business closes or moves to a new location. Place IDs may change due to large-scale updates on the Google Maps database. In such cases, a place may receive a new place ID, and the old ID returns a

{ "places": [

{
  "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",
  "formattedAddress": "29 King St, Sydney NSW 2000, Australia",
  "displayName": {
    "text": "Peace Harmony",
    "languageCode": "en"
  }
},
... }

8 response.

In particular, some types of place IDs may sometimes cause a

{ "places": [

{
  "id": "ChIJs5ydyTiuEmsR0fRSlU0C7k0",
  "formattedAddress": "29 King St, Sydney NSW 2000, Australia",
  "displayName": {
    "text": "Peace Harmony",
    "languageCode": "en"
  }
},
... }

8 response, or the API may return a different place ID in the response. These place ID types include:

  • Street addresses that do not exist in Google Maps as precise addresses, but are inferred from a range of addresses.
  • Segments of a long route, where the request also specifies a city or locality.
  • Intersections.
  • Places with an address component of type https://places.googleapis.com/v1/places/ChIJs5ydyTiuEmsR0fRSlU0C7k0?fields=id,displayName&key=API_KEY 4.

These IDs often take the form of a long string (there is no maximum length for Place IDs). For example:

5 STEPS TO CREATE A LINK FOR CUSTOMERS TO WRITE GOOGLE REVIEWS:.

STEP 1: GO TO GOOGLE'S PLACE ID LOOKUP TOOL. ... .

STEP 2: ENTER YOUR BUSINESS NAME. ... .

STEP 3: COPY YOUR PLACE ID. ... .

STEP 4: ENTER YOUR ID INTO THE FOLLOWING URL. ... .

STEP 5: SEND THE REVIEW LINK TO CUSTOMERS (GET CREATIVE!) ... .

3 Comments..

How to get your Google review link.

Log into your Google Business Profile..

Look for your business on Google Search and click the link that states the number of reviews you have..

Now select the “Get more reviews” button..

There's your Google reviews link!.

What is Google review ID?

This ID is the unique order number for your purchase. Google uses it to connect your review with your order. This email address is the one you provided when you opted-in to Google Customer Reviews at the completion of your purchase.

How do I get a short URL for Google reviews?

Log into your Google Business Profile Manager (your Google account) from your browser's address bar. If you have more than one business profile, select the business profile you want to create a Google review link for. Go to the left menu and click on Home. Find the “Get more reviews” button and copy your short URL.