google-places-api

Regarding Places Library for Google Maps API Quota limits

帅比萌擦擦* 提交于 2019-11-29 13:45:12
Quick question, just to clarify the wording and meaning (because it's changed a couple of times for Map loading...) There are the two following statements in the Places API FAQs: The Google Places API has the following query limits: Users with an API key are allowed 1 000 requests per 24 hour period. Users who have verified their identity through the APIs console are allowed 100 000 requests per 24 hour period. A credit card is required for verification, by enabling billing in the console. We ask for your credit card purely to validate your identity. Your card will not be charged for use of

Google Places API for Android Error: Status{statusCode=NETWORK_ERROR, resolution=null}

梦想与她 提交于 2019-11-29 13:28:24
I have created a project under google developer console and wanted to use Google Places API for Android. I have enabled the API and integrated into my android application as per the guidelines on Google developer website ( https://developers.google.com/places/android/start ). The API is giving this error and after hours (and days) of debugging and searching the internet I couldn't narrow down the problem. Any leads would be appreciated about why this error is coming up. Error: Status{statusCode=NETWORK_ERROR, resolution=null} The following is the function from the google sample code where

Google Maps API get place text like on iframe map

試著忘記壹切 提交于 2019-11-29 13:08:53
So I have found a couple of ways to get maps onto my page, the first version is by using an iframe like so: <iframe src="https://www.google.com/maps/embed/v1/place?key=[APIKEY]&q=place_id:[PlaceID]"></iframe> which gives a marker like the following image with the name of the place next to the marker: However, this isn't perfect as it has that massive white box in the top left and according to many SO posts, you are unable to remove it. So I thought I would try the js route so have the following code: var map = new google.maps.Map(this, { zoom: 15, center: { lat: options.latitude, lng: options

why loading places in iOS using google places api causes lookup place id query error? [duplicate]

牧云@^-^@ 提交于 2019-11-29 13:04:01
This question already has an answer here: GooglePlaces API “Response That We Couldn't Understand” Error 2 answers detailed error log is given below lookup place id query error: The operation couldn’t be completed. The Places API server returned a response that we couldn't understand. If you believe this error represents a bug, please file a report using the instructions on our community and support page ( https://developers.google.com/places/support ). Error: The operation couldn’t be completed. The Places API server returned a response that we couldn't understand. If you believe this error

Google Places Api subway and train station search in Russia stopped working

守給你的承諾、 提交于 2019-11-29 12:59:02
Till today the following query: https://maps.googleapis.com/maps/api/place/search/json?language=ru&location=55.739216,37.547965&radius=1000&sensor=false&types=subway_station|train_station&key=xxxxxxxx was result with 'Студенческая‎' , 'Studencheskaya' subway station in Moscow. Today: ZERO_RESULTS This issue has already been reported on the Google Places API Issue Tracker here: http://code.google.com/p/gmaps-api-issues/issues/detail?id=4061 Please click the 'star' icon to be notified of future changes, and to let us know you are interested in seeing it resolved. 来源: https://stackoverflow.com

Google Places API cors

不羁的心 提交于 2019-11-29 12:37:28
I'm trying to do a get request from my localhost machine(And my app will stay on localhost) to get some information about a place. However, the Google Places API and/or my Chrome won't let me do this request due to CORS ( XMLHttpRequest cannot load https://maps.googleapis.com/maps/api/place/details/json?placeid=[placeid]&key=[key]. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. ). Is there some way (Without a CORS Chrome plugin) to get access from the Google Places API? I'm just using a simple GET

Trigger Google Places Autocomplete

萝らか妹 提交于 2019-11-29 12:21:40
问题 I am trying to attach a virtual keyboard to bind to a Google places autocomplete input. If I physically type in a letter in the input, a Google-powered dropdown displays the autocomplete predictions based on where the map is centered. If I click on a virtual keyboard key, the input gets updated properly, but the autocomplete predictions are not updated. I have tried to use the virtual keyboard change callback to trigger a "keyup" (stackoverflow results), "keypress", "keydown", "change" and I

EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) with dataTaskWithUrl

邮差的信 提交于 2019-11-29 12:10:43
I'm using the google places api to search for nearby places. However, I only want places of specific types. The code (seen below) works when I specify just one type, but when I add a second my code runs and promptly give me a EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) error on this line: session.dataTaskWithURL(url!, completionHandler: { (data : NSData!, response : NSURLResponse!, error : NSError!) -> Void in I know the url is valid. I can plug it into the browser and see the json, so I don't understand what the problem is. func search(location : CLLocationCoordinate2D, radius :

How to get Distance Kilometer in android?

安稳与你 提交于 2019-11-29 10:40:21
I am very new to Google maps I want calculate the distance between two places in android. For that I get the two places lat and lag positions for that I write the following code: private double getDistance(double lat1, double lat2, double lon1, double lon2) { double dLat = Math.toRadians(lat2 - lat1); double dLon = Math.toRadians(lon2 - lon1); double a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2)) * Math.sin(dLon / 2) * Math.sin(dLon / 2); double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)); double temp = 6371 * c; temp=temp*0

Places Autocomplete Status Code 9001

老子叫甜甜 提交于 2019-11-29 10:29:47
I was trying to get places prediction using the Places Autocomplete API from Google Play Services, but this is the status I got: Status{statusCode=unknown status code: 9001, resolution=null} Any idea what's going on? Here is the solution Enable "Places API for Android " in the API console Note: Somehow, the switch to enable it can only be found in the old style console. Update You can find this option by typing "Places API for Android" in search bar. I also have the same problem. I also can see those logs: 03-26 08:58:48.564 26494-3999/? W/Places﹕ f.a:633: gLocReplyElement unsuccessful status: