google-places-api

Show Current Location and Nearby Places and Route between two places using Google Maps API in Android

烂漫一生 提交于 2019-11-26 11:28:23
I need to develop an application using Google Maps in Android to locate my current location and need to find nearest location . (For example: Nearby police station from my current location .) It should accept my current location and output should display nearest place. Can anyone help me to give some suggestion,links,tutorial to do that? MKJParekh First go through this tutorial for getting familiar with Android Google Maps and this for API 2 . To retrive the current location of device see this answer or this another answer and for API 2 Then you can get places near by your location using

Google's Places API and JQuery request - Origin http://localhost is not allowed by Access-Control-Allow-Origin

戏子无情 提交于 2019-11-26 11:22:48
问题 I doing some testing for a project I got in mind which involves using places nearby. So I went with the big guy and started messing around with Google\'s Places Api. I\'m using leaflet with openstreet tiles for my map. Now everything is fine until I try to use the dang thing. var lat = coords.lat; var lng = coords.lng; var apiUrl = \"https://maps.googleapis.com/maps/api/place/nearbysearch/json\"; var data = { key: \'AIzaSyBl8bmE8kQT7RjoXhP6k2yDti44h9-fSUI\', location: lat+\',\'+lng, radius: \

How to Implement PlaceAutocompleteFragment and PlaceAutocompleteActivity to get Place details

隐身守侯 提交于 2019-11-26 09:34:15
问题 I am using Google Place to get place details. Google provide different way to implement Google Place API to get place details.Different way are like PlaceAutocompleteFragment , PlaceAutocompleteActivity . How differentiate these all and how to implement to get place details using Google place API. 回答1: First of all need to API key and Enable Google Place API to search and get place details. Add your API key to your app manifest ,need to replacing YOUR_API_KEY with your own API key:

Google Place API - No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access [duplicate]

半腔热情 提交于 2019-11-26 09:09:11
问题 This question already has an answer here : How to use CORS to implement JavaScript Google Places API request (1 answer) Closed 7 months ago . I am using Google Place API. What I want to get suggestion of place for type helping. So, what I have done is- var Google_Places_API_KEY = \"AIzaSyAK08OEC-B2kSyWfSdeCzdIkVnT44bcBwM\"; //Get it from - https://code.google.com/apis/console/?noredirect#project:647731786600:access var language = \"en\"; //\'en\' for English, \'nl\' for Nederland\'s Language

ApiException: 9003: PLACES_API_ACCESS_NOT_CONFIGURED

泪湿孤枕 提交于 2019-11-26 09:04:29
I am following the current place tutorial on : Select Current Place and Show Details on a Map I keep getting the following runtime exception: com.google.android.gms.common.api.ApiException: 9003: PLACES_API_ACCESS_NOT_CONFIGURED I have tried the following steps: Enabling the Places API in the developers console Using the migration guide : Migrating to the New Places SDK Client #New methods for the new Places SDK as this tutorial was using a deprecated Places SDK, i.e adding the new dependency. Adding the following code in my Android Manifest File <meta-data android:name="com.google.android.gms

Android Google Places API, getAutocompletePredictions returns status &#39;PLACES_API_ACCESS_NOT_CONFIGURED&#39;

ぃ、小莉子 提交于 2019-11-26 07:43:24
问题 I\'m having problems with Android Google Places API - auto complete feature. I use the same key that i used for Android Google Maps API (and in the documentation, it is written this is ok). Here is my definition in manifest: <meta-data android:name=\"com.google.android.geo.API_KEY\" android:value=\"mykey\"/> But getAutocompletePredictions returns \'PLACES_API_ACCESS_NOT_CONFIGURED\' message as status. Here is my Java code: GoogleApiClient googleApiClient = new GoogleApiClient.Builder(context)

ApiException: 9003: PLACES_API_ACCESS_NOT_CONFIGURED

ぃ、小莉子 提交于 2019-11-26 05:49:16
问题 I am following the current place tutorial on : Select Current Place and Show Details on a Map I keep getting the following runtime exception: com.google.android.gms.common.api.ApiException: 9003: PLACES_API_ACCESS_NOT_CONFIGURED I have tried the following steps: Enabling the Places API in the developers console Using the migration guide : Migrating to the New Places SDK Client #New methods for the new Places SDK as this tutorial was using a deprecated Places SDK, i.e adding the new dependency

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

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 04:45:45
问题 I\'m trying to make an Autocomplete field which should fetch cities as the user types, by using the Google Places API as described in this tutorial: https://developers.google.com/places/training/autocomplete-android You\'ve probably found this question around many times before as I did, but none of the answers helped me. Here are the things you should know: The URL is https://maps.googleapis.com/maps/api/place/autocomplete/json?sensor=false&key=myKey&components=country:ro&input

Show Current Location and Nearby Places and Route between two places using Google Maps API in Android

狂风中的少年 提交于 2019-11-26 02:26:32
问题 I need to develop an application using Google Maps in Android to locate my current location and need to find nearest location . (For example: Nearby police station from my current location .) It should accept my current location and output should display nearest place. Can anyone help me to give some suggestion,links,tutorial to do that? 回答1: First go through this tutorial for getting familiar with Android Google Maps and this for API 2 . To retrive the current location of device see this

This IP, site or mobile application is not authorized to use this API key

对着背影说爱祢 提交于 2019-11-26 02:09:00
问题 I am using https://maps.googleapis.com/maps/api/geocode/json? link with server key and user IP to find the latitude and longitude of any address, when I\'m trying I find the error as I have a server access key from google and I have put my server\'s IP address in the their white list. The URL that I am trying to access via PHP CURL is: https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true&key=XXXXXXXXXXXX The result that I am