Questions tagged [google-maps-android-api-2]

Google Android Maps Api v2 is the next generation of Google Maps SDK available for Android developers.

Related tags:

Useful links:

3484 questions
1
vote
3 answers

How does Uber/Ola calculate distance traveled from start point to end-point of the trip?

Uber and Ola mobile app: To calculate distance between start point & end point of the trip we cannot use Google MAP API directly as it may not give the exact route traveled by the car. How do I drop points along the travel path so that I can use…
1
vote
1 answer

Unable to destroy supportMapFragment on onDestroy

I am facing OOM issue as the supportMapFragment doesn't get destroyed. Xml used:
1
vote
3 answers

How To Use Maps in Fragment

i want to make maps in android fragment with use extend fragment this is my code : Maps do not come up, and system force close @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle…
1
vote
1 answer

Google Places API Android find places via LatLng

I am trying to use the Google Places API on Android to find Universities on a map based on where you click. So ideally I could feed the Places API a coordinate and it could tell me the Universities around this coordinate. The PlaceDetectionAPI only…
1
vote
2 answers

Don't close infoWindow on map clicked in android

MarkerOptions marker = new MarkerOptions().position(geom.get(0)).title(id).visible(true); googleMap.addMarker(marker).showInfoWindow(); I have trying with this code but unable to keep the infowindow in open mode on map click.
1
vote
3 answers

how to display the names or labels over a marker on google map

i tried using MarkerOptions marker = new MarkerOptions().position(geom.get(0)).title("hai how are bgdj"); map.addMarker(marker); where geom.get(0) is the LatLng and map is google map
1
vote
1 answer

Can't find my current location button in Android Marshmallow

I can't find my current location button in Android Marshmallow. I am using google map api. I have already enabled these: mMap.setMyLocationEnabled(true); mMap.getUiSettings().setMyLocationButtonEnabled(true); I have tried in jellybean,…
1
vote
1 answer

What is the MapFragment's cache expiry(google maps android api)

I am trying to figure out cache expiry headers for the map rendered in android map fragment. As i see google has a policy for it's own map app's offline access for 30 days. What would be the expiry period for cache through " Maps Android API".
1
vote
0 answers

at run time application responses a null point exception but debug time it works properly

I am a beginner to android development and i am building an application related to map creating the route. the lat long data are taken from the php API. the problem is when i debug the program it works perfectly fine but when i run the application…
1
vote
3 answers

Do I need an API key for each API I use?

I'm trying to use both google maps API and places API in my android app (includes a map and a place autocomplete activity), but the API key I got for google maps doesn't seem to be working for the place autocomplete activity, I tried getting another…
1
vote
0 answers

Custom Google Maps API Key

STORY: Our company were using Google Maps API for the past couple of years. We had an old API key that we were using. Today the key got expired or deleted by an unknown entity and all our applications cannot load maps anymore. I have tried to get to…
1
vote
0 answers

I want to retrieve Postal_Code/ ZipCode specifically in Pakistan using google Api or any other one

I have gone through the different question here on Stackoverflow but none of them helped me out yet. I am using google API in my app and needs to retrieve the zipcode. Currently I am getting all the other parameters but zipcode. Any…
1
vote
1 answer

can not resolve method getProjection() and getMapCenter()

i am implementing long click to get latlang on mapview, i referred this tutorial. but i am getting error here is my code: import com.google.android.gms.vision.barcode.Barcode; public class MyCustomMapView extends MapView { public interface…
Sagar Chavada
  • 5,169
  • 7
  • 40
  • 67
1
vote
1 answer

Android change marker title dynamically

My target is to change marker title on button click. The problem is that I cannot get marker and set title of it in onCreate() because it is initialized in onMapReady(). I have the following code: public View onCreateView(LayoutInflater inflater,…
IntoTheDeep
  • 4,027
  • 15
  • 39
  • 84
1
vote
1 answer

How do I create a URL to query Google places with the CID

I have an app that searches the Google Places API and returns places based on categories that I choose. The result is a JSON Object that contains a lot of data about each place. I want to share this place via email with other people. I extract…