我尝试构建一个具有共享功能的应用程序,以在 facebook 上绘制路线作为健身帖子。我认为所有的东西都已经涵盖了在地图上绘制路线。
<!-- Facebook opne graph meta data start -->
<!-- Standard Open Graph object properties -->
<meta property="fb:app_id" content="FACEBOOK_APP_ID" />
<meta property="og:type" content="fitness.course" />
<meta property="og:url" content="http://sample.url" />
<meta property="og:title" content="User's Diary" />
<meta property="og:description" content="User rode 8.0km for 11m 36s" />
<meta property="og:image" content="http://14.63.224.224/img/logo@220.png" />
<!-- Other Open Graph properties -->
<meta property="fitness:distance:value" content="8.0" />
<meta property="fitness:distance:units" content="km" />
<meta property="fitness:duration:value" content="636" />
<meta property="fitness:duration:units" content="s" />
<meta property="fitness:speed:value" content="12.3065" />
<meta property="fitness:speed:units" content="m/s" />
<meta property="fitness:calories:value" content="181.7" />
<!-- ActivityDataPoint 0 -->
<meta property="fitness:metrics:location:latitude" content="37.51844" />
<meta property="fitness:metrics:location:longitude" content="126.9918" />
<meta property="fitness:metrics:location:altitude" content="16.61127" />
<!-- ActivityDataPoint 1 -->
<meta property="fitness:metrics:location:latitude" content="37.51769" />
<meta property="fitness:metrics:location:longitude" content="126.9908" />
<meta property="fitness:metrics:location:altitude" content="13.85767" /><
!-- ActivityDataPoint 2 -->
<meta property="fitness:metrics:location:latitude" content="37.51714" />
<meta property="fitness:metrics:location:longitude" content="126.9897" />
<meta property="fitness:metrics:location:altitude" content="22.03296" />
<!-- ActivityDataPoint 3 -->
<meta property="fitness:metrics:location:latitude" content="37.51693" />
<meta property="fitness:metrics:location:longitude" content="126.9887" />
<meta property="fitness:metrics:location:altitude" content="23.54077" />
<!-- ActivityDataPoint 4 -->
<meta property="fitness:metrics:location:latitude" content="37.51688" />
<meta property="fitness:metrics:location:longitude" content="126.9878" />
<meta property="fitness:metrics:location:altitude" content="27.52216" />
<!-- Facebook opne graph meta data end -->
我的问题是
我需要什么样的指标属性才能像 Nike Run 那样绘制正确的路线?
是否有某种顺序来列出位置值的元数据?