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.
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.
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.
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.
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.
The native Google Maps application already has all of the functionality you describe.
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.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With