google-places-api

Get list of nearby places from Google Places API (Swift 3)

≯℡__Kan透↙ 提交于 2019-11-29 20:55:03
问题 I am aware that there are similar threats already, however, the exact topic I am looking for seems to not have been touched. I am a programming newby, however, I achieved to get an app running, which fetches your current location, transforms the coordinates to an address and is able to store your location data in a tableView. Now I am looking for a way on how to fetch a list of nearby stores with the help of the Google Places API and display them in a table view . I could only find plenty of

How to display nearby places like ATM's, hospitals in Android Google Map?

北慕城南 提交于 2019-11-29 20:30:45
How to display nearby places & place details like ATM's, Hospitals, Restaurants, etc. in Android Google Map This is the link that I used: Showing nearby places & place details using Google Places & Maps API I'm able to fetch my current location but nearby places are not getting displayed. Neither am I getting any error in my logcat you can get places near by your location using Google Place API and for use of Place Api see this blog hope this will help you. Get places nearby your location using Google Place API . Know about Location Data also filter data with Place Type where you found the

How to customize PlaceAutocomplete widget dialog design to list places

会有一股神秘感。 提交于 2019-11-29 20:27:20
I need to show list of places in dropdown using google placeAutocomplete widgets. Here I'm getting dialog to show places according to my query but I need to give custom design for that search result dialog as like in Uber, Ola apps. Here I want design like below image. If anyone done this before please give me your suggestions,thanks in advance. You need to customize your adapter. I had implemented this functionality in my project. You can follow this. activity_search.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id=

Storing Data from Google Places API

假装没事ソ 提交于 2019-11-29 19:49:43
问题 Please don't mind if this question sounds a little silly! I am trying to learn more about Google Places API. I am interested in doing an implementation similar to airbnb.com (check the search function at the top, it shows "powered by google" in autosuggest). In our Address Form, we planned to use the autosuggest feature provided by Google Places API for filling the city, region and country (e.g https://www.airbnb.com/rooms/new) Questions 1) Once someone selects a Place in the "City" field,

How to resolve PLACES_API_ACCESS_NOT_CONFIGURED in Place Autocomplete Fragment

ぐ巨炮叔叔 提交于 2019-11-29 18:37:39
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="AIzaSyARQ78yaNEJH12aJLM1Y-112WY12p95ZOEGI"/> And Here My Code for open Place AutocolmpleteFragment: try { Intent

Android - Google Places API - No “reviews” Array

こ雲淡風輕ζ 提交于 2019-11-29 17:36:18
So I'm running the following Google Places API call: https://maps.googleapis.com/maps/api/place/search/json?location=34.0467359,-118.441764&rankby=distance&sensor=true&key=MY_API_KEY&types=restaurant part of my JSON output is: "results" : [ { "geometry" : { "location" : { "lat" : 34.047332, "lng" : -118.443431 } }, "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png", "id" : "03ed19ca32b20080897e31095e6eed2715cde819", "name" : "Del Taco", "opening_hours" : { "open_now" : true }, "price_level" : 1, "reference" : "CnRrAAAA6Dqit_GeW6rLNFXGo4cb

Adding PlaceAutocompleteFragment to fragment throws error

自古美人都是妖i 提交于 2019-11-29 17:11:53
问题 I have implemented PlaceAutocompleteFragment in activity and is working successfuly. But how to implement the same in fragment in android? I have implemented placeautocomplete fragment like this PlaceAutocompleteFragment autocompleteFragment1 = (PlaceAutocompleteFragment) getFragmentManager().findFragmentById(R.id.place_autocomplete_fragment1); Error I am getting is Incovertible types;cannot cast 'android.support.v4.app.Fragment' to com.google.android.gms.location.PlaceAutocompleteFragment '.

Android Places API: Google Play Services Out of Date on Emulator

孤者浪人 提交于 2019-11-29 16:07:41
问题 I am attempting to utilize the Google Places API's PlacePicker in my Android app. However, whenever I attempt to create the picker, I receive the following error message: Google Play services out of date. Requires 7095000 but found 6774470 Unfortunately, I am tied to testing on the emulator because I do not own a physical device. The emulator's image is API level 22 x86 with Google APIs target. Furthermore, I have attempted to include the Google Play Services library through the build.gradle

Google Autocomplete API - format output result

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 15:12:18
I'm trying to implement Google Places API, so here is my code: <!DOCTYPE html> <html> <head> <script src="http://codeorigin.jquery.com/jquery-1.10.2.min.js"></script> <script src="//maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places&location=0,0&radius=20000000&language=de"></script> <script> $(document).ready(function() { var el = $('#street').attr("placeholder", "") , autocomplete = new google.maps.places.Autocomplete( ( el.get(0) ), { types: ['geocode'] } ); el.bind("blur", function() { // blur is triggered before place_changed, as well as focus... so this is not working

Restrict autocomplete results by setBoundsBias

倾然丶 夕夏残阳落幕 提交于 2019-11-29 14:51:20
I am using setBoundsBias for Restrict autocomplete results in google map autocompletePlace, But the result contains places out of range. what is the problem ? { final int PLACE_AUTOCOMPLETE_REQUEST_CODE = 1; AutocompleteFilter typeFilter = new AutocompleteFilter.Builder() .setCountry("IR") .build(); try { Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_OVERLAY) .setBoundsBias(new LatLngBounds(new LatLng(38.051183, 46.211586), new LatLng(38.132784, 46.392860))) .setFilter(typeFilter) .build(MainActivity.this); startActivityForResult(intent, PLACE_AUTOCOMPLETE_REQUEST