আগ্রহের স্থান (POI) ফিড

এই পৃষ্ঠায় পয়েন্ট অফ ইন্টারেস্ট (POI) ফিডের প্রযুক্তিগত বিবরণ বিস্তারিতভাবে বর্ণনা করা হয়েছে। এতে প্রয়োজনীয় ফিল্ডগুলোর সারসংক্ষেপ, বিশদ স্কিমা সংজ্ঞা এবং বাস্তবায়নে সহায়তার জন্য একটি JSON নমুনা অন্তর্ভুক্ত রয়েছে।

ফিড স্পেসিফিকেশন

এই বিভাগে POI ফিডের জন্য প্রয়োজনীয়তা ও সংজ্ঞা বর্ণনা করা হয়েছে।

ক্ষেত্রের প্রয়োজনীয়তা

ক্ষেত্রের নাম প্রয়োজনীয়তা বর্ণনা
poi_id প্রয়োজনীয় অংশীদার দ্বারা তৈরি একটি স্ট্রিং যা একটি আগ্রহের স্থান (সম্পত্তি) শনাক্ত করে।
নাম প্রয়োজনীয় POI-এর নাম। এই নামটি অ্যাগ্রিগেটর ইউনিটে প্রপার্টির প্রদর্শিত নাম হিসেবে ব্যবহৃত হবে।
টেলিফোন থাকলে ভালো গুরুত্বপূর্ণ স্থানটির যোগাযোগের টেলিফোন নম্বর, যার মধ্যে দেশ এবং এলাকা কোড অন্তর্ভুক্ত থাকবে, উদাহরণস্বরূপ +14567891234।
ইউআরএল থাকলে ভালো POI-এর পাবলিক ওয়েবসাইটের URL। দ্রষ্টব্য: এটি শুধুমাত্র মিলানোর উদ্দেশ্যে ব্যবহার করা হবে, প্রদর্শনের জন্য নয়।
অবস্থান প্রয়োজনীয় (ঠিকানা)
থাকলে ভালো (অক্ষাংশ/দ্রাঘিমাংশ)
আগ্রহের স্থানটির অবস্থান।
আবশ্যক: ঠিকানা এবং সংশ্লিষ্ট ক্ষেত্রগুলো অবশ্যই সম্পত্তির সাথে সঠিকভাবে মিলতে হবে।
থাকলে ভালো: অক্ষাংশ এবং দ্রাঘিমাংশ। যদি প্রদান করা হয়, গুগল আপনার অ্যাগ্রিগেটর ইউনিট ম্যাপে প্রপার্টি পিন প্রদর্শনের জন্য অক্ষাংশ/দ্রাঘিমাংশ ব্যবহার করবে।
ছবি প্রয়োজনীয় (একটি ছবি)
একাধিক থাকলে ভালো
আগ্রহের স্থানটির ছবি। সম্পত্তি প্রদর্শনের ক্ষেত্রে ছবি গুরুত্বপূর্ণ হবে। আমরা কমপক্ষে ১টি ছবি যোগ করার জন্য দৃঢ়ভাবে সুপারিশ করছি। আপনি সর্বোচ্চ ৫টি পর্যন্ত একাধিক ছবি প্রদান করতে পারেন। একাধিক ছবি প্রদান করা হলে, সেগুলি যে ক্রমে প্রদান করা হয়েছে সেই ক্রমেই ব্যবহার করা হবে (যদি কোনো ছবি ব্যবহারযোগ্য না হয়)।

