google-places-api

Picker Places from Google Maps to UITableView

我的梦境 提交于 2020-01-15 06:08:40
问题 I need put names of highlights from Picker Place from Google Maps SDK to my own TableView. It should be order by distance from center place. I used framework but I see automaticly generated map with picker places and table below. CLLocationCoordinate2D center = CLLocationCoordinate2DMake(37.788204, -122.411937); CLLocationCoordinate2D northEast = CLLocationCoordinate2DMake(center.latitude + 0.001, center.longitude + 0.001); CLLocationCoordinate2D southWest = CLLocationCoordinate2DMake(center

Picker Places from Google Maps to UITableView

淺唱寂寞╮ 提交于 2020-01-15 06:08:06
问题 I need put names of highlights from Picker Place from Google Maps SDK to my own TableView. It should be order by distance from center place. I used framework but I see automaticly generated map with picker places and table below. CLLocationCoordinate2D center = CLLocationCoordinate2DMake(37.788204, -122.411937); CLLocationCoordinate2D northEast = CLLocationCoordinate2DMake(center.latitude + 0.001, center.longitude + 0.001); CLLocationCoordinate2D southWest = CLLocationCoordinate2DMake(center

Google Places API - Find a company's CID and LRD

拜拜、爱过 提交于 2020-01-15 05:13:05
问题 Does anybody know how to find a company's CID and/or LRD using the Google Places API? The best solution I've come up with so far is this: Go to https://maps.google.com and search for the business Find the data parameter in the browser's URL and extract the component that matches this pattern: 0x[HEX_CODE1]:0x[HEX_CODE2] The 2-part number we just extracted is the company's LRD. Now, take HEXCODE_2 from that number and convert the hex to decimal. This gives us the company's CID. Obviously this

New Google API Key “Google Maps API v3” doesn't work for Google Places API?

人盡茶涼 提交于 2020-01-14 06:53:27
问题 I am working with the Google Places API (https://developers.google.com/places/documentation/search), and have generated a new Google API Key with 'Any IP Allowed'. When I try to get the results of the API service URLs below, I am getting a REQUEST DENIED error. https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&sensor=false&key=AIzaSyA3vtFM8AMlIO853ra82KzryBs752VIWts https://maps.googleapis.com/maps/api/place/search/xml?key

React Native - How can I display an image returned by Google Place Photos API?

六眼飞鱼酱① 提交于 2020-01-13 07:20:05
问题 I have developed a backend API which given the latitude and longitude of a location it returns an image for the city using Google Places Photos API My React Native app calls the endpoint to try and load the image into an Image view. This is how the app calls the endpoint and receives the response... try { let imageResponse = await fetch( `https://budgettrip.herokuapp.com/locationimage/${latitude}/${longitude}` ); let response = await imageResponse; this.setState({ locationImage: response });

React Native - How can I display an image returned by Google Place Photos API?

夙愿已清 提交于 2020-01-13 07:18:50
问题 I have developed a backend API which given the latitude and longitude of a location it returns an image for the city using Google Places Photos API My React Native app calls the endpoint to try and load the image into an Image view. This is how the app calls the endpoint and receives the response... try { let imageResponse = await fetch( `https://budgettrip.herokuapp.com/locationimage/${latitude}/${longitude}` ); let response = await imageResponse; this.setState({ locationImage: response });

React Native - How can I display an image returned by Google Place Photos API?

早过忘川 提交于 2020-01-13 07:18:50
问题 I have developed a backend API which given the latitude and longitude of a location it returns an image for the city using Google Places Photos API My React Native app calls the endpoint to try and load the image into an Image view. This is how the app calls the endpoint and receives the response... try { let imageResponse = await fetch( `https://budgettrip.herokuapp.com/locationimage/${latitude}/${longitude}` ); let response = await imageResponse; this.setState({ locationImage: response });

Only list the cities name Geocomplete.js or Google Location Autocomplete

帅比萌擦擦* 提交于 2020-01-12 08:29:10
问题 I want to only show the cities name using Geocomplete.js. I have restrict the search to only show the cities. But it is still showing the Country name "United State" at the end, i want to get rid from it. Any Suggestions please Thanks 回答1: Glad that I finally found solution for geocomplete.js! Hope it will be useful to someone. Solution: Send options with restrictions required to geocomplete function: var options = { types: ['(cities)'], componentRestrictions: {} }; $("#source").geocomplete

Duplicate jar (ListenableFuture.class) while migrating to New Place SDK google

﹥>﹥吖頭↗ 提交于 2020-01-12 07:38:11
问题 I am trying to migrate my Autocomplete widget Places SDK Google to the new one using this migration guide. But once I try to generate my release or debug apk start getting the error Duplicate jar entry [com/google/common/util/concurrent/ListenableFuture.class] I read couple of stackoverflow questions and other references and found it was caused by duplicate guava (ListenableFuture). App level dependencies are listed below. dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']

Restrict Google Places Autocomplete to return addresses only

血红的双手。 提交于 2020-01-12 06:28:25
问题 autocomplete = new google.maps.places.Autocomplete(input, { types: ['geocode'] }); returns streets and cities amongst other larger areas. Is it possible to restrict to streets only? 回答1: I think what you want is { types: ['address'] } . You can see this in action with this live sample: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete (use the "Addresses" radio button). 来源: https://stackoverflow.com/questions/15071589/restrict-google-places-autocomplete