簡體   English   中英

在Android中使用Google Places API

[英]Using google places api in android

我想在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個請求時,您才需要付費

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM