0

I would like to create an indoor navigation app. But I have some trouble with a floor plan. I have location beacons to identify and detect user's position. I don't want to do estimate like a 3rd party tool it will be costly. Now I have troubles with.

  1. Drawing floor plans
  2. Showing routes a to b.
  3. Scaling of map like zooming.
  4. I have lengthy or big floor, plan how to manage.
  5. Tagging info on clicking on of the part of map show up the info box.

Can you please suggest how to keep floor plan and routes and distances coordinate position.

Aravind A R
  • 2,674
  • 1
  • 15
  • 25
Araf
  • 510
  • 8
  • 32

1 Answers1

2

I recently worked on the indoor navigation project based on beacons. These are the things you have to keep in mind for the questions you asked.

  1. You need the floor plan image or layout image for each of the floors.

  2. For showing route, you have to know some algorithms to achieve the expected result. I used Dijikstra algorithm to plot the route between two points.

  3. For scaling and zooming you have delegate methods in UIScrollViewDelegate

  4. Based on the resolution of the image you have to present it.

  5. Customize the info view on click.

You have to dig deep to make your project work. Need a deep understanding of the swift or objective - c. The answers to your question can't be given in a word. These are some of the understanding based on my experience.

All the best!

Praveen Kumar
  • 298
  • 2
  • 15
  • now im choosing swift – Araf Jun 09 '17 at 09:16
  • 1
    floor plans are keep as simple image file such as jpeg or bmp file. as per your suggention how it use dijikstra algorithm in simple images. i know that algoritham but how to implements in siomple image – Araf Jun 09 '17 at 09:17
  • 1
    @Araf you have to write on your own based on your requirements. You can ask for any code related issues here. Can't ask the whole functionality of your projects. Refer some sites and try it on your own. If you have any issues or doubts on the code you write, we are here to help! – Praveen Kumar Jun 09 '17 at 09:24
  • 1
    Which technique used t0 plot paths on map . if plot a path with graphics as sub layer for map layout then how it manage on scaling time. – Araf Jun 09 '17 at 09:30
  • 1
    @Araf you need the coordinates of the starting and ending position and you have to write the algorithm to traverse through the valid coordinates in between the two points and draw the path using `CAShapeLayer`. For scaling, you have to customize the `UIScrollViewDelegate` methods. – Praveen Kumar Jun 09 '17 at 09:36
  • 1
    I also have one doubt . if user is get navigator start from o single room corner that time i have adjacent point on next room coordinates. then how to navigate the user to current to position to our defined position inside the room – Araf Jun 12 '17 at 10:05
  • @Araf it won't happen like that, beacon-based navigation has some limitations and it won't act like a gps. Are you working on navigation on a floor layout or inside a room? Because both are a different scenario. – Praveen Kumar Jun 12 '17 at 10:11
  • i know that. i hope you don't get my point. – Araf Jun 12 '17 at 10:16
  • you need navigation between two points if the starting and ending points at two different rooms.right? – Praveen Kumar Jun 12 '17 at 10:19
  • For eg: I am staying inside a shop and need to go to another shop.My doubts is, where should I start the navigation since I am showing only the predefined path. – Araf Jun 12 '17 at 10:33
  • yes you are right. – Araf Jun 12 '17 at 10:35
  • It should be on the entrance point of the shop(start) to another entrance point of the shop(end). – Praveen Kumar Jun 12 '17 at 10:37
  • @PraveenKumar Hi. could you share your project so I could use it as an example? Would highly appreciate! – Gulz Sep 06 '17 at 06:06
  • @Araf Hi did you make it work? I am facing the same problem and looking for a solution, would be grateful if you would share your what you ve done so far. thanks – Gulz Sep 13 '17 at 15:24
  • yes, We are use game scenekit to draw map and you action. There have path finding sdk to find by using graph – Araf Sep 16 '17 at 16:28
  • @Araf can you say in more detail? – Alejandro Vargas Feb 13 '19 at 07:06
  • What kind of details you want? – Araf Feb 14 '19 at 09:49
  • @Araf suppose i have a floor plan. Should I use an image of the floor plan or should I draw it ? If you are drawing the floor plan, what are you using to draw ? And where do you get the data to draw it from ? Do you load from JSON ? – Alejandro Vargas Mar 02 '19 at 06:44
  • @PraveenKumar, which solution is the best to place a floor plan image on top of google maps? We found some restrictions in term of image resolution that we still can't explain what are the google maps overlay (this is what we used) restrictions. Thanks – David Jun 07 '22 at 20:09