[英]Using google places api in android
I want to use Google places API in android project.But only 1000 requests are allowed in a day.I read somewhere that if i verify with credit card i will be getting 100,000 requests per day.My question is that will i be charged for the 100,000 requests? 我想在Android项目中使用Google Places API。但是一天只允许1000个请求。我读过某个地方,如果我用信用卡验证,我每天将收到100,000个请求。我的问题是我需要为100,000个请求?
I have yet to start the project.Below is some irrelevant code. 我还没有开始这个项目。下面是一些无关的代码。
public void initialiseMap()
{
// check if map is created successfully or not
if (googleMap == null) {
Toast.makeText(getApplicationContext(),
"Sorry! unable to create maps", Toast.LENGTH_SHORT)
.show();
}
else
{
//MapsInitializer.initialize(MainActivity.this);
googleMap.setMyLocationEnabled(true);
googleMap.getUiSettings().setMyLocationButtonEnabled(true);
//googleMap.getUiSettings().setCompassEnabled(true);
// UiSettings uiSettings = googleMap.getUiSettings();
// uiSettings.setMyLocationButtonEnabled(true);
}
//locationManager.requestLocationUpdates(provider, 20000, 0, this);
LatLng latLng = new LatLng(current_latitude, current_longitude);
googleMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));
// Zoom in the Google Map
//googleMap.animateCamera(CameraUpdateFactory.zoomTo(15));
googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 12f));
new RetrieveStoreDetails().execute();
}
No, you will not be charged for 1,00,000 requests, credit card details are for authentication purpose only. 不,您不会为1,00,000个请求付费,信用卡详细信息仅用于身份验证。 You will be charged only if you cross 1,00,000 requests
仅当您处理1,00,000个请求时,您才需要付费
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.