Android Google maps API - android

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

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!

Android maps api show polylines snapped to road

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?

Using maps in offline mode

I'm starting developing a project of an android app.
For this project i need a map where i can draw circles, polylines and polygons and click in all of this draw shapes to show informations about each one. At this point, googlemaps + spatialite or googlemaps + quadtree + utils to identify if a LatLng belongs to a circle/polyline/polygon can solve the problem but i have one more requirement: i need to cache a zone of the map to work with it on the street without internet. I know that google maps official app can do this with th typing of "Ok Maps" but there are anyway to use that cache in my application? There are another way to do a cache of the map before going to the street and go without internet?
Preferably i would like to use google maps but I'll have to use another api? What?
Regards
Due to the need for Google to check your api key, I have not seen any way for third party apps to access google maps offline. If you need offline capabilities, one of the main solutions is something called osmdroid which has a similar interface to google maps but you can cache tiles for offline use.
OSMDroid

How to develop a weather application on android Google Map?

I would like to make an Android application using Google Map.
Can I show weather report on that map? If it's possible, which services has needed to get the weather report on map?
mapView = (MapView)findViewById(R.id.myMapView);
mapView.setSatellite(true);
How to show the weather report on map?
To do this you would want to look into overlays. These allow you to position any information over your map and unlock a lot of powerful features for your users. I cant give a specific example since I don't know what data source you are getting weather information from. However I would suggest using the map center as your lat/lng and using a weather API to find the current conditions. Then overlay that on the map.

Android Google maps co-ordinates

I have an app which stores co-ordinates. I am using Google maps to show the location to allow full use of the maps app. I am using the intent call and placing the co-ordinates in the q=xxxxxxxxx,xxxxxxxxx part.
This works, however when Google maps shows the location it often finds a point on the road, sometimes a little distance from the actual co-ordinates.
Is there a way to get maps to show the actual point?
http://maps.google.com/maps?q=(#24.397611,120.780512)
from
http://mapki.com/wiki/Google_Map_Parameters

Categories

Resources