google-places-api

Google Places Autocomplete Remove State and Country from Result

你说的曾经没有我的故事 提交于 2019-12-21 02:34:07
问题 https://google-developers.appspot.com/maps/documentation/javascript/examples/places-autocomplete I have a page similar to the above google places autocomplete demo url whereby if i type Buckingham Palace. It will return results of Buckingham Palace Road, London, United Kingdom Buckingham Palace Shop, Buckingham Palace Road, Victoria, London, United Kingdom and etc. How do i remove London, United Kingdom from the results? 回答1: This is not possible without manually processing the results. If

Is there a way to restrict the Google Places Autocomplete to search a city's streets?

那年仲夏 提交于 2019-12-20 12:27:13
问题 Can I restrict the search to a city's streets when using the Google Places Autocomplete ? 回答1: You can set the Autocomplete options to use geocode as the type, which will restrict the results that are returned to addresses: var input = document.getElementById( 'searchTextField' ); var options = { bounds: yourBounds, types: ['geocode'] }; autocomplete = new google.maps.places.Autocomplete( input, options ); There is no way to restrict the results to just streets, but this will largely achieve

Is there a way to restrict the Google Places Autocomplete to search a city's streets?

允我心安 提交于 2019-12-20 12:26:49
问题 Can I restrict the search to a city's streets when using the Google Places Autocomplete ? 回答1: You can set the Autocomplete options to use geocode as the type, which will restrict the results that are returned to addresses: var input = document.getElementById( 'searchTextField' ); var options = { bounds: yourBounds, types: ['geocode'] }; autocomplete = new google.maps.places.Autocomplete( input, options ); There is no way to restrict the results to just streets, but this will largely achieve

Android: Finding nearby places with Google Places API

我的梦境 提交于 2019-12-20 10:48:35
问题 I am trying to get list of the nearby places using Google Places API. I have enabled requried API from Google Devloper Console and have an valid API key. I am able to get my corrent location. After I got the my current location I am trying to get nearby places list but it returns empty. I have also tried giving null PlaceFilter but it gives same result. private class MyGoogleMapOnMyLocationListener implements OnMyLocationChangeListener, ConnectionCallbacks, OnConnectionFailedListener {

Google Places API Violation

廉价感情. 提交于 2019-12-20 08:57:12
问题 I am using Google Places API to pull a list of resturants, and I am displaying them on map. However, since Apple has switched there map services over from Google in iOS 6.0, I am now in violation of Google's terms of use, which states that you must display Google data on a Google map. "If your application displays Places API data on a map, that map must be provided by Google." https://developers.google.com/places/policies#terms_of_use I obviously need to change the map, because I am not going

How to get all places (or specific type of place such as a restaurant) in a city or country with Google Places API?

喜你入骨 提交于 2019-12-20 08:41:58
问题 I am trying to find all "restaurants" or "insurance agencies" for example, in a city or country. Okay, maybe a country is too broad but mainly large cities. I am using the Google Places API and python but I see that you can only use a "radius" parameter or "rankby=distance". The problem is that, according to the docs, I believe that each query can only return 20 results on 3 pages, or 60 results (correct me if I am wrong). So if I wanted to find all the restaurants in New York for example, I

How to find only school results in google autocomplete api?

回眸只為那壹抹淺笑 提交于 2019-12-20 06:37:14
问题 I want to search only schools in google autocomplete api. I have tried but it does not filter the search specific to schools only. I have read from below url https://developers.google.com/places/web-service/autocomplete But it has only types parameters for filtering results. I am able to search only schools in google nearby places search but it requires me to send lat, long but I want to search all schools despite of any location. 回答1: At present time Places API autocomplete doesn't support

AutoComplete Google Places get error :This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console

房东的猫 提交于 2019-12-20 04:55:13
问题 i'm trying to develop Maps with autocomplete textview with Google API. i tried this tutorial here but i always get this error when i'm tryin to get the API : { "error_message" : "This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console", "predictions" : [], "status" : "REQUEST_DENIED" } i tried to find the solution, and i tried all the solution, like to use a browser key , server key ,

place picker close immediately after activity start (google places api)

▼魔方 西西 提交于 2019-12-20 04:38:06
问题 i have created a simple program to use google maps api and google places api . the google maps api is used to place marker and get lat long and other basic functionality . the places api is triggered through a option in option bar on top right . the intent is triggered and then it immediately closed . with out returning any result or even letting me select a location . i have given my main class, build , manifest files below . please do tell any extra info required and suggest any solution .

place picker close immediately after activity start (google places api)

心不动则不痛 提交于 2019-12-20 04:38:03
问题 i have created a simple program to use google maps api and google places api . the google maps api is used to place marker and get lat long and other basic functionality . the places api is triggered through a option in option bar on top right . the intent is triggered and then it immediately closed . with out returning any result or even letting me select a location . i have given my main class, build , manifest files below . please do tell any extra info required and suggest any solution .