Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教为什么国家解析不对 #637

Closed
gavenwan opened this issue Apr 4, 2024 · 11 comments
Closed

请教为什么国家解析不对 #637

gavenwan opened this issue Apr 4, 2024 · 11 comments

Comments

@gavenwan
Copy link
Contributor

gavenwan commented Apr 4, 2024

地图上显示确实有其他国家的路线,但是统计里仍然显示“1个国家”,是不是在src/static/run_countries 添加这个国家的地理围栏数据才可以?

@yihong0618
Copy link
Owner

项目开源么?链接发一下?

@gavenwan
Copy link
Contributor Author

gavenwan commented Apr 5, 2024

项目开源么?链接发一下?

https://wenxiaowan.com

@gavenwan
Copy link
Contributor Author

gavenwan commented Apr 5, 2024

项目开源么?链接发一下?

https://wenxiaowan.com
比如2024/2/17 的记录,是在新加坡,但是并没有解析为国家

@yihong0618
Copy link
Owner

我看看。

@orionna319
Copy link
Collaborator

我看wenxiaowan.com/assets/activities-xxx.js中,2024-02-17 location_country是空的。

{
	"run_id": 1708123875e3,
	"name": "run from gpx",
	"distance": 13032.07801833204,
	"moving_time": "1:34:12",
	"type": "Run",
	"start_date": "2024-02-16 22:51:15",
	"start_date_local": "2024-02-17 06:51:15",
	"location_country": "",
	"summary_polyline": "xxx",
	"average_heartrate": null,
	"average_speed": 2.3057462877445225,
	"streak": 1
}

@SongJgit
Copy link
Contributor

我也遇到了这个问题。
strava同步下来的好多数据location_country都仅仅显示了China,而没有详细的省份之类的信息。
但是实际上在strava中是正常的,

两条信息都是strava中同步下来的,但是一条是keep传到strava(act.json中有详细位置),一条是garmin传到strava(act.json中没有详细位置)
对应有的

"distance": 9993.1,
"moving_time": "0:52:51",
"type": "Run",
"start_date": "2024-03-30 23:47:56+00:00",
"start_date_local": "2024-03-31 07:47:56",
"location_country": "*******************(代替相信信息)",

strava标题显示2024年3月31日 星期日 上午7:47 中山街道, 河北省
石家庄马拉松十公里

对应没的

"distance": 35823.7,
"moving_time": "1:10:30",
"type": "Ride",
"start_date": "2023-08-06 12:29:01+00:00",
"start_date_local": "2023-08-06 20:29:01",
"location_country": "China",

2023年8月6日 星期日 下午8:29 柳青街道, 山东省
傍晚骑行

@SongJgit
Copy link
Contributor

两条数据在网页的地图中都是有正常的轨迹并且正确的,仅仅只是缺失了location_country.

@yihong0618
Copy link
Owner

我也遇到了这个问题。 strava同步下来的好多数据location_country都仅仅显示了China,而没有详细的省份之类的信息。 但是实际上在strava中是正常的,

两条信息都是strava中同步下来的,但是一条是keep传到strava(act.json中有详细位置),一条是garmin传到strava(act.json中没有详细位置) 对应有的

"distance": 9993.1,
"moving_time": "0:52:51",
"type": "Run",
"start_date": "2024-03-30 23:47:56+00:00",
"start_date_local": "2024-03-31 07:47:56",
"location_country": "*******************(代替相信信息)",

strava标题显示2024年3月31日 星期日 上午7:47 中山街道, 河北省 石家庄马拉松十公里

对应没的

"distance": 35823.7,
"moving_time": "1:10:30",
"type": "Ride",
"start_date": "2023-08-06 12:29:01+00:00",
"start_date_local": "2023-08-06 20:29:01",
"location_country": "China",

2023年8月6日 星期日 下午8:29 柳青街道, 山东省 傍晚骑行

这个应该可以手动更改?

@yihong0618
Copy link
Owner

我可以写个脚本把没国家的都加上国家。。。

@SongJgit
Copy link
Contributor

我似乎已经找到了问题。
似乎是因为在墙内?
因为我自己手动试了一下。
geopy会直接超时,然后我回想了一下,没有地理信息的那些是我本地同步的,所以解析出了问题。

@yihong0618
Copy link
Owner

我似乎已经找到了问题。 似乎是因为在墙内? 因为我自己手动试了一下。 geopy会直接超时,然后我回想了一下,没有地理信息的那些是我本地同步的,所以解析出了问题。

是的。。这个需要梯子

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants