I am using the Google's Android MAPs API V2 for indoor mapping in our app. It displays the indoor map correctly. Now, I am calling the Directions API to get the co-ordinates between two points to plot them on the indoor map for the way finding. However the Directions API always returns outside walking co-ordinates for two points selected within the indoor map. Is Indoor directions API only available for Google's Maps app ?
Related
How do I use the Google Maps Geolocation API for indoor positioning and detecting not just lat/long but also elevation. Alternatively is there a way for the Directions API to tell me if indoor directions were completed?
Based from this document Indoor maps, you can use Google Maps API. At high zoom levels, the map will show floor plans for indoor spaces such as airports, shopping malls, large retail stores, and transit stations. These floor plans, called indoor maps, are displayed for the 'normal' and satellite map types (GoogleMap.MAP_TYPE_NORMAL and GoogleMap.MAP_TYPE_SATELLITE). They are automatically enabled when the user zooms in, and they fade away when the map is zoomed out.
Indoor maps (floor plans) are available in select locations. If floor plan data is not available for a building that you would like to highlight in your application, you can:
Add floor plans to Google Maps directly. This will make your floor plans available to all users of Google Maps.
Display a floor plan as a ground overlay or tile overlay on your map. This will enable only users of your application to view your floor plans.
If you have added a MapFragment (or MapView) programmatically, then you can configure its initial state by passing in a GoogleMapOptions object with your options specified. The options available to you are exactly the same as those available via XML. You can create a GoogleMapOptions object like this:
GoogleMapOptions options = new GoogleMapOptions();
options.mapType(GoogleMap.MAP_TYPE_SATELLITE)
.compassEnabled(false)
.rotateGesturesEnabled(false)
.tiltGesturesEnabled(false);
The Google Maps Elevation API provides elevation data for all locations on the surface of the earth, including depth locations on the ocean floor (which return negative values). Check this: https://developers.google.com/maps/documentation/elevation/start
Im working on a Android project which should trigger a method when i come near a road from a building or something
is there a way to detect near by road in android ?
Use the Google Maps Roads API, more specifically use the snap to roads feature which snaps the points (lat/lng) to their most likely position on roads using the Roads API.
I am planning to create a app which displays bus lines on a google maps map and I want it to display the paths the buses take. I know about polylines and polygons in google maps, but idk how I can make them snap to the road. Is that possible? Can I just use the Directions API for that?
Currently I'm developing an Android app that uses the GMaps v3 API to draw a route and calculate the kilometers along that route. I was wondering if there is any way to save such route into a KML or a file of sorts into the device, so it can later be loaded into it.
Thanks!
Does the API give access to bike trails in Google maps? I need to be able to display existing bike maps on both Android and ios apps
There is no biking layer currently in maps v2, the only thing you can do is get biking directions.