google-places-api

How to extract street, city, etc. from GMSPlace Address Components

亡梦爱人 提交于 2019-12-12 09:37:57
问题 I'm using Google Places API for iOS and can successfully retrieve nearby places and present the address as a string. What I'm trying to do is extract address components such as city to store in a database. The documentation indicates a GMSPlace has an addressComponents property (an array), but I can't seem to figure how to use this property. The code below provides sets the entire address to the text of a label, but I can't get beyond that: Edit ---- added code that shows how I'm trying to

How to get average traffic data on google map

冷暖自知 提交于 2019-12-12 08:32:57
问题 I want to show average traffic layer on google map like this. But, this map shows the real time data of traffic, instead i want to show average traffic over some period of time on google map, is it possible? or any other maps api can help? Please star this issue issue tracker link to vote and get update for this feature. 回答1: If you check the Google Maps documentation, the only information that you can find here about traffic is the Traffic Layer. But this traffic layer add a real-time

Multiple API keys for Single Android Studio Project

房东的猫 提交于 2019-12-12 08:17:10
问题 I'm using Google Maps API v2 for android and Google Places API, both have different api-keys to be added to manifest, but when i add both the keys, i got multiple-key error. Is it possible to add two different keys for two different APIs, if not, then what is the possible work around? <!-- Goolge Maps API Key --> <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyD****************U6QybngOI" /> <meta-data android:name="com.google.android.geo.API_KEY" android

how to get place details from place id in google places api for python

末鹿安然 提交于 2019-12-12 07:37:34
问题 I am using the Google Places API with Python to build a collective intelligence app for food. e.g. what restaurants are around, what ratings they have, what are their timings, etc. I am doing the following in Python: from googleplaces import GooglePlaces, types, lang API_KEY = '' google_places = GooglePlaces(API_KEY) query_result = google_places.nearby_search( location='Mumbai', keyword='Restaurants', radius=1000, types=[types.TYPE_RESTAURANT]) if query_result.has_attributions: print query

Google Maps Place marker not displaying

假装没事ソ 提交于 2019-12-12 06:47:49
问题 I am trying to display locations of places I got using the google maps places api. But the markers of my search results are not showing up on the map. And I can't seem to find the problem. Below is a copy of my source code with my logcat log. Any help will be really appreciated. Thank you in advance :) . My MainActivity public class MainActivity extends FragmentActivity implements LocationListener, GoogleMap.OnMapClickListener { GoogleMap mGoogleMap; Spinner mSprPlaceType; String[] mPlaceType

Setting a timer after N seconds to submit form if google maps geocode doesn't return

雨燕双飞 提交于 2019-12-12 06:39:10
问题 I have a place autocomplete object on my search box. var navbarAutocomplete = new window.google.maps.places.Autocomplete(navbarInput, navbarOptions); I also have a listener event for 'place_changed' and in that I call maps.geocoder to do a search on the string IF autocomplete doesn't have any results. My concern is that if geocode never returns (ex. the link is down), I'm stuck not calling form submit. Question - should I have a timer set so if after a certain time, if the geocode results

Place Autocomplete Android | How to get the Photo of location?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 06:35:45
问题 I have implemented Place Autocomplete but it doesn't providing me the Photos array. Please help me out. Suggestions really appreciated. Many Thanks in advance. 回答1: Autocomplete responses don't include photos, just a handful of key information like name and Place ID (see the docs for the full set of fields). To get more detailed information like photos you need to make a Place Details Request using the Place ID from the Autocomplete response. 来源: https://stackoverflow.com/questions/34174683

How to get place or placeid by latLng in android using google places api?

强颜欢笑 提交于 2019-12-12 06:00:19
问题 How to get place or placeid by latLng in android using google places api ? I want to get place or placeid when i get latLng 回答1: you can use this Google Maps API http://maps.googleapis.com/maps/api/geocode/json?latlng=23.00,72.57&sensor=true 回答2: I have implemented in my application using this way https://maps.googleapis.com/maps/api/geocode/json?latlng=21.1702401,72.8310607&key=YOUR_API_KEY u will get Response like this which contains place_id. { "results" : [ { "address_components" : [ //It

How to make a search on google maps for finding hospitals etc

二次信任 提交于 2019-12-12 05:29:40
问题 I want to make google map where we can search a hospitals , police station etc on the base of current location. But as per the google search i knew that past all Google places api's are deprecated. so i used https://developers.google.com/places/android-api/signup Using this link for crating google places api key,But its not working for me its not getting any data ... I am referring this link i used to change only api key here http://wptrafficanalyzer.in/blog/showing-nearby-places-and-place

Save nearest establishment to google user account in Swift2

冷暖自知 提交于 2019-12-12 05:25:41
问题 The purpose for this portion of the app is for the user (signed in with Google sign in) to locate the nearest place to them and save it automatically to the user's google account. The below method works fine, grabbing the most likely place the user is located at (first object in the array of placeLikelihoods). Now what I need to do is save it to the user's google account (the one they signed in with). Any lead or ideas on how to do this or if it's even possible? Thank you for the help like