google-places-api

Travel destinations API [closed]

China☆狼群 提交于 2020-01-01 05:41:23
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 months ago . When you google a country's name, the results page displays a section called "travel guide", which includes travel info about that country and a little list of destinations as shown in the image below. Is there a way to fetch this kind of data (eg, country name, description, things to do (as an array with title

Java null pointer exception on google places fragment

£可爱£侵袭症+ 提交于 2019-12-31 07:23:09
问题 I'm getting a null pointer exception when I tried to experiment with the autocomplete places feature. I added the fragment like in the docs and require help in resolving this one. Thank you. MainActivity package com.example.srinivas.mapautocompletetest1; import android.support.v4.app.FragmentActivity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; import com.google.android.gms.common.api.Status; import com.google.android.gms.location.places.Place; import

Bootstrap Navbar overlapping Google places autocomplete dropdown

五迷三道 提交于 2019-12-31 06:02:13
问题 I have a Navbar on which I am trying to add a places search box. Everything almost works except that a small part of the google places hint box is being overlapped by the navbar (as shown in the image below). I have tried to change the z-index of the input box to 10 or 2000 or 90000 but it does not seem to have an effect. Is there something else that needs to be done that I am missing? Here is the html: <form class="navbar-form" role="search"> <div class="col-sm-2"> <div class="form-group has

Limit Android Google Places API to search only given area

你说的曾经没有我的故事 提交于 2019-12-31 05:46:20
问题 I`m using Android Google Places API to autocomplete streets and addresses. The problem is that it gives all streets from a whole country. Of course I added bounds to limit place for search, but it doesnt work correctly - it gives only priority, so in other words best results will be higher in list, nothing more So code: AutocompleteFilter typeFilter = new AutocompleteFilter.Builder() .setTypeFilter(AutocompleteFilter.TYPE_FILTER_ADDRESS) .setCountry("RU") .build(); Intent intent = new

Places API for Android: get address lines from Place.getAddress()

◇◆丶佛笑我妖孽 提交于 2019-12-30 17:23:25
问题 In my android app, I find the address of locations using Geocoder.getFromLocation() . I can get an Address object and get the address lines of an address with Address.getAddressLine() . I am only interested in the first address line, which I can get easily with Address.getAddressLine(0) . Also, app allows user to choose locations using PlaceAutocomplete . When user chooses a location, I receive a Place object and I can get the address by Place.getAddress() . The problem is, Place.getAddress()

Places API for Android: get address lines from Place.getAddress()

元气小坏坏 提交于 2019-12-30 17:23:07
问题 In my android app, I find the address of locations using Geocoder.getFromLocation() . I can get an Address object and get the address lines of an address with Address.getAddressLine() . I am only interested in the first address line, which I can get easily with Address.getAddressLine(0) . Also, app allows user to choose locations using PlaceAutocomplete . When user chooses a location, I receive a Place object and I can get the address by Place.getAddress() . The problem is, Place.getAddress()

Google Places Autocomplete Can't load search results

两盒软妹~` 提交于 2019-12-30 10:37:08
问题 I am trying to implement the Google Places Autocomplete API sometimes I am able to get location list but sometimes I get "can't load search results" message. Can someone pease help me with the issue. 回答1: This issue have a few possible reasons: No billing account associated to the project If you are still using the old Places SDK If you reach your quota limit(e.g. self imposed cap usage) If your app is not properly restricted If any of the above doesn't fix your issue, it would be best to

Get city name and postal code from Google Place API on Android

梦想的初衷 提交于 2019-12-30 05:53:09
问题 I'm using Google Place API for Android with autocomplete Everything works fine, but when I get the result as shown here, I don't have the city and postal code information. private ResultCallback<PlaceBuffer> mUpdatePlaceDetailsCallback = new ResultCallback<PlaceBuffer>() { @Override public void onResult(PlaceBuffer places) { if (!places.getStatus().isSuccess()) { // Request did not complete successfully Log.e(TAG, "Place query did not complete. Error: " + places.getStatus().toString());

Search specific nearby places using google places api web services for android

寵の児 提交于 2019-12-30 05:19:08
问题 I am trying to limit the place search type to hospital using google places api web services but unable to achieve it. Logcat java.lang.NullPointerException at com.ediode.graphics3d.ClinicFragment.sbMethod(ClinicFragment.java:174) at com.ediode.graphics3d.ClinicFragment.onMapReady(ClinicFragment.java:95) MainActivity public class ClinicFragment extends AppCompatActivity implements GoogleApiClient.ConnectionCallbacks,GoogleApiClient.OnConnectionFailedListener, LocationListener,

Google places AutoComplete widget is generating a new Session Key per every request

荒凉一梦 提交于 2019-12-30 04:52:12
问题 Recently, Google has updated some billing policies as part of that they've introduced SessionTokens for the Autocomplete requests. As part of that, every request in the same session will be sent the same token in the request and it's automatic if we use the AutoComplete widgets provided by Google APIs. But, I'm seeing a different token generated for every request in the same session. I'm I missing anything, please guide me. Here is the pluker for the sample, there I observed a different token