ছবিগুলো গুগলের নিরাপদ অনুসন্ধান নীতি লঙ্ঘন করছে কিনা, তা নিশ্চিত করার জন্য পর্যালোচনা করা হবে।
রেটিং সুপারিশকৃত সম্পত্তিটির গড় রেটিং।
রেটিং সংখ্যা সুপারিশকৃত rating ক্ষেত্রের জন্য অবদানকারী রেটিং-এর সংখ্যা।
রেটিং_স্কেল থাকলে ভালো rating ফিল্ডের জন্য ব্যবহৃত রেটিং স্কেল। যদি সর্বোচ্চ রেটিং ৫ হয়, তাহলে রেটিং_স্কেল হবে ৫।
বিভাগ থাকলে ভালো সম্পত্তির শ্রেণীকে নির্দেশ করে।
হোটেল_ডেটা থাকলে ভালো হোটেল-নির্দিষ্ট ফিল্ডসমূহ। বিস্তারিত জানতে হোটেল ডেটা ডেফিনিশন দেখুন।
হোটেল_স্টার_ক্লাস সুপারিশকৃত হোটেলের অফিশিয়াল স্টার ক্লাস ভ্যালু। এই মানটি ০ থেকে ৫-এর মধ্যে একটি পূর্ণসংখ্যা হবে বলে আশা করা হচ্ছে। যদি স্টার ক্লাস রেটিং অনুপলব্ধ, অজানা বা অনির্দিষ্ট থাকে, তবে অনুগ্রহ করে ০ মানটি প্রদান করুন। ০ সেট করা হলে, ব্যবহারকারীদের জন্য UI-তে হোটেলের কোনো স্টার ক্লাস প্রদর্শিত হবে না।
ব্র্যান্ড_আইডি থাকলে ভালো যে ব্র্যান্ডগুলো এই হোটেলটি প্রদর্শন করতে পারে। এই ক্ষেত্রটি খালি থাকলে, হোটেলটি ফিডের সাথে যুক্ত যেকোনো ব্র্যান্ডের অধীনে প্রদর্শিত হতে পারে।
বর্ণনা থাকলে ভালো সম্পত্তিটির একটি বিস্তারিত বিবরণ।
প্রদর্শনের ঠিকানা থাকলে ভালো UI-তে প্রদর্শিত ঠিকানা।

ছবির নির্দেশিকা

ফিডে যুক্ত করা সমস্ত ছবিকে অবশ্যই এই নির্দেশিকাগুলো অনুসরণ করতে হবে:

  • ফরম্যাট: অবশ্যই JPEG, PNG, বা WebP হতে হবে।
  • সর্বোচ্চ ফাইলের আকার: প্রতি ছবির জন্য ৩০ মেগাবাইটের কম।
  • সর্বোচ্চ মাত্রা: মোট ৭৫ মেগাপিক্সেলের কম (প্রস্থ x উচ্চতা < ৭৫,০০০,০০০)।
  • URL-এর ধরণ: ইমেজ অ্যাসেটের সরাসরি পাথ (যেমন, .jpg দিয়ে শেষ হয়)।
  • অনুমতি: নিশ্চিত করুন যে হোস্টিং সার্ভারটি গুগলবট বা ক্রলারদের অ্যাক্সেসের অনুমতি দেয় এবং এর কোনো robots.txt ফাইল ইমেজ ডিরেক্টরিগুলোকে ব্লক করে রাখেনি।

বহুভাষিক সহায়তা

পয়েন্ট অফ ইন্টারেস্ট ফিড নির্দিষ্ট ফিল্ডের জন্য স্থানীয় ভাষার কন্টেন্ট প্রদান সমর্থন করে। নিম্নলিখিত ফিল্ডগুলো Text টাইপের এবং এগুলো স্থানীয়করণ সমর্থন করে:

  • name
  • description
  • display_address

একাধিক ভাষায় কন্টেন্ট সরবরাহ করতে, আপনাকে ফিল্ডে একটি default_locale নির্দিষ্ট করতে হবে এবং localizations তালিকায় স্থানীয় স্ট্রিংগুলো প্রদান করতে হবে। একটি প্রপার্টির জন্য সমস্ত স্থানীয়করণ একটিমাত্র POI এন্ট্রিতে প্রদান করুন। একটিমাত্র প্রপার্টিকে একাধিক ভাষার JSON ফাইলে ভাগ করবেন না।

