Looking up an ambiguous store name returns Shizuoka, the middle of Japan: I judged by Google’s own answer, not a list of chains

日本語版

Development log of the Toreca Dash app / August 2026

My app Toreca Dash shows store locations on a map and sorts by distance. A report said “the location shows Shizuoka”. Store locations come from passing the store name to Google’s place search (Places API).

The cause: when you query with an ambiguous store name, Google returns the middle of Japan (Shizuoka and Aichi). This article records the measurement and the fix of not listing chain names.

Written from my work log of 25 August 2026.

Measured: the answer to an ambiguous name is Shizuoka or Aichi

I pass a rectangle covering all of Japan as a location hint (locationbias). With an ambiguous name and nothing to decide by, Google returns the middle of that rectangle, which is Shizuoka and Aichi. I measured it with the API.

QueryGoogle’s answer
Yamada DenkiYamada Denki Tecc Land Hamamatsu (Shizuoka)
San-ASan-A Kaken, Kakegawa Factory (Shizuoka)
Hobby StationToreca Station Toyohashi (Aichi)
Book OffBOOKOFF Kakegawa (Shizuoka)
HareruyaHareruya Shizuoka (Shizuoka)
Omusubia rice-ball shop in Hamamatsu (Shizuoka)

“San-A” meant a retail chain, but the answer was a different company’s factory with a similar name.

The fix: judge by Google’s own answer, not a list of chain names

I did not make a “list of ambiguous chain names”. It would recur whenever a new chain appears. Instead I wrote a function (geocodeMatchIsTrustworthy) that judges from Google’s own answer.

  1. If the queried name is only the head of the returned name and the rest is a branch name, reject. (Yamada Denki → …Tecc Land Hamamatsu.) If only “store” was added, it is the same shop.
  2. If the name has a branch hint (“… store”, hall, mall…), accept as before.
  3. If the returned name equals the queried name or is a part of it, accept. Do not accept the reverse. (San-A ⊂ San-A Kaken is a different company.)
  4. Otherwise, judge by whether the name and address share 2 or more characters. (Stores with Ikebukuro, Totsuka, Sapporo or Takadanobaba in the name pass here.)

On 25 real patterns, all 9 wrong ones were rejected and all 16 correct ones accepted. The only miss was one written in Roman letters.

I cleared the 30 articles with a wrong location baked in and 22 store cache entries, and resolved them again. Clearing the cache costs one API call per store.

A similar story the same day: the notification’s store name was “LivePocket”

A report said “the notification’s store name is LivePocket”. When no store name could be found, the category (“LivePocket”) was used as the last fallback. LivePocket is a place that takes applications, not a store. So when unknown, return null. The caller uses the article title if there is no store name. LivePocket titles begin with the store name, like “Kiddy Land LaLaport Fujimi store …”, which says it more correctly.

What I learned

Check an external answer for trustworthiness using the answer itself.

This is the English version of the original Japanese article.

More in English