google-places

Adding Multiple Instances of Google Places on Same Page

最后都变了- 提交于 2019-11-27 11:41:11
问题 I'm looking to include 2 instances of Google Places auto-complete on the same page. Looking to setup an input for a Pickup Location and an input for a Dropoff Location. I'm assuming it has to do with the ID of the input element, but even when I changed it to a class, it still wasn't working. This is what I currently have, and it works for the first field, but I can't figure out how to get a second input field to auto complete, or even show any signs of being anything other than a plain input

How to get 20+ result from Google Places API?

浪尽此生 提交于 2019-11-27 11:03:38
I am developing a app in which i am getting the list of ATM's near by the user. For that i am using Google Places API, but every time it returns 20 result only. I want to get more results. In the API doc it is mention that it will return 20 result but i would like to know that is there any way i can get more data or I have to create my own database for that? Also what i found in the API is that it does not have all the ATM's for India. The information is also not accurate for some of the location. So Please suggest me some idea for that i should use my own database or not? I know that i can

Get list of all intersections in a city

心不动则不痛 提交于 2019-11-27 03:31:24
问题 What is the best source and way to get a list of all intersections in a major city? 回答1: If one doesn't mind a few false positives the following Overpass API script gets road intersections out of OpenStreetMap data pretty easily: http://overpass-turbo.eu/s/QD (the script can't detect false intersections – where only two lines meet, though, e.g. when a road is represented by multiple way objects in the OSM data) In case that the script goes offline a more readable version directly here:

How to fire place_changed event for Google places auto-complete on Enter key

半世苍凉 提交于 2019-11-27 00:52:39
问题 The click seems to fire the event and set the cookies but pressing enter to submit doesn't set the cookies and instead the page redirects without the cookies. function locationAuto() { $('.search-location').focus(function () { autocomplete = new google.maps.places.Autocomplete(this); searchbox = this; google.maps.event.addListener(autocomplete, 'place_changed', function () { var thisplace = autocomplete.getPlace(); if (thisplace.geometry.location != null) { $.cookie.raw = true; $.cookie(

Get place_id of address_components

故事扮演 提交于 2019-11-26 18:37:14
问题 I am using Google place autocomplete. And I don't know how to get place_id of address_components. In JSON there are only long_name, short_name, types. My code is here: var object_location = document.getElementById('object_location'), autoComplete = new google.maps.places.Autocomplete(object_location); autoComplete.addListener('place_changed', function() { var place = autoComplete.getPlace(); console.log('place = ', place); }); Here is my JSON (picture) I don't need place_id of my place. I

Is it possible to use Maps and place API with same API KEY

China☆狼群 提交于 2019-11-26 18:34:24
问题 I was tiring to build an app which uses google maps for showing places and Pace API for searching places. but it is not being possible to build the app with two different API keys in the manifest. So, I want to Know if it is possible to access both Maps and Place API with the same API key..? or There is some other way for doing this. 回答1: Yes! you can use same key on both of and also you can use only one key for all Google API See below image in listed all google api and see this link. Now

How to get 20+ result from Google Places API?

六眼飞鱼酱① 提交于 2019-11-26 17:58:57
问题 I am developing a app in which i am getting the list of ATM's near by the user. For that i am using Google Places API, but every time it returns 20 result only. I want to get more results. In the API doc it is mention that it will return 20 result but i would like to know that is there any way i can get more data or I have to create my own database for that? Also what i found in the API is that it does not have all the ATM's for India. The information is also not accurate for some of the

How do I get a Google Places API key for my Android App

℡╲_俬逩灬. 提交于 2019-11-26 16:30:05
问题 I've spent the last 48 hours pulling my hair out trying to find the answer to this question. The person who asked this question: how can I make API KEY for Google Places api? Is experiencing the same issue I am having, but never got an answer. Basically, I need help getting a Google PLACES api key. I already have a maps api key which works fine, but I cannot get a places API key. I have followed every single tutorial I could find including (To name a couple: (http://wptrafficanalyzer.in/blog

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

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