DT @22.08.2015: Updated places API
This commit is contained in:
@@ -36,7 +36,7 @@ public class PlaceProvider extends ContentProvider {
|
|||||||
private static final int DETAILS = 3;
|
private static final int DETAILS = 3;
|
||||||
|
|
||||||
// Obtain browser key from https://code.google.com/apis/console
|
// 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
|
// Defines a set of uris allowed with this content provider
|
||||||
private static final UriMatcher mUriMatcher = buildUriMatcher();
|
private static final UriMatcher mUriMatcher = buildUriMatcher();
|
||||||
@@ -228,7 +228,7 @@ public class PlaceProvider extends ContentProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
data = sb.toString();
|
data = sb.toString();
|
||||||
|
System.out.println("DATA:"+data);
|
||||||
br.close();
|
br.close();
|
||||||
|
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
@@ -256,7 +256,7 @@ public class PlaceProvider extends ContentProvider {
|
|||||||
|
|
||||||
// Building the url to the web service
|
// Building the url to the web service
|
||||||
String url = "https://maps.googleapis.com/maps/api/place/details/"+output+"?"+parameters;
|
String url = "https://maps.googleapis.com/maps/api/place/details/"+output+"?"+parameters;
|
||||||
|
System.out.println("URL: "+url);
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -281,6 +281,8 @@ public class PlaceProvider extends ContentProvider {
|
|||||||
String output = "json";
|
String output = "json";
|
||||||
// Building the url to the web service
|
// Building the url to the web service
|
||||||
String url = "https://maps.googleapis.com/maps/api/place/autocomplete/"+output+"?"+parameters;
|
String url = "https://maps.googleapis.com/maps/api/place/autocomplete/"+output+"?"+parameters;
|
||||||
|
|
||||||
|
System.out.println("URL: "+url);
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user