google-places-api

How to use React with Google Places API, to display place markers on a Google map?

时光怂恿深爱的人放手 提交于 2019-12-03 09:45:09
问题 I'm trying to build a similar map as on Airbnb, where you can view place markers as you drag the map around. I would like to display "hotel" markers from the Google Places API on a map. Using the following JS code from Google Maps I can display hotels on the google map, but I would like to do this with React, using react-google-maps. <!DOCTYPE html> <html> <head> <title>Place searches</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <style> /

Google places API does this violate the TOC? [closed]

﹥>﹥吖頭↗ 提交于 2019-12-03 08:42:11
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I want to have a little search box, where the user can search for a place (using API), then when they select a place e.g "statue of liberty, new york", I want to take them to a detail page I.E mysite/ID/statue-of-liberty-new-york and then let them do some things on that page, The only data I want from google on the detail page, is the places ID and of course the name and address of the place, that's it then I want to do

Google Places Autocomplete Remove State and Country from Result

心已入冬 提交于 2019-12-03 08:21:18
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? This is not possible without manually processing the results. If you think that it would be a useful feature, please file a Places API - Feature Request . It seems Google have

How to make a custom place picker for Android

假装没事ソ 提交于 2019-12-03 08:08:27
as I know Google does not allow developers to customize place picker layout , so I want to make a place picker like the photo below. it is from deliveroo app, I used map api but it is not totally like this photo. this picker act like place picker api it is customized. this is my code: public class Map extends AppCompatActivity implements OnMapReadyCallback { private GoogleMap mMap; private LatLng markerLatLong; private static final int REQUEST_CODE_LOCATION_ENABLE = 1; private static final int PLACE_AUTOCOMPLETE_REQUEST_CODE = 2; private static String TAG = Map.class.getSimpleName(); @Override

difference between a nearby search and a text search in Google Places API

一曲冷凌霜 提交于 2019-12-03 07:48:18
问题 Whats the difference between a nearby Search and a text Search in Google Places API? For example, a nearby Search for cafe within a radius of 1km returns only 1 result using https://maps.googleapis.com/maps/api/place/ nearbysearch /json? location=-41.319282,174.818717 & radius=1000 & sensor=true & types=cafe & key=your_api_key while text Search for cafe within a radius of 1km returns 20 results using https://maps.googleapis.com/maps/api/place/ textsearch /json? location=-41.319282,174.818717

javax.net.ssl.SSLPeerUnverifiedException: No peer certificate while I am working with google place api in android [duplicate]

天大地大妈咪最大 提交于 2019-12-03 06:54:35
This question already has answers here : Android: Making Https Request (2 answers) I am facing an javax.net.ssl.SSLPeerUnverifiedException: No peer certificate exception while working with google place api in android emulator.Below is my url: https://maps.googleapis.com/maps/api/place/search/json?&location=28.632808,77.218276&radius=1000&sensor=false&key=AIzaSyC3y3fOMTqTkCjNNETQTCKustG7BRk_eVc when i simply , paste above url in browser address bar , it simple gives Json string.So , i think there is no need of any certificate authentication. After doing so many googling and devoted 2-3 days, i

How to send a Google Places Search Request with Java

冷暖自知 提交于 2019-12-03 04:35:23
问题 I need to search Goolge Places Pages by long/lat for any banks in the area of 20m. This Google Places Doc describes how to do it with JavaScript. They are using a google.maps.LatLng Object that i don't have in Java. Does anyone now how to call the Service? Maybe there is also an Java API for Goolge Places? Best Regards, Christian. Edit 1: I found someone constructing the url like this: String url = baseUrl + "location=" + lat + "," + lon + "&" + "radius=" + searchRadius + "&" + types + "&" +

How to use React with Google Places API, to display place markers on a Google map?

余生颓废 提交于 2019-12-03 04:16:53
I'm trying to build a similar map as on Airbnb , where you can view place markers as you drag the map around. I would like to display "hotel" markers from the Google Places API on a map. Using the following JS code from Google Maps I can display hotels on the google map, but I would like to do this with React, using react-google-maps . <!DOCTYPE html> <html> <head> <title>Place searches</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <style> /* Always set the map height explicitly to define the size of the div * element that contains the map.

Google Maps API - Radius search for markers using Places?

北城余情 提交于 2019-12-03 03:58:35
问题 I have set up a Google Map using API v3. The map has a number of markers with infoboxes attached. I am looking to set up a search box outside of the map for the user to input an address and then have the nearest markers returned based on the distance away (such as a radius search). From the API documentation I think I need to uses the Places services. Can anyone point me in the right direction? 回答1: To do a radius search with the API, use the Geometry Library google.maps.geometry.spherical

Google places autocomplete not working in Windows mobile IE Browser

烈酒焚心 提交于 2019-12-03 03:12:08
We are building a mobile site for our product ridingo . We use the google places autocomplete feature extensively on our site. This is used to provide suggestions to users as they type. We tested this across multiple browsers and on devices. This is working fine in Android devices and IOS. But, on Windows mobile (OS Version 8, IE browser), the autocomplete/autopopulate list is almost unusable Problems: We are unable to touch the desired item on the autopopulate list. When touching it, it automatically closes the list (behavior similar to what we'd see when we press "ESC" button or click