google-places-api

Embedded Google Map can't get current location in WebView

我们两清 提交于 2019-12-18 05:01:32
问题 I followed this tutorial: http://android-er.blogspot.com/2013/03/embed-google-map-in-webview.html I'm trying to just use the Google Map in the WebView, but it can't get my current location. I've enabled JavaScript on the WebView. What else do I have to enable? Does anyone know why that might be? Shouldn't it prompt me to use my current location? Note that I am not interested in using a MapView as an alternative whatsoever. I'm trying to find out what I need to set on the WebView or maybe on

Embedded Google Map can't get current location in WebView

时间秒杀一切 提交于 2019-12-18 05:01:10
问题 I followed this tutorial: http://android-er.blogspot.com/2013/03/embed-google-map-in-webview.html I'm trying to just use the Google Map in the WebView, but it can't get my current location. I've enabled JavaScript on the WebView. What else do I have to enable? Does anyone know why that might be? Shouldn't it prompt me to use my current location? Note that I am not interested in using a MapView as an alternative whatsoever. I'm trying to find out what I need to set on the WebView or maybe on

Google places API return a single type “car_repair”

孤人 提交于 2019-12-18 04:35:11
问题 I'm using Google places API and it is returning all the places in my location. However I only want it to return a type for "car-repair" I think I nearly have it but I'm missing something if anyone could guide me in the right direction it would be great :) My Code so far PlacPickerActivity import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.text.Html; import android.view.View; import android

Google Places API - find an address using the city

依然范特西╮ 提交于 2019-12-18 04:13:04
问题 I am planning to use Google Places API in order to create an address autocomplete in my web site. My question is about whether my requirements are possible using Google Places. I have a "Post Request" page where the user posts an address (city, street and house number). I also have a "Search" page where the user can search posts according to the city. Here the user only inserts a city name, without a street and house number. My questions: Can I force the user to insert a city, street and

Restrict Autocomplete search to a particular country in Google Places Android API

南楼画角 提交于 2019-12-18 03:09:18
问题 My goal is to restrict the Autocomplete results from the Google Places Android API to a particular country (United States) only. I am using the following API: PendingResult<AutocompletePredictionBuffer> results = Places.GeoDataApi .getAutocompletePredictions(mGoogleApiClient, constraint.toString(), mBounds, mPlaceFilter); Looks like LatLngBounds is supposed to do this job. If yes, then what are the values of LatLngBounds for United States? Which source did you use to get LatLngBounds for a

How to get a picture of a place from google maps or places API

非 Y 不嫁゛ 提交于 2019-12-17 23:30:26
问题 I'm using Google Places API to retrieve data about places, but couldn't find how to get a picture of that place, Google Places API just provides icon which is not the same. I need the photo you get when you search for a place in Google Maps in a web browser for example. There is usually more pictures from Panoramio, but Panoramio API can only search for pictures by location and not by a particular restaurant or hotel name for example. Any ideas? 回答1: The Places API will give you the

Google maps - Weird geometry.location attributes (G, K)

只谈情不闲聊 提交于 2019-12-17 22:28:44
问题 When I access the Places API, Google sends back an object with, among other things, these two properties : location.geometry.G location.geometry.K These represent the latitude and longitudes. I never read about these anywhere. Besides, all my codebase recently became unstable because it recently changed for the letters H & L. This is weird, isn't it ? What did I miss ? 回答1: Those are undocumented properties of the API (the latitude and longitude of that particular google.maps.LatLng object)

Querying Google Places API using jQuery

痞子三分冷 提交于 2019-12-17 20:15:37
问题 Google Places API is now generally available. I am trying to use the .ajax() call in jQuery to make a call to Google Places. The error I keep getting back is Uncaught SyntaxError: Unexpected token : I am using jQuery 1.5.2. I tried on 1.5.1 too, but that had the same results. I'd rather not move to 1.6.1 if I can help it. I've made ajax calls like this to other APIs just since, but am having trouble with Google Places. Below is a very basic sample of code you can play with. You'll need to go

Place Picker Automatically close after launch

戏子无情 提交于 2019-12-17 19:19:14
问题 I want to show place picker so that user can choose location of his/her own choice. But place picker child activity automatically closes after launch. I've check the API key multiple times and other permissions, everything is correct. Here is all the code. Please help! task_location.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { try { PlacePicker.IntentBuilder intentBuilder = new PlacePicker.IntentBuilder(); Intent intent = intentBuilder.build

Google Places Api sort by distance

…衆ロ難τιáo~ 提交于 2019-12-17 18:48:39
问题 Currently developing an Android application that returns the closest 20 location to the users current location. Google Places API is returning ~20 places close to the users location but not the closest 20 sorted by distance. Looking at the Google Places API Documentation does not show anything that I can see to be incorrect. GetPlaces.java String types = "accounting|airport|amusement_park|aquarium|art_gallery|atm|bakery|bank|bar|beauty_salon|bicycle_store|book_store|bowling_alley|bus_station