google-places

bind google places autocomplete on textbox without instantiating a google map

与世无争的帅哥 提交于 2019-11-29 01:31:29
I'm trying to add Google Places Autocomplete on my Website. I'm having a problem with binding my search textbox with Autocomplete without the use of instantiating a google map. What I'm trying to do is, I want to use the autocomplete as a text suggestion on my search field. but sadly, all the tutorials I've seen had autcomplete being used along with a google map. Is there any way around this? Thanks in advance. Mohit Guys you can use following code. <!DOCTYPE html> <html> <head> <link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"> <script

Google Places API in iOS application

别等时光非礼了梦想. 提交于 2019-11-28 21:43:13
Let me share my findings before asking the question. Google Places API documentation says: "Note: To use the Google Places API you must first request a Maps API client ID and cryptographic key which you must use to sign your request URLs. For information on signing URL requests, please see the URL Authentication documentation within the Web Service APIs home page." The Google Places API is still in developer preview. http://code.google.com/apis/maps/documentation/places/ We need a Client ID (required) and a Signature (required) to use the Google Places API. http://code.google.com/apis/maps

ApiNotActivatedMapError for simple html page using google-places-api

左心房为你撑大大i 提交于 2019-11-28 16:47:51
I'm trying to create a simple html page (I'd later like to add an autocomplete input there) that include google-places-api. I have an api-key (which is enabled) but I still get an error message. Here is my html- <head> <meta charset="utf-8"> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=MY_KEY&libraries=places"></script> <title>test</title> </head> <body> </body> but I get this error message- and in the console I get - Google Maps API error: Google Maps API error: ApiNotActivatedMapError I can't understand what the problem is.. Appreciate anybody's help To

How to resolve PLACES_API_ACCESS_NOT_CONFIGURED in Place Autocomplete Fragment

心不动则不痛 提交于 2019-11-28 12:46:00
问题 I'm having problems with Android Google Places API - autocomplete feature. I use the same key that I used for Android Google Maps API but it is not open place fragment. Its only show Maps but when open a Place Autocomplete Fragment but its open and automatically close and show PLACES_API_ACCESS_NOT_CONFIGURED error. Please help me out to this issue and show the right to handle the issue. Here My Manifest XML: <meta-data android:name="com.google.android.geo.API_KEY" android:value=

Get list of all intersections in a city

强颜欢笑 提交于 2019-11-28 10:17:20
What is the best source and way to get a list of all intersections in a major city? tyr 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: Dependent on which kind of ways you are interested in, add the types of ways which should not count as

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

懵懂的女人 提交于 2019-11-28 05:17:59
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('location', searchbox.value, { expires: 1 }); $.cookie('geo', thisplace.geometry.location, { expires: 1 });

Get place_id of address_components

拜拜、爱过 提交于 2019-11-27 16:14:11
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 need especially place_ids of address_components If you reverse geocode the result, it will return results

Google Places API in iOS application

做~自己de王妃 提交于 2019-11-27 14:04:59
问题 Let me share my findings before asking the question. Google Places API documentation says: "Note: To use the Google Places API you must first request a Maps API client ID and cryptographic key which you must use to sign your request URLs. For information on signing URL requests, please see the URL Authentication documentation within the Web Service APIs home page." The Google Places API is still in developer preview. http://code.google.com/apis/maps/documentation/places/ We need a Client ID

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

懵懂的女人 提交于 2019-11-27 13:41:15
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/showing-nearby-places-using-google-places-api-and-google-map-android-api-v2/ ) , ( http://www

google places library without map

倾然丶 夕夏残阳落幕 提交于 2019-11-27 11:45:30
I am trying to use the google places library for a nearby search request: https://developers.google.com/maps/documentation/javascript/places#place_search_requests i just want to pull the json response and put it in a html list, i do now want to show results on a map or something else. I do not want to use map at all. But in documentation it states that there has to be a map service = new google.maps.places.PlacesService(**map**); in order to pass it as an argument in the PlacesService function. What i do now is adding a map with height:0 but it still consumes much amount of memory (i develop a