উদাহরণ:

"name": {
  "localizations": [
    {
      "locale": "en",
      "text": "Banana Hotel"
    },
    {
      "locale": "es",
      "text": "Hotel Plátano"
    }
  ],
  "default_locale": "en"
}

ফাইল প্যাকেজিং নির্দেশিকা

সফলভাবে ভক্ষণ নিশ্চিত করতে, নিম্নলিখিত প্যাকেজিং নির্দেশাবলী মেনে চলুন:

  • একক একত্রিত JSON আর্কাইভ (আবশ্যক) : সমস্ত প্রপার্টি রেকর্ড একটি একক JSON ফাইলে একত্রিত করুন। আমরা এটিকে একটি একক GZIP আর্কাইভে কম্প্রেস করে আপলোড করার পরামর্শ দিই।
  • অ্যান্টি-প্যাটার্ন সতর্কতা : একই আর্কাইভে প্রতিটি প্রপার্টির জন্য একটি ফাইল অথবা দেশ অনুযায়ী আলাদা করা একাধিক ফাইল ব্যবহার করবেন না। এই পদ্ধতিটি সমর্থিত নয় এবং এর ফলে ফাইল এক্সট্র্যাকশন ব্যর্থ হবে।

সংজ্ঞা

VssPoiFeed সংজ্ঞা

// Represents a Point of Interest (POI) data feed provided by a partner.
export message VssPoiFeed {
  // The POIs in the feed.
  repeated VssPoi data = 1;
}

VssPoi সংজ্ঞা

// Represents a single Point of Interest (POI) entity e.g. a hotel or
// restaurant.
export message VssPoi {
  // Required. A string generated by the partner that identifies a POI.
  string poi_id = 1;

  // The entity name, telephone, url and location are used to support
  // matching partner inventory with entities already present on Google.

  // Required. The name of the POI.
  Text name = 2;

  // The contact telephone number of the POI including its country and
  // area codes, e.g. +14567891234.
  string telephone = 3 [(datapol.semantic_type) = ST_PHONE_NUMBER];

  // The url of the POI's public website.
  // Note: This will be used just for matching purposes, not for display.
  string url = 4;

  // Required. The location of the POI.
  GeoCoordinates location = 5;

  // The address displayed on the UI.
  Text display_address = 17;

  // Images of the POI.
  // Max number of images: 5.
  repeated Image images = 6;

  // Average rating for the POI.
  float rating = 12;

  // The number of contributing ratings for the `rating` field.
  int64 num_ratings = 13;

  // The rating scale used for the `rating` field. If max rating is 5, then
  // rating_scale is 5.
  int32 rating_scale = 14;

  // Represents the category of the POI.
  // It should match the `additional_data` oneof field below.
  export enum Category {

    UNKNOWN_CATEGORY = 0;
    HOTEL = 1;

    LOCAL = 4;
  }

  // Required. Represents the category of the POI.
  Category category = 9;

  // A description of the POI.
  Text description = 16;

  // Required. Category specific fields.
  // It should match the `category` field above.
  oneof additional_data {
    // Hotel specific fields.
    HotelData hotel_data = 10;


    // Local specific fields.
    LocalData local_data = 15;
  }

}

পাঠ্য সংজ্ঞা

// Represents a text with localizations.
message Text {
  // Represents a localized string.
  message LocalizedString {
    // The text's language tag, such as "en", "en-US" or "sr-Latn".
    string locale = 1;

    // The text in the specified locale.
    string text = 2;
  }

  // The localized strings.
  repeated LocalizedString localizations = 1;

  // The locale to use as the default language it must be present in the
  // localizations.
  string default_locale = 2;
}

ভূ-স্থানাঙ্কের সংজ্ঞা

