google-places-api

Set marker icon on Google Maps v2 Android from URL

扶醉桌前 提交于 2019-12-06 15:39:42
I am unable to add the icon provided by the Google Places API to the marker. For example, I would like to have the icon returned from the JSON of Google Places API: "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png" Here's how I am doing it now without adding the icon: for (Place place : mNearPlaces.results) { LatLng placeLatLng = new LatLng(place.geometry.location.lat, map.addMarker(new MarkerOptions() .position(placeLatLng) .title(place.name)); } I looked at this post and the answer suggested using some AsyncTask to download the image. Is there any other way

How to use Google API client library?

允我心安 提交于 2019-12-06 15:02:18
I want to use Google places API in android application. which Jar library do i need to add? i have already downloaded the zip contains all the jars with their source.jar i doc't know which jar should i use in android 2.2 and what to do with source.jars Jigar Pandya Please follow this tutorial: http://blog.brianbuikema.com/2010/08/android-development-part-1-using-googles-places-api-to-develop-compelling-location-based-mobile-applications/ and you can move ahead quickly in you answers. It seems to me that you do not need to include any jar file; but when creating new new project in android

How do i find distance between one place to another using Geolocation or Similiar API without embedding a Google Map? [closed]

一笑奈何 提交于 2019-12-06 14:38:24
Closed . This question needs to be more focused . It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 4 years ago . I am having a list of tourist locations with me and i am willing to write a service that could tell me which tourist location is nearest to me and then second nearest and likewise without using a map. How can i do it. The idea is that i have a database of all the tourist locations in a city and their lat/long, I may be in any place in the city and want to find which tourist

Android Google Places API “PLACES_API_QUOTA_FAILED”

为君一笑 提交于 2019-12-06 14:26:21
Ok, so I am kinda new to Google maps/geo etc. So I went to the Google console, added an application, enabled "Places API for Android" , copy pasted the API key like this : <meta-data android:name="com.google.android.geo.API_KEY" android:value="API-KEY" /> I have an activity where I did mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this, 0 /* clientId */, this) .addApi(Places.GEO_DATA_API) .build(); Copy pasted the adapter from the samples code. Everything compiled fine, autocompletetextview was setup properly and all. Now when I started typing, it throws an error

Google Places Autocomplete (included with Places Details) SKU is not getting triggered while using session tokens

岁酱吖の 提交于 2019-12-06 14:11:39
I am making requests to the Google places autocomplete and details api. For both I am using session tokens to use the autocomplete api charge free, but I don't see the Autocomplete (included with Places Details) SKU in the Google report. I started using it a week ago and all I see is the SKU: Autocomplete without Places Details – Per Session . In my code I am generating a new version 4 UUID compliant session token after a request to the details api is made. I am following the guidelines in the docs that say this: So I am doing that exact thing. But I don't see the Autocomplete (included with

How do i show places, in google maps api v3 and google places api, between two points?

久未见 提交于 2019-12-06 13:33:52
问题 How to show places nearby certain radius starting from every point of a route path between two points. 回答1: You can't. The Places API will return at most 60 results in groups of 20. There is an infinite number of points along a route. You can investigate the RouteBoxer, but to do what you want you will need a source of data besides the Places API. 来源: https://stackoverflow.com/questions/13753674/how-do-i-show-places-in-google-maps-api-v3-and-google-places-api-between-two-p

Unable to use the table #2 types with Google Places API

强颜欢笑 提交于 2019-12-06 12:37:10
问题 I am unable to get any results with the Places API when I use a types=transit_station|neighborhood (or any other type included in the table 2 here: http://code.google.com/apis/maps/documentation/places/supported_types.html#table2 Apparently, this is not related to a specific location (I've tried both Milan, Italy and London, GB), so I'm wondering if I'm doing something wrong or if the API is not currently working as expected. If the above has no solution, I'd be very happy if there was

Get redirected URL from URL [duplicate]

一曲冷凌霜 提交于 2019-12-06 11:59:06
This question already has an answer here : Firefox live http headers, curley braces after Cache-Control: no-cache (1 answer) Closed 6 years ago . The title is quite cryptic but essentially whats happening is I'm calling the Google Places Photo API with the following url https://maps.googleapis.com/maps/api/place/photo?key=123456789&photoreference=CnRvAAAAV_35nLjUhcQXkoVdwN2YGP58Z3trNMDCRXznXqR2_0FbxXv60ssT2JN0ryI_ZP9-371u3JycqlH5oxLy8-bo2IkbkAfWD7fjyiytcEtWmk76Cseyxj9OlDozspXy8Cu7NFphl4N1AXSnj6QadSy6fxIQvc6Kiai-6HxMphQ7WCmYpBoUwxVnwEHl5zo0EbuoWCObJYTmAuA&maxwidth=400&maxheight=400&sensor=false

How to change the default hint value of XML fragment element in Android layout

荒凉一梦 提交于 2019-12-06 11:12:00
Default hint value of the autocomplete widget is Search . How can this value be changed to a different String ? Try out the below code: PlaceAutocompleteFragment places= (PlaceAutocompleteFragment)getFragmentManager().findFragmentById(R.id.place_autocomplete_fragment); EditText etPlace = (EditText)places.getView().findViewById(R.id.place_autocomplete_search_input); etPlace.setHint("Your Text"); Hope this helps. 来源: https://stackoverflow.com/questions/43505759/how-to-change-the-default-hint-value-of-xml-fragment-element-in-android-layout

how process response object from Google Places API - placesPhoto

丶灬走出姿态 提交于 2019-12-06 10:34:10
I am writing a simple wrapper in node.js which calls Goole Places API and gets a photo using photo_reference. When I run this and process the request from Postman it works but does not display photo itself. In the code below mapsClient.placesPhoto does return a huge response with many tags. Its not just raw image data. My question is how do I extract image or image data from googleResp object and send it back to client? var googleMapsClient = require('@google/maps').createClient({ key: 'xyz' }); app.post('/getGooglePlacePhoto/:photoref', function(req, res){ googleMapsClient.placesPhoto({