I want to programmatically store a part of Google Map for offline use in my app.
This feature is in Google Maps app, but I didn't know how to add it in my app
Related
So I am trying to create a route planner that has google maps but I want to have google maps working in android studio and allow the user to input their source location and their destination location and click display track and it will show the user the routes to them any idea how I can do this?
You can integrate Google Maps into your Android Studio project and display the route between two locations using the Google Maps Directions API. You'll need to obtain an API key from the Google Cloud Console and include it in your project.
You can then make HTTP requests to the API to retrieve the route information and display it on the map.
To find the API documentation and tutorials on how to integrate Google Maps into Android Studio at
https://developers.google.com/maps/documentation/directions/start.
I wish to create a maps app which allows people to geotag media to it such as music or photos. The map should also be stylised accordingly to this design here: https://snazzymaps.com/style/151/ultra-light-with-labels What are the steps I need to take to create such an app using the google maps sdk?
Thanks
I think it is not possible or the Google Maps Android API does not support custom styles, The only one that you can change here is the Map types (Normal, Hybrid, Satellite, Terrain). Only the Google Maps JavaScript API can support this style maps.
If you check this thread, you will see here that it is already requested to have a custom style maps in Google Maps Android API. Just check it always if there is an update about here.
I know that from android 3.1 and above you can't turn on location services manually. But in Google maps it simply shows an dialog which prompts me to switch it on. This directly switches it on (In android 5.1 - Lollipop). So how does google do it? Is it some Google location services API I can use or should I direct the user to the location services settings screen?
Thanks.
The are making use of theSettingsApi It allows you to check if the location services are available on the device and there is a complete example provided by google on github that shows how to use this API. The sample code will prompt the user to enable location if it's switched off. The dialog that pops up when you fire the intent is similar to what you see in Google Maps.
I am very new to android development and i got stuck in whether to use android key or browser key for place autocomplete for google place api. It would be very good if somebody can help since on google place api documentation(https://developers.google.com/places/android/signup) it is written that
Note: You need an Android API key, not a browser key. You can use the same API key for your Google Maps Android API v2 apps and your Google Places API for Android apps.
but at another place(http://codetheory.in/google-place-api-autocomplete-service-in-android-application/) it is written that
Places API doesn’t work with Android or iOS API key
Please Help !!!
If you're using the web service, use your browser key. If you're using the Android library, use your Android key.
I am using Google Maps API v2 in my app. I want to enable navigation feature in my app. I have read other posts which start an Intent and open stock Google Maps application to show navigation. But I want to display the navigation inside my application(SupportMapFragment that I have used) only. How can I implement that?
This code works well but it starts an Intent :
Intent NavIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=" + incAddress));
startActivity(NavIntent);
there is no way to show the google maps app navigation in your app, it is a completely different app. the only way you can display navigation in your app is to use Google Directions API and plot the route on your map but then you dont have the turn by turn directions.
I created a library that uses the google directions api and its easy to use if you want to try it out.
https://github.com/tyczj/MapNavigator