// The Geo data of a location, including latitude, longitude, and address.
message GeoCoordinates {
  option (datapol.msg_semantic_type) = ST_LOCATION;

  // [-90, +90] degrees (inclusive).
  // Required if longitude is set, otherwise nice to have.
  double latitude = 1;

  // [-180, +180] degrees (inclusive).
  // Required if latitude is set, otherwise nice to have.
  double longitude = 2;

  // Required. Address for a location.
  oneof addresses {
    // Postal address of the location.
    PostalAddress address = 3;

  }
}

ডাক ঠিকানার সংজ্ঞা

// The postal address for the location.
message PostalAddress {
  option (datapol.msg_semantic_type) = ST_LOCATION;

  // Required. The country, using ISO 3166-1 alpha-2 country code, e.g. "US".
  string country = 1;

  // Required. The locality/city, e.g. "Mountain View".
  string locality = 2;

  // The region/state/province, e.g. "CA". This field is only required in
  // countries where region is commonly a part of the address. (optional)
  string region = 3;

  // Required. The postal code, e.g. "94043".
  string postal_code = 4;

  // Required. The street address, e.g. "1600 Amphitheatre Pkwy".
  string street_address = 5;
}

ছবির সংজ্ঞা

// Represents an image of the Point of Interest (POI).
export message Image {
  // The url of the image. Google will crawl the media hosted at this URL.
  // Max length: 2000.
  string url = 1;

  // The alternative text to be used for accessibility.
  Text alt_text = 2;
}

হোটেল ডেটা সংজ্ঞা

// Hotel specific feed data.
message HotelData {
  // The official hotel class star value.
  // Can be used in a label like "5-star hotel."
  // This value is expected to be an integer between 0 and 5. A rating of 0
  // should be used if a rating is unavailable or not specified. When
  // set to 0, no star class will be displayed on the UI for users.
  int32 hotel_star_class = 1;

  // The brands that can display this hotel.
  // If this field is empty, the hotel can be displayed under any of the
  // brands associated with the feed.
  repeated string brand_ids = 2 [(datapol.semantic_type) = ST_PARTNER_ID];
}

নমুনা

আগ্রহের বিষয়বস্তু ফিড

ফাইলের নাম: poi_1707240000.json

