google-places-api

Accessing Additional Results in google places search

混江龙づ霸主 提交于 2020-01-06 14:14:21
问题 Hi to all I am trying to get places from The Google Places API. for the first time I got the first 20 result but when I use it second time with the request "next_page_token" like this : https://maps.googleapis.com/maps/api/place/search/json?page_token=CkQ3AAAADjez7YyK689hZ1LwKAvXMEEuoMNwFn7tAHW5w4R6B9Izqo901-5lsC4Zk4lsFjwei0LIKmwknTAvSSJsEvclmhIQ8K9Ike7Yw8JCbAf83lGYvhoU80XJzsq0JhuedXnz5MhnqTDXxoQ&key=AddYourOwnKeyHere then the response I get is REQUEST_DENIED am i doing something wrong. 回答1:

Google Places API Search for Keyword and City

折月煮酒 提交于 2020-01-06 08:18:09
问题 I would like to allow users to search for a keyword + city to return results for that keyword in a city. For example "starbucks Seattle" should return all starbucks in Seattle. However, it doesn't seem that keyword search includes cities - and so "starbucks seattle" just returns nothing. I think the autocomplete api has such functionality, but the places api does not. Any suggestions? 回答1: Try using the Places API Textsearch endpoint: https://maps.googleapis.com/maps/api/place/textsearch/json

AutoComplete Google Javascript

筅森魡賤 提交于 2020-01-06 06:49:45
问题 Hi I am having trouble getting the autocomplete to display like here. My code works on submit and displays the map properly, but does not show results of autocomplete . I am wondering what could be the issue. Here is my HTML <div id="floating-panel"> //this is the text field that does not display the autocomplete <input id="address" placeholder="Enter Starting Location" type="text"/> <input id="submit" type="button" value="Directions"> </div> <div id="right-panel"></div> <div id="map"></div>

AutoComplete Google Javascript

孤者浪人 提交于 2020-01-06 06:49:23
问题 Hi I am having trouble getting the autocomplete to display like here. My code works on submit and displays the map properly, but does not show results of autocomplete . I am wondering what could be the issue. Here is my HTML <div id="floating-panel"> //this is the text field that does not display the autocomplete <input id="address" placeholder="Enter Starting Location" type="text"/> <input id="submit" type="button" value="Directions"> </div> <div id="right-panel"></div> <div id="map"></div>

jsFiddle can't use externall resource like Google Place API?

旧时模样 提交于 2020-01-05 10:06:09
问题 I prepare some small code http://jsfiddle.net/VW9uR/ with External Resource to Google Place API, but the resource doesn't work. The source is: http://maps.google.com/maps/api/js?sensor=false&libraries=places How to add correct resource? 回答1: jsfiddle needs a file-extension to determine which type of file should be loaded. Where no file-extension is available add the extension to the QUERY_STRING, e.g.: http://maps.google.com/maps/api/js?sensor=false&libraries=places&.js Demo: http://jsfiddle

Google Places API mapping a company

核能气质少年 提交于 2020-01-05 04:58:40
问题 I'm trying to plot a marker in a Google Map where a company is, so for example I am looking for the Apple Store in Aberdeen, Scotland I would like a marker there and when I click the marker it will show the info window with the company details which is generated from Google with reviews etc. I can't find any documentation on how to do this, but the closest I found is a Company Lookup which then points you to the location. I'd rather be able to cut out the start and just have the company name

How to put google places api working code under IIFE

微笑、不失礼 提交于 2020-01-05 04:35:33
问题 var calli = (function(){ var inputbox, geocoder; function initAutocomplete() { geocoder = new google.maps.Geocoder(); inputbox = new google.maps.places.Autocomplete( (document.getElementById('input-box')), { types: ['geocode'] }); inputbox.addListener('place_changed', fillInAddress); } function fillInAddress() { var getplace = inputbox.getPlace(); codeAddress(document.getElementById('input-box').value); } function codeAddress(address) { geocoder.geocode({ 'address': address }, function

Requests POI from a location using Xamarin (Android)

谁说胖子不能爱 提交于 2020-01-05 04:33:15
问题 Im trying to create an android app with xamarin.I want the user to be able to input an address/location and receive POI (Points of Interest) near it (within a certain radius). I know google places api can do this, does xamarin have built in capability for something like this? Can I somehow interface with the Google Places api? Or is there something I don't know about? Thanks for the help! 回答1: Use HTTPWebRequest class to create a request to Google API, code snippet: private void button1_Click

Google's Places API and JQuery request - Origin http://localhost is not allowed by Access-Control-Allow-Origin

故事扮演 提交于 2020-01-05 04:26:12
问题 I doing some testing for a project I got in mind which involves using places nearby. So I went with the big guy and started messing around with Google's Places Api. I'm using leaflet with openstreet tiles for my map. Now everything is fine until I try to use the dang thing. var lat = coords.lat; var lng = coords.lng; var apiUrl = "https://maps.googleapis.com/maps/api/place/nearbysearch/json"; var data = { key: 'AIzaSyBl8bmE8kQT7RjoXhP6k2yDti44h9-fSUI', location: lat+','+lng, radius: '10000',

Getting the phone number of nearby place

给你一囗甜甜゛ 提交于 2020-01-04 13:58:13
问题 I've been following this tutorial on displaying nearby places, in my case I need nearby hospitals. I'm able to show my current location and display nearby hospitals. But what I want to do is add the telephone number of those hospitals being displayed. I've tried adding formatted_phone_number in my code but it doesn't display the correct phone number but instead displays "-NA-" which is the default in the event that there's no number available. Any help would be greatly appreciated thanks!