2015-06-16 10 views
5

मैं एंड्रॉइड Google स्थानों पर काम कर रहा हूं एपीआई ऑटोकॉम्प्लेट, सब कुछ ठीक काम कर रहा है, लेकिन जब मैं Google LatiClient ऑब्जेक्ट के लिए किसी विशिष्ट क्षेत्र में खोज को प्रतिबंधित करने के लिए कस्टम LatLongBounds सेट करता हूं, तो वापस आने वाले परिणाम नहीं हैं वह बाध्य मैं नहीं कर रहा कि मैं क्या गलत कर रहा हूँ। मैं यही कर रहा हूँ।Google स्थल API (एंड्रॉइड) LatLongBounds काम नहीं कर रहे

LatLngBounds bounds = new LatLngBounds(new LatLng(24.85764939832254,67.0641630948748), new LatLng(24.866642601677466,67.07407490512522)); 
LatLng northeast = bounds.northeast; 
LatLng southwest = bounds.southwest; 

android.util.Log.e("North-East", northeast.toString()); 
android.util.Log.e("South-West", southwest.toString()); 

mAdapter = new PlaceAutocompleteAdapter(getActivity(), android.R.layout.simple_list_item_1, GoogleApiClientHelper.get(getActivity()).getGoogleApiClient(), bounds, null); 
mAutocompleteView.setAdapter(mAdapter); 

उत्तर

0

मुझे एक ही समस्या है। मुझे लगता है कि एंड्रॉइड के लिए Google प्लेस पूरा नहीं हुआ है। एपी पोर वेब ठीक काम करता है, मुझे कुछ वेब साइटें मिलीं, जहां उन्होंने कहा कि आप इस एपीआई वर्ड वेब का उपयोग कोड के लिए कुछ "फिक्स" कर सकते हैं। मुझे लगता है कि यह सही तरीका नहीं है, लेकिन अगर यह काम करता है, तो यह काम करता है।

Google Places API request denied for Android autocomplete, even with the right api key

संबंधित मुद्दे