Tag: google-maps

Map View draw directions using google Directions API – decoding polylines

I’m trying to use the Google directions API to show directions on my mapview but I am having difficulties getting the data from the JSON response. I can get the “levels” and “points” strings but can’t work out how to decode them to points on the map. Any help would be much appreciated.

Google Map Android API v2 can't display map in play store application

I am working with the Google Map Android API v2 in an android application. It works fine with the unsigned apk on a different device. But when I have signed the apk and uploaded my application to the Play Store the downloaded application displays a white screen instead of the map.

How to get a picture of a place from google maps or places API

I’m using Google Places API to retrieve data about places, but couldn’t find how to get a picture of that place, Google Places API just provides icon which is not the same. I need the photo you get when you search for a place in Google Maps in a web browser for example. There is […]

Google Maps API, do I need to buy?

I am currently creating an application (iPhone/iPad/Android) that uses a map to display houses offered by a rental company. The app is free on all stores. I have read through the terms and know of this clause: Use of the Google Geocoding API is subject to a query limit of 2,500 geolocation requests per day. […]

How to get city name from latitude and longitude in phone gap?

I am able to get get full address from current latitude and longitude. but how can I get only city name from full address. this is my code. var geocoder; geocoder = new google.maps.Geocoder(); var latlng = new google.maps.LatLng(latitude, longitude); //alert(“Else loop” + latlng); geocoder.geocode({ ‘latLng’: latlng }, function(results, status) { //alert(“Else loop1”); if (status […]

No such property: sonatypeUserName for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

I’m trying to use this blibioteca android-maps-extensions because I need to fix more than 1000 markers on my map . Added the project dependencies in my project : compile project (‘:android-maps-extensions’) But when I update build.gradle get the following error : No such property : for class sonatypeUserName : org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer The username and password appear […]

How to re-position my location button in google mapv2 in android?

I am writing an application in android using Google map-V2 API. I want to over lay action bar just as in the Google map application. And I enabled “My Location ” button. The problem now is that my location button is under the action bar. Is there any way to re-position this button. I want […]

Null pointer exception at mapFragment.getMapAsync(this) while initializing google map

When I use v6.5.87 of Google Play Services, I get a null pointer exception when I call getMapAsync(). I’m using a SupportMapFragment in my Fragment‘s xml layout. My code: SupportMapFragment mapFragment = (SupportMapFragment) getActivity() .getSupportFragmentManager().findFragmentById(R.id.mapFragment); mapFragment.getMapAsync(this); Note: There’s no problem when calling getMap() on older Google Play Services versions, but getMap() is now deprecated (docs). […]

Missing Google Play Services in SDK Manager

I want to use Google Maps in my app. I want to install Google Play Services in the SDK Manager, but when I go to the SDK Manager, I don’t see Google Play Services! Why? How can I install this? Can I install this independently of the SDK Manager? I searched, but I could not […]

Setting a LongClickListener on a map Marker

is there a way to set a longClickListsner on a marker on google maps v2? I want to have the user long press on the marker and have a dialog show with options to delete or view information. Can this be done?

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.