Android maps api show polylines snapped to road - android

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?

Related

is it possible to add my customized indoor map using google map sdk for my android app?

I want to develop an app using rssi of ble,wifi to set position of my users in indoor environment, or something else for example when they are near specific location send theme notification.
I have to add my information and markers to google map. and my own simple map.
it is like customized map for my users in my app.
I have this place in map but I want to add walking path and more information.
right now it does not have anything. no walking path for example.no stores information and exact location.
and i want add something like these or much simpler:
Sample indoor map 1
Sample indoor map 2
as I see you mentioned indoor map is just available for certain country.
this link : are available in select locations
and again you mentioned : 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.
my country is not the part of your supported list (sanction). but the google maps app is still working here.
I just want using google map to be shown with my customized map and information,markers just for my users in my app not public.
is it possible ?
I place my beacon and the position of the user is set by my algorithm in map. I do not know that I'm in right way or not. where I should start?
thanks a lot.
You can use Google Maps SDK for Android to create a map in your android app. You can customize the map on this sdk like putting markers, info windows, styles etc.
At high zoom levels, the map shows floor plans for indoor spaces which are available in select locations you mentioned.
As stated in the Maps SDK for Android documentation - 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.
Hope this helps!

Finding the road with Google map api

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.

Google Maps API - Drawing Polylines offline

I am creating an application, and I haved the coordinates to draw the polylines I need, but I want to draw those polylines when I am offline to show where the user is on the route via GPS. Is it possible? I have read about OSMAND but I am already using Google Maps in the app I am developing and I would like to keep it like that.

Google Direction API - Indoor directions

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 ?

Android Google maps API

I`m creating app with GPS map. Before I start understanding how to use the API in my app I have some questions.
Can I overlay an image on the map, without that the user knowing I use Google maps API?
Can I cut and use only specific area of the map and limit user to that map, lets say show only some amusement park and show the user location, and user cant go outside my map?
I need to show on an image the location of user, without navigation, should I use Google maps API or different approach?
From the looks of it you want the Google Static Maps API.
https://developers.google.com/maps/documentation/staticmaps/
This will generate an image of a map when you give it the latitude, longitude etc. You can then use this in an ImageView.
The advantage is that you don't have to create an expensive MapView, but it will not be interactive

Categories

Resources