alltheplaces / alltheplaces

A set of spiders and scrapers to extract location information from places that post their location on the internet.
https://www.alltheplaces.xyz
Other
614 stars 208 forks source link

Family Mart JP (9793 stores mapped in OSM) #6179

Open starsep opened 11 months ago

starsep commented 11 months ago

Brand name

Family Mart

Wikidata ID

Q1191685

Store finder url(s)

https://as.chizumaru.com/famimatg/top?account=famimatg&accmd=0

davidhicks commented 11 months ago

I've investigated this brand in the past and found that they appear to be using an unknown coordinate system, possibly a deliberately obscured one as I think I tried all the usual CRS' particularly those local to Japan. It's worth having another look to see whether they've changed the CRS, or we can figure out the CRS they are using.

starsep commented 11 months ago

WGS 84 multiplied by 3600 is a good (but not good enough) approximation. I tested stores next to Tokyo Shinjuku, Nagasaki, and Sapporo train stations.

from dataclasses import dataclass

import pyproj

@dataclass
class Point:
    x: float
    y: float
    lat: float
    lon: float

points = [
    Point(y=502926.8472, x=128468.0448, lat=35.68908, lon=139.69831),
    Point(y=467535.0312, x=117897.5232, lat=32.75234, lon=129.86882),
    Point(y=508871.8044, x=155040.2784, lat=43.06910, lon=141.34991),
]

geod = pyproj.Geod(ellps="WGS84")
for point in points:
    lat, lon = point.x / 3600, point.y / 3600
    distance = int(geod.inv(lon, lat, point.lon, point.lat)[2])
    print(f"{distance} metres. {lat}, {lon} <-> {point.lat}, {point.lon}")

507 metres. 35.685568, 139.70190200000002 <-> 35.68908, 139.69831 385 metres. 32.749311999999996, 129.870842 <-> 32.75234, 129.86882 379 metres. 43.066744, 141.35327900000001 <-> 43.0691, 141.34991

CloCkWeRX commented 7 months ago

Is this the same as

Brand name

FamilyMart Co., Ltd.

Japanese retail chain company

Wikidata ID

Q1191685 https://www.wikidata.org/wiki/Q1191685 https://www.wikidata.org/wiki/Special:EntityData/Q1191685.json

Store finder url(s)

Official Url(s): https://www.family.co.jp/english/company.html