I want to make an Android app with a map that contains directions but not Google Maps

I want to make an Android app that downloads a map that I created from inside the building. I want him to provide directions between one room to another. And between the sexes, if possible.

I would like the map to be scalable as well as interactive. that is, you can click where you are and where you want to go, and the application will provide you with directions. OR you enter in the text boxes which room you are in and where you want to go, and again the instructions are provided.

I came across something that allowed you to use an open source map and add your own nodes to every corner or link location. But I can no longer find the site after an hour of Google search.

Does anyone know how I can do this?

+7
source share
4 answers

This is one example where an idea sounds simple, but in fact it is not. There are many tasks that you need to solve, some of which have already been discussed.

1) How to simulate an office. This should be done so that it is easy for you to model, but the file is small. It should be in a format that your path-finding algorithm can understand. This means that when designing the path, you will make changes to the data.

2) Search / enter location. Done by hardware (gps will not clip it), or the user says where they are. It can be done with NFC and tags located in the office, and not an ideal solution, tags should be visible. The user can enter their location, but they may be lost and do not know where they are.

3). As the data is presented, you can write a magical 3D application showing the mission of impossible building layout. It will be six months of work in it! Remember that your map is in 3D; roadmaps tend to be 2D. (with some volatiles ...)

4) progress tracking. The application really needs to know how you do it, if you leave the route, it will tell you to return. This will again be difficult to achieve indoors. Tracking tracking is one of the areas in which PND (Personal Navigation Device) operates, as it really enhances user confidence in the software.

Working at TomTom, I can say that you can be in this for years.

How is this a collage project, can I offer a simpler project?

Do it with a 2D map, a simple map-based grid that looks a bit like a classic mouse in a maze problem. Enter A * to find the path. After that, you can, if you have time, extend it for your original plan.

The book I found very well in the past is "Programming a Game AI with an Example." ISBN 1-55622-078-2. Chapter 8 talks about finding paths and has a very nice role in *.

Good luck. :)

+3
source

Although this may not be the answer you are looking for:

You can always write an application that does this. If you are ready to position the nodes on the map, you can hypothetically write a program that uses the game path algorithm (mostly used), such as A *, and find out the route from there. It would be difficult, but I would think that by placing Nodes and vector-mapping them with a cost related to vectors (maybe measured in feet / meters or something like that), you can set this with A *. ..

Hard to say. I tried a quick google and also came out empty.

+2
source

You can create a MapActivity , which can then contain a MapView (MapView cannot be embedded in any other activity), which is an interactive map of honesty and kindness, but it is not completely complete.

MapView is mainly intended for displaying a map of a specific area with custom labels on it. You can set the map focus, zoom level if it displays traffic data and several other small parameters. But besides this, you will have to build the route overlay yourself. And there is no possibility of turning in turn or something else. These are just "dumb" pads.

The Google DID , however, has recently updated the Google Maps app to include maps and indoor navigation. They provide a website that you can go to and present a floor plan of your building so that it can be added to the official app.

Once your floor plan has been officially added, you can simply launch the official app to make your navigation for you using an intent similar to this:

Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?saddr=20.344,34.34&daddr=20.5666,45.345")); startActivity(intent); 
+1
source

During my Masters project, I encountered the same problem. However, my solution is not entirely complete, but I planned it. I could not fully implement it due to various limitations. It may seem complicated, but I'm not sure how to convey it.

  • Store cards statically, not dynamically - I mean that photos / photos appear when someone wants to move from one room to another or one floor to another. Dynamic routing is a bit complicated. Store photos in advance so they pop up.

  • Develop a shortest path algorithm, for example, Dijkstra's algorithm. You will get ready-made java programs to execute this algorithm. Using this, you can get routes. Once the map is accessible, making it clickable, and adding scaling options should not be a big problem.

Combine both steps somehow (sorry, there is no code here, because I myself could not come up with one). As Richard said above, I had NFC to implement it (my whole project was based on this). NFC is mainly RFID technology and therefore wireless. You can use 802.11 b / g / n to implement the network side. If you need further help, please let me know. I will help as much as I can.

All the best.

+1
source

All Articles