現在地判定を強化

This commit is contained in:
harukin-expo-dev-env 2024-05-27 16:38:14 +00:00
parent 58dcc27704
commit 43b911c23f

View File

@ -52,7 +52,7 @@ export default function Menu({ getCurrentTrain }) {
const makeCurrentStation = (location) => { const makeCurrentStation = (location) => {
if (!originalStationList) return () => {}; if (!originalStationList) return () => {};
const findStationEachLine = (selectLine) => { const findStationEachLine = (selectLine) => {
const searchArea = 0.0015; const searchArea = 0.002;
const _calcDistance = (from, to) => { const _calcDistance = (from, to) => {
let lat = Math.abs(from.lat - to.lat); let lat = Math.abs(from.lat - to.lat);
let lng = Math.abs(from.lng - to.lng); let lng = Math.abs(from.lng - to.lng);