Indoor Custom Maps Application

笑着哭i 提交于 2019-12-02 21:23:11

What you are looking to do is create a GIS-type tool, not a map tool. Google Maps is for maps of known places and has data already built in for much of the world. I'm not aware of any GIS-support in Google maps for unknown places. While you can add layers to Google Maps (including your own GIS-type building map layer) I don't know that it will be of much help as you probably want to "zoom in" below the resolution that Google maps supports.

You can use Bluetooth or WiFi to locate the device, provided you have known end-points that you can identify the location of. In this case, I'd think you'd either need to estimate the location of the device (similar to how Google Maps draws a circle around the locator on the map when locating solely from wireless carrier towers). If you can detect the device at multiple doggles or transmitters I suspect you could triangulate to get a better fix.

Again, depending on your scale, you could use the built-in locator service with cell-tower location information, but I'm guessing that resolution is much to high for your application.

I got the workaround for plotting the dongle locations on the custom map using bluetooth.This is not the ideal answer but all I wanted was the approximate location of the device in a indoor setting.We can use the Android Bluetooth API to get RSSI readings from all the dongles and find the nearest dongle from the device.

Now to plot it on the custom map we can get an image of the map and overlay another marker image on the location coordinates(i.e using the pixel value of the dongle locations on the image).We can also add zooming functionality of the image to make it look like Google maps.We can also add ontouchlistener functions to add the functionality of clicking on the markers.

This is just the workaround I found.It wont give you the exact location of the device.If anyone wants the code please email to me.

Thanks,

Ameya

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!