<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dorapon2000</author_name>
  <author_url>https://blog.hatena.ne.jp/dorapon2000/</author_url>
  <blog_title>Mobile Factory Tech Blog</blog_title>
  <blog_url>https://tech.mobilefactory.jp/</blog_url>
  <categories>
    <anon>TypeScript</anon>
    <anon>Vue.js</anon>
    <anon>フロントエンド</anon>
    <anon>開発</anon>
  </categories>
  <description>こんにちは。駅メモエンジニアの id:dorapon2000 です。 約半年前の 6 月 1 日にステーションメモリーズ！（駅メモ！）10 周年を記念してタイムラインと地図の切替機能をリリースしました。大変好評を頂いておりとても嬉しいです。 今回は、その機能の中で毎秒最寄り駅を計算するロジックをどのように実現しているのかについてお話します。様々なスペックの端末で遊ばれているため、可能な限りリソースを節約するような工夫をしました。堅い言い方をすれば、過去の計算情報を使った最近傍探索アルゴリズムを実装しました。 記事中のサンプルコードは TypeScript で記述しています。 2024/11/2…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.mobilefactory.jp%2Fentry%2F2024%2F11%2F21%2F160000&quot; title=&quot;毎秒現在地を使った最近傍探索をしたい - Mobile Factory Tech Blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mobile-factory/20241121/20241121160011.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-21 16:00:00</published>
  <title>毎秒現在地を使った最近傍探索をしたい</title>
  <type>rich</type>
  <url>https://tech.mobilefactory.jp/entry/2024/11/21/160000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
