<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakaterux</author_name>
  <author_url>https://blog.hatena.ne.jp/nakaterux/</author_url>
  <blog_title>なんちゃってプログラマーの日記</blog_title>
  <blog_url>https://nakaterux.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>自分のWEBサイトで「近くの店舗を表示したい」「ユーザーの地域に合わせてコンテンツを変えたい」と思ったことはありませんか？ 実は、ブラウザの標準機能や外部サービスを使えば、意外と簡単に実装できるんです。 今回は、主要な2つの方法についてメリット・デメリットを交えて解説します！ 方法1：Geolocation API（ブラウザ標準機能） 「もっとも正確な位置を知りたい」ならこの方法です。 Googleマップのように、デバイスのGPSやWi-Fi情報を活用して、現在の緯度・経度を取得します。 メリット: 非常に高精度（数メートル単位）。 ブラウザ標準の機能なので、追加のライブラリが不要。 デメリッ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnakaterux.hatenablog.com%2Fentry%2F2026%2F01%2F19%2F014414&quot; title=&quot;【初心者向け】WEBサイトでユーザーの位置情報を取得する2つの決定版 - なんちゃってプログラマーの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-01-19 01:44:14</published>
  <title>【初心者向け】WEBサイトでユーザーの位置情報を取得する2つの決定版</title>
  <type>rich</type>
  <url>https://nakaterux.hatenablog.com/entry/2026/01/19/014414</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
