如何建立一个商场地图Android版 [英] How to build a mall map for Android

查看:181
本文介绍了如何建立一个商场地图Android版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立一个Android应用程序商城,让用户可以在重新present每层楼的商场地图导航和计算自己的位置和所选择的地方,坐落于商场之间的最短路径中东,我听说过谷歌室内地图,但我想我不能用了,我该怎么需要做出一个用于商场,我可以把它的3-D?任何建议,或者这个文章可以提供帮助。

I want to build an Android application for a mall, so the user can navigate in a map that represent each floor in the mall and compute the shortest path between his position and the selected place, the mall located in the middle east, I heard about Google indoor maps but I think I can't use it, what do I need to make a one for that mall, can I make it 3-D? Any suggestion, or articles about this can help.

推荐答案

这是不是一个好回答你的问题,但我认为它会为你节省一些工作。还有将要与你所描述的应用程序的一些问题。主要是,如果你想显示用户所在位置的商场地图上,并计算出它的最短距离。如果你的商场是在室内,你怎么来获取用户的位置? GPS是不太可靠的室内除非有窗户无处不在。另外,您将需要以确定哪些地板用户在3-D定位。

This isn't a good answer to your question, but I think it will save you some work. There are going to be some issues with the app you describe. Mainly, if you want to show the user's location on the mall map and calculate shortest distance from it. If your mall is indoors, how are you going to get the user's location? GPS isn't very reliable indoors unless there are windows everywhere. Plus you'll need a 3-D fix in order to ascertain what floor the user is on.

作为一个分拆@ hsander的想法,你可以有用户拿附近的商店的标志/标识和使用图像处理(如谷歌护目镜)的照片,以配合它,并找出其中的用户。你就不能够实时显示在用户的运动,但是这将是一个自由溶液和你将能够处理该问题与多个楼层

As a spin-off of @hsander's ideas, you could have the user take a picture of a nearby store's sign/logo and use image processing (e.g. Google Goggles) to match it and figure out where the user is. You wouldn't be able to show the user's movement in real time, but it would be a "free" solution and you would be able to deal with the issue with multiple floors.

如果你有一个预算,并安装的东西在商场的能力,你可以把在异地商场屋顶的GPS天线,然后使用一个中继器来播放在商场里面的信号。我公司有这样的设置,我也得到完美的GPS在室内。你就可以知道哪些转发器的用户通过他们的GPS坐标更接近,并将它们相应地。

If you have a budget and ability to install things in the mall, you could put GPS antennas on the roof of the mall in different places and then use a repeater to broadcast the signal inside the mall. My company has a setup like this, and I get impeccable GPS while indoors. You would be able to know which repeater the user is closer to by their GPS coordinates and direct them accordingly.

在显示器方面,你可以使用简单的查看或SurfaceView显示地图平面布置图。使用地图相关的API很可能会矫枉过正,它会更加的有用,而无需用户的位置。我建议计算最短路径,创建一个图形,并使用 Dijkstra的最短路径算法。你可以使用谷歌地图,以帮助您创建与实际距离的节点图。

In terms of display, you can use simple View or SurfaceView to display a map floorplan. Using a map-related API is probably going to be overkill and it will be even less useful without user's location. I suggest for calculating shortest path, you create a graph and use Dijkstra's shortest path algorithm. You could use Google maps to help you create a node graph with real distances.

这篇关于如何建立一个商场地图Android版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