DT @22.08.2015: Updated places API

This commit is contained in:
Dennis Thießen
2015-08-22 15:33:11 +02:00
parent 00cc821499
commit 5d85918476

View File

@@ -36,7 +36,7 @@ public class PlaceProvider extends ContentProvider {
private static final int DETAILS = 3;
// Obtain browser key from https://code.google.com/apis/console
String mKey = "key=AIzaSyALm-1lEf5xualfyHdmNEdAsXlbwOQhbI8";
String mKey = "key=AIzaSyA-ZT2ScTn4e9uxeMRPaT8cPuTF3eCKiXc";
// Defines a set of uris allowed with this content provider
private static final UriMatcher mUriMatcher = buildUriMatcher();
@@ -228,7 +228,7 @@ public class PlaceProvider extends ContentProvider {
}
data = sb.toString();
System.out.println("DATA:"+data);
br.close();
}catch(Exception e){
@@ -256,7 +256,7 @@ public class PlaceProvider extends ContentProvider {
// Building the url to the web service
String url = "https://maps.googleapis.com/maps/api/place/details/"+output+"?"+parameters;
System.out.println("URL: "+url);
return url;
}
@@ -281,6 +281,8 @@ public class PlaceProvider extends ContentProvider {
String output = "json";
// Building the url to the web service
String url = "https://maps.googleapis.com/maps/api/place/autocomplete/"+output+"?"+parameters;
System.out.println("URL: "+url);
return url;
}