google-maps

Using Multiple Types In Google Places

偶尔善良 提交于 2021-02-05 12:31:01
问题 I need to set multiple types in the URL https://maps.googleapis.com/maps/api/place/nearbysearch/json?sensor=true&key=API_KEY&location=LAT,LNG&rankby=distance&types=[] without using the parameter key "keyword" 回答1: Unfortunately according to Google's places API this is not yet supported and there is no consistent work around. The only way to truly achieve multiple types is to have multiple API calls. From the google API on supported types. ... Only one type may be specified (if more than one

Adding google maps to my website

ぃ、小莉子 提交于 2021-02-05 12:30:52
问题 I have a page and im trying to add google map to it but it doesn't appear in the page, it has no errors in the console log but it doesn't appear in my page, here is my code: <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD19cqU2rIzBHOPL_t8GhJJ9cmi-HNpULg"></script> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script> function initialize() { var mapOptions = { zoom: 15, scrollwheel: false, center: new google.maps.LatLng((31

GoogleMaps Optimize waypoints and relate to original sequence

北慕城南 提交于 2021-02-05 12:22:59
问题 I'm using googlemaps api to route and optimize a set of waypoints from a Database. The waypoints are fed in, in random order. Once the waypoints are optimized via googlemaps to create a proper route order, I need a way to correlate them to the original sequence so I can update the route order in a database. For example my original data from the DB might look like the below (LoadNum is blank to start): LoadNum Order address City State Zip blank 1 456 Elm Street Chicago IL 12345 blank 2 123

GoogleMaps Optimize waypoints and relate to original sequence

浪尽此生 提交于 2021-02-05 12:22:43
问题 I'm using googlemaps api to route and optimize a set of waypoints from a Database. The waypoints are fed in, in random order. Once the waypoints are optimized via googlemaps to create a proper route order, I need a way to correlate them to the original sequence so I can update the route order in a database. For example my original data from the DB might look like the below (LoadNum is blank to start): LoadNum Order address City State Zip blank 1 456 Elm Street Chicago IL 12345 blank 2 123

Google Maps: Retrieve nearby subway stations and their subway line info

拜拜、爱过 提交于 2021-02-05 11:13:17
问题 I've seen that you can retrieve nearby subway stations for a location using the Google Maps Places API, as explained here: Google Maps: Retrieve nearby subway station's latitude and longtitude? But in addition to that data, I would also like to retrieve the subway lines available at that station. Is this possible? 回答1: Currently the Places API doesn't expose this information for transit stations. There is a feature request in Google issue tracker to make it possible to retrieve lines numbers

Google Maps: Retrieve nearby subway stations and their subway line info

与世无争的帅哥 提交于 2021-02-05 11:10:36
问题 I've seen that you can retrieve nearby subway stations for a location using the Google Maps Places API, as explained here: Google Maps: Retrieve nearby subway station's latitude and longtitude? But in addition to that data, I would also like to retrieve the subway lines available at that station. Is this possible? 回答1: Currently the Places API doesn't expose this information for transit stations. There is a feature request in Google issue tracker to make it possible to retrieve lines numbers

How to convert long/lat integers from google history JSON to google map format?

萝らか妹 提交于 2021-02-05 09:38:10
问题 Google History JSON exporeted api return two integer for latitude and longitude, the file look like this: { "locations" : [ { "timestampMs" : "1525631885005", "latitudeE7" : 511052047, "longitudeE7" : 207459413, "accuracy" : 16 }, ... ] } I have script that search through that JSON and I want to test if it find correct location, so how can I convert that numbers to values that can copy paste to google map web app to test? 回答1: latitudeE7 and longitudeE7 are the latitude and longitude

How to show an image by clicking on a marker in google maps

旧巷老猫 提交于 2021-02-05 09:08:55
问题 I have the following code with three markers, how is it possible to click on one of the markers to load an image? ill try and put a <div> but its not working. any ideas? <script type = "text/javascript"> // Define your locations: HTML content for the info window, latitude, longitude var locations = [ ['<h4>Tj</h4>Lat:32.509604, Lon:-117.020600', 32.509604, -117.020600, "<div><img width='254' height='355' src='http://descubretijuana.com/sites/default/files/mainrotatorpanoramica.jpg'</div>"], [

How to show an image by clicking on a marker in google maps

倖福魔咒の 提交于 2021-02-05 09:01:52
问题 I have the following code with three markers, how is it possible to click on one of the markers to load an image? ill try and put a <div> but its not working. any ideas? <script type = "text/javascript"> // Define your locations: HTML content for the info window, latitude, longitude var locations = [ ['<h4>Tj</h4>Lat:32.509604, Lon:-117.020600', 32.509604, -117.020600, "<div><img width='254' height='355' src='http://descubretijuana.com/sites/default/files/mainrotatorpanoramica.jpg'</div>"], [

Showing errors while creating Google Maps URL from a Sheets using App Scripts?

吃可爱长大的小学妹 提交于 2021-02-05 08:40:53
问题 I have latitude and longitude values in a Google Sheet and I want to draw a Google Map URL using App Scripts. I have a paid Google Maps API key but can't find ways to integrate it with my App Scripts code in the Script Editor? While executing the codes, it shows error message, "The Google Maps Platform server rejected your request. You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account" The