作者Nexus5566 (Nexus5566)
看板AndroidDev
标题[问题] 资料库经纬度资料标示在google map上
时间Sun Jun 7 16:54:45 2015
目前正在实作毕业专题
使用google map显示自己目前所在位置後
从sqlite资料库找出附近的点,并显示
但是目前资料库约有7000笔资料
个别计算似乎有点费时
已经有google过,但可能关键字错误,所以没有找到相关方法
不知道各位有没有什麽好方法...
另外想请问一下,我想实作大概下方的画面(以下为网路上的图)
http://imgur.com/SBmJu82
大概就是想要下方选单列选择地图之後,地图会显示在中间
目前查了一下看起来map是用fragment
但目前map的xml档案如下...
<fragment xmlns:android="
http://schemas.android.com/apk/res/android"
xmlns:tools="
http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/map"
tools:context="com.tsai.shepherd.telepathy.MapsActivity"
android:name="com.google.android.gms.maps.SupportMapFragment" />
爬了一下网路,看到官方文件写说You cannot inflate a layout into a
fragment when that layout includes a <fragment>.
请问还有什麽其他方法吗
抱歉,问题有点多,先谢谢各位
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 59.127.42.121
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/AndroidDev/M.1433667287.A.89E.html
※ 编辑: Nexus5566 (59.127.42.121), 06/07/2015 16:55:15
1F:推 tericky: 可以使用 Spatialite 先把资料存成空间资料 06/07 22:07
2F:→ tericky: 再用geometry的方式下SQL查询,例如距离某点X公里的资料 06/07 22:08
4F:→ Nexus5566: 感谢tericky大,很有帮助^^ 06/07 23:50