gpt4 book ai didi

java - 在android中使用google place api

转载 作者:行者123 更新时间:2023-12-01 12:39:24 24 4
gpt4 key购买 nike

我想在 Android 项目中使用 Google Places API。但是一天只允许 1000 个请求。我在某处读到,如果我用信用卡验证,我每天将收到 100,000 个请求。我的问题是我会吗?对 100,000 个请求收费吗?

我还没有开始这个项目。下面是一些不相关的代码。

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();
}

最佳答案

不,您不会为 1,00,000 次请求付费,信用卡详细信息仅用于身份验证目的。仅当您超过 1,00,000 个请求时才需要付费

关于java - 在android中使用google place api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25260254/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com