{
  "data": [
    {
      "poi_id": "hotel_banana",
      "name": {
        "localizations": [
          {
            "locale": "en",
            "text": "Banana Hotel"
          }
        ],
        "default_locale": "en"
      },
      "telephone": "+16195550100",
      "url": "https://www.example-banana-hotel.com",
      "location": {
        "latitude": 32.7157,
        "longitude": -117.1611,
        "address": {
          "country": "US",
          "locality": "San Diego",
          "region": "CA",
          "postal_code": "92101",
          "street_address": "2845 W 7th St"
        }
      },
      "images": [
        {
          "url": "https://www.example.com/banana_hotel.jpg",
          "alt_text": {
             "localizations": [
               { "locale": "en", "text": "Banana Hotel Exterior" }
             ]
          }
        }
      ],
      "rating": 4.5,
      "category": "HOTEL",
      "hotel_data": {
        "hotel_star_class": 4,
        "brand_ids": ["brand_a", "brand_b"]
      }
    },
    {
      "poi_id": "hotel_kiwi",
      "name": {
        "localizations": [
          {
            "locale": "en",
            "text": "Kiwi Hotel"
          }
        ],
        "default_locale": "en"
      },
      "telephone": "+41445550100",
      "url": "https://www.example-kiwi-hotel.com",
      "location": {
        "latitude": 47.3769,
        "longitude": 8.5417,
        "address": {
          "country": "CH",
          "locality": "Zurich",
          "postal_code": "8001",
          "street_address": "Bahnhofstrasse 10"
        }
      },
      "images": [
        {
          "url": "https://www.example.com/kiwi_hotel.jpg",
          "alt_text": {
             "localizations": [
               { "locale": "en", "text": "Kiwi Hotel Lobby" }
             ]
          }
        }
      ],
      "rating": 4.0,
      "category": "HOTEL",
      "hotel_data": {
        "hotel_star_class": 3,
        "brand_ids": ["brand_c"]
      }
    },
    {
      "poi_id": "hotel_croissant",
      "name": {
        "localizations": [
          {
            "locale": "en",
            "text": "Croissant Hotel"
          }
        ],
        "default_locale": "en"
      },
      "telephone": "+41445550200",
      "url": "https://www.example-croissant-hotel.com",
      "location": {
        "latitude": 47.3686,
        "longitude": 8.5392,
        "address": {
          "country": "CH",
          "locality": "Zurich",
          "postal_code": "8002",
          "street_address": "Paradeplatz 1"
        }
      },
      "images": [
        {
          "url": "https://www.example.com/croissant_hotel.jpg",
          "alt_text": {
             "localizations": [
               { "locale": "en", "text": "Croissant Hotel View" }
             ]
          }
        }
      ],
      "rating": 5.0,
      "category": "HOTEL",
      "hotel_data": {
        "hotel_star_class": 5
      }
    },
    {
      "poi_id": "hotel_tiburon",
      "name": {
        "localizations": [
          {
            "locale": "en",
            "text": "Hotel Tiburon"
          }
        ],
        "default_locale": "en"
      },
      "telephone": "+15105550100",
      "url": "https://www.example-tiburon-hotel.com",
      "location": {
        "latitude": 37.7652,
        "longitude": -122.2416,
        "address": {
          "country": "US",
          "locality": "Alameda",
          "region": "CA",
          "postal_code": "94501",
          "street_address": "1100 Atlantic Ave"
        }
      },
      "images": [
        {
          "url": "https://www.example.com/tiburon_hotel.jpg",
          "alt_text": {
             "localizations": [
               { "locale": "en", "text": "Hotel Tiburon Pool" }
             ]
          }
        }
      ],
      "rating": 4.2,
      "category": "HOTEL",
      "hotel_data": {
        "hotel_star_class": 5,
        "brand_ids": ["brand_a"]
      }
    }
  ]
}

বহুভাষিক POI ফিড

ফাইলের নাম: poi_multilingual.json

{
  "data": [
    {
      "poi_id": "hotel_banana_multilingual",
      "name": {
        "localizations": [
          {
            "locale": "en",
            "text": "Banana Hotel"
          },
          {
            "locale": "es",
            "text": "Hotel Plátano"
          },
          {
            "locale": "fr",
            "text": "Hôtel Banane"
          }
        ],
        "default_locale": "en"
      },
      "description": {
        "localizations": [
          {
            "locale": "en",
            "text": "A beautiful hotel shaped like a banana."
          },
          {
            "locale": "es",
            "text": "Un hermoso hotel con forma de plátano."
          },
          {
            "locale": "fr",
            "text": "Un bel hôtel en forme de banane."
          }
        ],
        "default_locale": "en"
      },
      "display_address": {
        "localizations": [
          {
            "locale": "en",
            "text": "123 Banana Way, Fruit City, CA 90000"
          },
          {
            "locale": "es",
            "text": "123 Vía Plátano, Ciudad Fruta, CA 90000"
          }
        ],
        "default_locale": "en"
      },
      "telephone": "+16195550100",
      "url": "https://www.example-banana-hotel.com",
      "location": {
        "latitude": 32.7157,
        "longitude": -117.1611,
        "address": {
          "country": "US",
          "locality": "Fruit City",
          "region": "CA",
          "postal_code": "90000",
          "street_address": "123 Banana Way"
        }
      },
      "images": [
        {
          "url": "https://www.example.com/banana_hotel.jpg",
          "alt_text": {
             "localizations": [
               { "locale": "en", "text": "Banana Hotel Exterior" },
               { "locale": "es", "text": "Exterior del Hotel Plátano" }
             ]
          }
        }
      ],
      "rating": 4.5,
      "category": "HOTEL",
      "hotel_data": {
        "hotel_star_class": 4,
        "brand_ids": ["brand_mango", "brand_apricot"]
      }
    }
  ]
}