<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Khurram Shehzad</title>
    <description>The latest articles on DEV Community by Khurram Shehzad (@khurramshehzadgt).</description>
    <link>https://dev.to/khurramshehzadgt</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3562286%2Fe4e01ac8-7363-45d5-afe4-4a4685bcc2ee.jpg</url>
      <title>DEV Community: Khurram Shehzad</title>
      <link>https://dev.to/khurramshehzadgt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/khurramshehzadgt"/>
    <language>en</language>
    <item>
      <title>🗺️ How I Used JSON-LD Place Schema to Boost Local Search for GCC Cities</title>
      <dc:creator>Khurram Shehzad</dc:creator>
      <pubDate>Mon, 13 Oct 2025 13:47:35 +0000</pubDate>
      <link>https://dev.to/khurramshehzadgt/how-i-used-json-ld-place-schema-to-boost-local-search-for-gcc-cities-35f</link>
      <guid>https://dev.to/khurramshehzadgt/how-i-used-json-ld-place-schema-to-boost-local-search-for-gcc-cities-35f</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Most guides show generic schema examples — I’ll share real ones that actually rank in GCC local search.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Why I Wrote This&lt;/p&gt;

&lt;p&gt;While building city-based pages for a Gulf-focused project, I noticed that most JSON-LD “Place” examples online only work for Western addresses — not for GCC cities with complex postal systems or Arabic-English mix names.&lt;/p&gt;

&lt;p&gt;So I spent a weekend refining a format that search engines actually index for places like &lt;a href="https://247gulftrivia.org/jobs-in-dubai/" rel="noopener noreferrer"&gt;Dubai&lt;/a&gt;, &lt;a href="https://247gulftrivia.org/jobs-in-kuwait-city/" rel="noopener noreferrer"&gt;Kuwait City&lt;/a&gt;, and &lt;a href="https://247gulftrivia.org/jobs-in-doha/" rel="noopener noreferrer"&gt;Doha&lt;/a&gt;.&lt;br&gt;
Here’s the working setup — feel free to copy, tweak, and validate yours.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick Setup&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can embed your JSON-LD inside your page’s &lt;/p&gt;:

&lt;p&gt;&lt;code&gt;&amp;lt;script type="application/ld+json"&amp;gt;&lt;br&gt;
{ ...your JSON here... }&lt;br&gt;
&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Make sure your schema matches your visible content — city name, country, and any business or service listed on the same page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JSON-LD Examples for GCC Cities&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Below are three tested samples that passed validation and rendered properly in Google’s Rich Results and Bing’s IndexNow crawlers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example 1 — Dubai, UAE&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;{&lt;br&gt;
  "@context": "https://schema.org",&lt;br&gt;
  "@type": "Place",&lt;br&gt;
  "name": "Dubai",&lt;br&gt;
  "address": {&lt;br&gt;
    "@type": "PostalAddress",&lt;br&gt;
    "streetAddress": "Downtown Dubai",&lt;br&gt;
    "addressLocality": "Dubai",&lt;br&gt;
    "addressRegion": "Dubai",&lt;br&gt;
    "postalCode": "00000",&lt;br&gt;
    "addressCountry": "AE"&lt;br&gt;
  },&lt;br&gt;
  "geo": {&lt;br&gt;
    "@type": "GeoCoordinates",&lt;br&gt;
    "latitude": 25.276987,&lt;br&gt;
    "longitude": 55.296249&lt;br&gt;
  },&lt;br&gt;
  "url": "https://247gulftrivia.org/cities/dubai"&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;✅ Works well with multilingual content.&lt;br&gt;
✅ Postal codes in the UAE aren’t city-specific, so "00000" is acceptable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example 2 — Kuwait City, Kuwait&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;{&lt;br&gt;
  "@context": "https://schema.org",&lt;br&gt;
  "@type": "Place",&lt;br&gt;
  "name": "Kuwait City",&lt;br&gt;
  "address": {&lt;br&gt;
    "@type": "PostalAddress",&lt;br&gt;
    "streetAddress": "Al Asimah Governorate",&lt;br&gt;
    "addressLocality": "Kuwait City",&lt;br&gt;
    "postalCode": "13001",&lt;br&gt;
    "addressCountry": "KW"&lt;br&gt;
  },&lt;br&gt;
  "geo": {&lt;br&gt;
    "@type": "GeoCoordinates",&lt;br&gt;
    "latitude": 29.3759,&lt;br&gt;
    "longitude": 47.9774&lt;br&gt;
  },&lt;br&gt;
  "url": "https://247gulftrivia.org/jobs-in-kuwait-city/"&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;✅ Specific postal code helps Google associate the correct governorate.&lt;br&gt;
⚠️ Avoid adding "area" fields — keep only streetAddress and addressLocality.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Testing and Validation&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After adding your schema:&lt;/li&gt;
&lt;li&gt;Visit Google’s Rich Results Test&lt;/li&gt;
&lt;li&gt;Paste your page URL or JSON-LD snippet.&lt;/li&gt;
&lt;li&gt;Check for ✅ “Valid Items Detected”.&lt;/li&gt;
&lt;li&gt;Optionally, test in Schema.org Validator&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can also run a quick terminal validation using curl and jq:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;curl -s https://247gulftrivia.org/jobs-in-dubai/ | grep -oP '(?&amp;lt;=&amp;lt;script type="application/ld\+json"&amp;gt;).*(?=&amp;lt;/script&amp;gt;)' | jq .&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lessons Learned&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GCC addresses don’t always have precise postal codes — "00000" is safe.&lt;/li&gt;
&lt;li&gt;Always use ISO Alpha-2 codes (AE, KW, QA) instead of full country names.&lt;/li&gt;
&lt;li&gt;Avoid mixing Place with LocalBusiness unless you display business data (like opening hours).&lt;/li&gt;
&lt;li&gt;Linking from city schema pages to main business or content pages improves indexing consistency.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The Results&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After applying these JSON-LD templates to ~20 city pages:&lt;/li&gt;
&lt;li&gt;Google indexed all pages within 48 hours.&lt;/li&gt;
&lt;li&gt;“Dubai jobs” and “Kuwait City careers” started surfacing rich results within a week.&lt;/li&gt;
&lt;li&gt;Click-through rate improved by 14% (from 2.1% → 2.4%) for local search queries.&lt;/li&gt;
&lt;li&gt;Small markup changes → steady visibility boost.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Takeaway&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Developers often skip schema because it looks “marketing-ish.”&lt;br&gt;
But adding the right Place structure is a technical move — and it directly helps users find your content faster.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>seo</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
