Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android mobile app: indoor maps, walking directions

I want to edit a custom Google map (because I need to add sidewalks for walking) with all of its original functionality for a college campus and also create the interior of building containing classrooms with multiple floor detection so I can implement it into a mobile app. Can this be done? And with Javascript? I am thinking that based on where they arrive on campus using GPS along with this customized Google map overlay, they can give the building and classroom and it will use the Google Maps API pre-built "find shortest route" method somewhere along there. First I need to build this with Android, then possibly for Iphone.

like image 561
Chase Rose Avatar asked Jan 31 '12 18:01

Chase Rose


People also ask

Does Google Maps have a walking mode?

You can get directions for driving, public transit, walking, ride sharing, cycling, flight, or motorcycle on Google Maps. If there are multiple routes, the best route to your destination is blue, all other routes are gray.

Is there an app for walking directions?

MapMyWalk GPS for iPhone, Android or Windows MapMyWalk allows you to see the time spent walking, distance, pace, speed, elevation, and calories burned. When you finish, MapMyWalk allows you to upload and save your workout data and view it both on the app and on the MapMyWalk website.

How do I add an indoor map to Google Maps?

Next visit the Google Maps Floor Plans website and click Add a Floor Plan. Find the building on Google Maps and place the map's pin into its center, if it isn't already there. Next click “Use this Building” and then provide information about the building and the floor plan. You will then be asked to upload your image.

How do I get walking route on Google Maps?

Select “walking” as mode of transportation. Since you're planning on walking, click on the pedestrian icon on the toolbar above the section on the upper left corner of the page. The routes on the map will slightly change to accommodate your preferred method of transportation.


1 Answers

The native Google Maps application already has all of the functionality you describe.

  • Google recently released indoor mapping. Go to maps.google.com/floorplans to upload your buildings' floor plans.
  • Use Google Map Maker to add walking paths to your campus.

Now anyone can use their built-in Maps app to get walking directions between campus buildings. (Example - notice that the route takes you through campus walkways, not along the surrounding roads.)

To see indoor maps in action, use the Maps app on your Android to zoom in on an Ikea or take a look at this video.

If you have an app you'd like to launch the Maps app from, do this:

Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?saddr=START_LOCATION&daddr=DESTINATION_LOCATION&dirflg=w"));
if (isAppInstalled("com.google.android.apps.maps")) {
    intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
}
startActivity(intent);


// helper function to check if Maps is installed
private boolean isAppInstalled(String uri) {
    PackageManager pm = getApplicationContext().getPackageManager();
    boolean app_installed = false;
    try {
        pm.getPackageInfo(uri, PackageManager.GET_ACTIVITIES);
        app_installed = true;
    } catch (PackageManager.NameNotFoundException e) {
        app_installed = false;
    }
    return app_installed;
}

(Code shamelessly stolen from here.)

like image 132
josh3736 Avatar answered Sep 27 '22 19:09

josh3736