{"id":981,"date":"2022-08-14T21:02:35","date_gmt":"2022-08-14T20:02:35","guid":{"rendered":"https:\/\/codeflarelimited.com\/blog\/?p=981"},"modified":"2022-08-14T21:02:37","modified_gmt":"2022-08-14T20:02:37","slug":"geolocation-api","status":"publish","type":"post","link":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/","title":{"rendered":"Geolocation API"},"content":{"rendered":"\n<p>The HTML Geolocation API is used to locate a user&#8217;s geographical position. For this to work accurately and not compromise privacy, the user would have to give consent and approval.<\/p>\n\n\n\n<p>The Geolocation API is supported by major browsers including Chrome, Safari, Mozilla Firefox, Edge and Opera.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-fast-track-your-mobile-app-development-process\"><a href=\"https:\/\/origamisuite.dev\" target=\"_blank\" rel=\"noreferrer noopener\">Fast Track Your Mobile App Development Process<\/a><\/h3>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/origamisuite.dev\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/workout-ui-908x1024.png\" alt=\"\" class=\"wp-image-982\" width=\"393\" height=\"443\" srcset=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/workout-ui-908x1024.png 908w, https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/workout-ui-266x300.png 266w, https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/workout-ui-768x867.png 768w, https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/workout-ui.png 1068w\" sizes=\"auto, (max-width: 393px) 100vw, 393px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-use-the-geolocation-api\">How to Use the Geolocation API<\/h2>\n\n\n\n<p>The geolocation is made available through the <strong><em>navigator.geolocation<\/em><\/strong> object. This means it has properties that could be called to get certain information.<\/p>\n\n\n\n<p>When using the Geolocation API, the first thing we want to do is to check if it is supported by the user&#8217;s browser. If it is, then we can proceed. If not, we return a message to the user.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">if ('geolocation' in navigator) {\n  \/* geolocation is available *\/\n} else {\n  \/* geolocation IS NOT available *\/\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-getting-the-current-position\">Getting the Current Position<\/h2>\n\n\n\n<p>The <strong><em>getCurrentPosition<\/em><\/strong> returns the user&#8217;s current position.<\/p>\n\n\n\n<p>This initiates an asynchronous request to detect the user&#8217;s position, and queries the positioning hardware to get up-to-date information. After the position is determined, the defined callback function is executed. <\/p>\n\n\n\n<p>You can optionally provide a second callback function to be executed if an error occurs and also a third optional parameter where you can set the maximum age of the position returned, the time to wait for a request, and if you want high accuracy for the position.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">&lt;script>\nvar x = document.getElementById(\"demo\");\nfunction getLocation() {\n  if (navigator.geolocation) {\n    navigator.geolocation.getCurrentPosition(showPosition);\n  } else {\n    x.innerHTML = \"Geolocation is not supported by this browser.\";\n  }\n}\n\nfunction showPosition(position) {\n  x.innerHTML = \"Latitude: \" + position.coords.latitude + \n  \"&lt;br>Longitude: \" + position.coords.longitude; \n}\n&lt;\/script><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-error-handling\">Error Handling<\/h2>\n\n\n\n<p>The <strong><em>getCurrentPosition()<\/em><\/strong> method takes in a second parameter that handles error. This error function is expected to run if the application fails to get the user&#8217;s position.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">function showError(error) {\n  switch(error.code) {\n    case error.PERMISSION_DENIED:\n      x.innerHTML = \"User denied the request for Geolocation.\"\n      break;\n    case error.POSITION_UNAVAILABLE:\n      x.innerHTML = \"Location information is unavailable.\"\n      break;\n    case error.TIMEOUT:\n      x.innerHTML = \"The request to get user location timed out.\"\n      break;\n    case error.UNKNOWN_ERROR:\n      x.innerHTML = \"An unknown error occurred.\"\n      break;\n  }\n}<\/code><\/pre>\n\n\n\n<p>We can then add this parameter to our function.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">function getLocation() {\n  if (navigator.geolocation) {\n    navigator.geolocation.getCurrentPosition(showPosition, showError);\n  } else {\n    x.innerHTML = \"Geolocation is not supported by this browser.\";\n  }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-watching-the-current-position\">Watching the Current Position<\/h2>\n\n\n\n<p>The <strong><em>watchPosition()<\/em><\/strong> is used to actively listen for a change in position. This works best with a GPS or a smartphone so that the change in position or the movement can be monitored.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">&lt;script>\nvar x = document.getElementById(\"demo\");\nfunction getLocation() {\n  if (navigator.geolocation) {\n    navigator.geolocation.watchPosition(showPosition);\n  } else {\n    x.innerHTML = \"Geolocation is not supported by this browser.\";\n  }\n}\nfunction showPosition(position) {\n  x.innerHTML = \"Latitude: \" + position.coords.latitude + \n  \"&lt;br>Longitude: \" + position.coords.longitude; \n}\n&lt;\/script><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-the-getcurrentposition-method-properties\">The getCurrentPosition() Method Properties<\/h2>\n\n\n\n<p>The <strong><em>getCurrentPosition()<\/em><\/strong> method also returns other properties that are worthy of note.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Property<\/strong><\/td><td><strong>Result<\/strong><\/td><\/tr><tr><td>coords.latitude<\/td><td>The latitude as a decimal number (always returned)<\/td><\/tr><tr><td>coords.longitude<\/td><td>The longitude as a decimal number (always returned)<\/td><\/tr><tr><td>coords.accuracy<\/td><td>The accuracy of position (always returned)<\/td><\/tr><tr><td>coords.altitude<\/td><td>The altitude in meters above the mean sea level (returned if available)<\/td><\/tr><tr><td>coords.altitudeAccuracy<\/td><td>The altitude accuracy of position (returned if available)<\/td><\/tr><tr><td>coords.heading<\/td><td>The heading as degrees clockwise from North (returned if available)<\/td><\/tr><tr><td>coords.speed<\/td><td>The speed in meters per second (returned if available)<\/td><\/tr><tr><td>timestamp<\/td><td>The date\/time of the response (returned if available)<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The HTML Geolocation API is used to locate a user&#8217;s geographical position. For this to work accurately and<\/p>\n","protected":false},"author":1,"featured_media":983,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[98],"tags":[],"class_list":["post-981","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-softare-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Geolocation API<\/title>\n<meta name=\"description\" content=\"The HTML Geolocation API is used to locate a user&#039;s geographical position. For this to work accurately and not compromise privacy ...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Geolocation API\" \/>\n<meta property=\"og:description\" content=\"The HTML Geolocation API is used to locate a user&#039;s geographical position. For this to work accurately and not compromise privacy ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/codeflretech\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-14T20:02:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-14T20:02:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/google-maps-satellite.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"553\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"codeflare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codeflaretech\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/geolocation-api\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/geolocation-api\\\/\"},\"author\":{\"name\":\"codeflare\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\"},\"headline\":\"Geolocation API\",\"datePublished\":\"2022-08-14T20:02:35+00:00\",\"dateModified\":\"2022-08-14T20:02:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/geolocation-api\\\/\"},\"wordCount\":390,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/geolocation-api\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/google-maps-satellite.png\",\"articleSection\":[\"softare development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/geolocation-api\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/geolocation-api\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/geolocation-api\\\/\",\"name\":\"Geolocation API\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/geolocation-api\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/geolocation-api\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/google-maps-satellite.png\",\"datePublished\":\"2022-08-14T20:02:35+00:00\",\"dateModified\":\"2022-08-14T20:02:37+00:00\",\"description\":\"The HTML Geolocation API is used to locate a user's geographical position. For this to work accurately and not compromise privacy ...\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/geolocation-api\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/geolocation-api\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/geolocation-api\\\/#primaryimage\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/google-maps-satellite.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/google-maps-satellite.png\",\"width\":1200,\"height\":553,\"caption\":\"Google Places React Native\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/geolocation-api\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"softare development\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/softare-development\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Geolocation API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"name\":\"\",\"description\":\"Sustainable solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\",\"name\":\"Codeflare Limited\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"width\":1040,\"height\":263,\"caption\":\"Codeflare Limited\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\",\"name\":\"codeflare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"caption\":\"codeflare\"},\"description\":\"Latest tech news and coding tips.\",\"sameAs\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\",\"https:\\\/\\\/facebook.com\\\/codeflretech\",\"https:\\\/\\\/instagram.com\\\/codeflaretech\",\"https:\\\/\\\/x.com\\\/codeflaretech\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1\"],\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/author\\\/watcher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Geolocation API","description":"The HTML Geolocation API is used to locate a user's geographical position. For this to work accurately and not compromise privacy ...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/","og_locale":"en_US","og_type":"article","og_title":"Geolocation API","og_description":"The HTML Geolocation API is used to locate a user's geographical position. For this to work accurately and not compromise privacy ...","og_url":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/","article_author":"https:\/\/facebook.com\/codeflretech","article_published_time":"2022-08-14T20:02:35+00:00","article_modified_time":"2022-08-14T20:02:37+00:00","og_image":[{"width":1200,"height":553,"url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/google-maps-satellite.png","type":"image\/png"}],"author":"codeflare","twitter_card":"summary_large_image","twitter_creator":"@codeflaretech","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/#article","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/"},"author":{"name":"codeflare","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a"},"headline":"Geolocation API","datePublished":"2022-08-14T20:02:35+00:00","dateModified":"2022-08-14T20:02:37+00:00","mainEntityOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/"},"wordCount":390,"commentCount":0,"publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/google-maps-satellite.png","articleSection":["softare development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeflarelimited.com\/blog\/geolocation-api\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/","url":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/","name":"Geolocation API","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/#primaryimage"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/google-maps-satellite.png","datePublished":"2022-08-14T20:02:35+00:00","dateModified":"2022-08-14T20:02:37+00:00","description":"The HTML Geolocation API is used to locate a user's geographical position. For this to work accurately and not compromise privacy ...","breadcrumb":{"@id":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeflarelimited.com\/blog\/geolocation-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/#primaryimage","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/google-maps-satellite.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/google-maps-satellite.png","width":1200,"height":553,"caption":"Google Places React Native"},{"@type":"BreadcrumbList","@id":"https:\/\/codeflarelimited.com\/blog\/geolocation-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codeflarelimited.com\/blog\/"},{"@type":"ListItem","position":2,"name":"softare development","item":"https:\/\/codeflarelimited.com\/blog\/softare-development\/"},{"@type":"ListItem","position":3,"name":"Geolocation API"}]},{"@type":"WebSite","@id":"https:\/\/codeflarelimited.com\/blog\/#website","url":"https:\/\/codeflarelimited.com\/blog\/","name":"","description":"Sustainable solutions","publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeflarelimited.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codeflarelimited.com\/blog\/#organization","name":"Codeflare Limited","url":"https:\/\/codeflarelimited.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","width":1040,"height":263,"caption":"Codeflare Limited"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a","name":"codeflare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","caption":"codeflare"},"description":"Latest tech news and coding tips.","sameAs":["https:\/\/codeflarelimited.com\/blog","https:\/\/facebook.com\/codeflretech","https:\/\/instagram.com\/codeflaretech","https:\/\/x.com\/codeflaretech","https:\/\/www.youtube.com\/channel\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1"],"url":"https:\/\/codeflarelimited.com\/blog\/author\/watcher\/"}]}},"jetpack_featured_media_url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/google-maps-satellite.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/comments?post=981"}],"version-history":[{"count":1,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/981\/revisions"}],"predecessor-version":[{"id":984,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/981\/revisions\/984"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media\/983"}],"wp:attachment":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media?parent=981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/categories?post=981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/tags?post=981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}