Questions tagged [google-maps-api]

An application programming interface specific to Google Maps.

Filter by
Sorted by
Tagged with
0
votes
1answer
57 views

Google Earth Engine: pop-up when clicking on geometry/Feature

This may be more of a JavaScript question than a GIS question. I'm adding feature points to a GEE map (https://code.earthengine.google.com/2d6c3146e5468cb9f14e10039ca22b59). My goal is to map point ...
1
vote
0answers
228 views

Road Extraction from Latitude and Longitude using Google Maps API? [closed]

Google Maps API allows grabbing roads for individual latitude and longitude specifications (or the nearest roads if the point/s are not on a road). However, the way it requires data to be entered for ...
6
votes
2answers
2k views

How to find the nearest polygon from a given point?

Basically I have set of points [lat-long pairs] which define different polygons on a map. Now I have a coordinate [lat-long] from which I want to find the nearest polygon from that point.
0
votes
1answer
31 views

Controlling order KML Polygons are drawn using Google Maps API?

I am creating an application that allows users to turn on and off KML layers: The KML layers are hosted on ArcGIS Online, and I'm bringing them into the application by creating a new KML Layer ...
0
votes
2answers
23 views

Getting WMS address from ArcGIS Online service?

Was wondering if there was a way to get a WMS service address/feature/functionality from an ArcGIS online service, to provide Tile functionality? i.e. If I want to use this ArcGIS online service (...
0
votes
1answer
1k views

Getting GPS coordinates perpendicular and parallel to AB?

I already posted a question at Stack Overflow I got the solution from @Fang but the problem is that the coordinates I need to use are GPS coordinates and apparently GPS needs a different formula than ...
4
votes
2answers
9k views

Zipcode to Polygon/Boundry

Is there any API out there which can give me Polygon value for a zipcode? I really thought that it would be fairly easy for me given the number of Maps APIs out there. Either Google Maps API or ...
1
vote
2answers
472 views

UI CHARTS ( for indices time series in python API of Google earth Engine)

If I use python api for google earth engine and want to make a UI chart for mean value of NDVI for a particular year , how does the UI.CHART function work in python api for google earth engine.
2
votes
2answers
6k views

Creating Google Maps Polygon from Data Object Using getFeatureById

First post here, so forgive me if I put a few things in the wrong place. I am trying to do a Google Maps search for places inside an arbitrary region loaded into a Data object loaded via GeoJSON file,...
0
votes
0answers
24 views

Add custom icon via mapbox.attr

I try to add my custom icon via mapIcon attr but doesn't work: <script type="text/javascript"> function fc_addressint_initMap(mapBox) { var mapLatLon = eval("(" + mapBox.attr("...
0
votes
1answer
476 views

Loading Markers via XML and adding Infobox using Google Maps API V3?

I'm having a couple of issues that I can't seem to resolve so I'm going to throw this out there to the community. I'm trying to create a Google Map that loads markers based off an existing XML file (...
0
votes
1answer
25 views

Returning raw address from pandas column using Geopy?

I have a Pandas dataframe, and I'm calling a geopy function on each row of 'address_original' column to get as much detail as possible about every address from geopy.geocoders import GoogleV3 ...
0
votes
1answer
95 views

Sorting Google DynamicMapsEngineLayers?

I tried to add several Google Maps Engine layers using the following code: gmeLayer = new google.maps.visualization.DynamicMapsEngineLayer({ accessToken: token, layerId: layerId }); gmeLayer....
0
votes
1answer
116 views

Flying a tour along a (KML) route and exporting frames

I'm pretty new to the Earth Engine / GIS cosmos so please excuse my inexperience. I'm working on a project for which I want to fly a virtual drone along a KML (or any GPS waypoint) route and export ...
0
votes
1answer
87 views

Is there a way to Collect Lat-Long in a Google Docs Form by adding script?

So I need am trying to figure out a way to collect Lat long data and have it saved automatically when I fill a Google form on my phone. Is it possible as retracing address to plot is not possible for ...
0
votes
0answers
28 views

Getting GPS coordinates of an ending point based on a specific road, a starting point and length

In an Excel file, through VBA, I would like to have the GPS coordinates of a certain point, starting from the previous known point and the length of a specific highway (or a road). I mean a "delta" ...
0
votes
1answer
52 views

Get current travel times for a list of destinations from Google Maps into a Sheet

I have a list of coordinates in Google Sheets (around 20). I'd like to input a location and receive current travel times to each coordinate, for the different transport modes. Is this possible from ...
1
vote
0answers
65 views

Consuming real-time traffic data from Google Maps?

In order to microprocess an logistic study about the best path to take, I need to consume, somehow, real-time traffic data from Google Maps. Is there an "open source" way to do this? The ...
4
votes
1answer
542 views

Getting the departure time based on a desired arrival time for driving

Context: I'm working on a logical problem as part of my Msc. thesis in GIS. I want to calculate the departure time (output) based on a desired arrival time (input). I have chosen to use an API to ...
2
votes
1answer
332 views

Setting up data from google geocoding correctly for ST_DWithin search? [closed]

I am mostly relying on What Spatial Reference System do I store Google Map's Lat/Lng in My web application takes user addresses, queries the Google geocoding API for coordinates, and then stores ...
2
votes
1answer
890 views

Google violates same origin policy using KML with Google Maps? [closed]

Does Google Violate the same origin policy when it tries to access the KML files from a globally accessible server? The condition for Google maps to display the KML is that it should be globally ...
49
votes
6answers
81k views

Getting polygon boundaries of City in JSON from Google Maps API?

When searching Google Maps for a city, the city's administrative boundary is displayed. Is there a way to get the polygon boundaries of City in a JSON format using google maps api?
3
votes
3answers
2k views

Converting PBF vector tiles to GeoJSON?

I am working on Google Maps with AirMap API. AirMap API provides me with vector tile data in pbf-format. I want to render it into Google Maps. I have researched that to render pbf vector tiles on ...
0
votes
1answer
138 views

Display the data layer to info windows taken from GeoJSON

I have a problem for displaying data to info windows on the Google Maps Data layer. Here I use GeoJSON to load data. can anyone help me? var map; function initMap() { map = new google.maps.Map(...
1
vote
2answers
111 views

Which web maps work best for which web services

I'm trying to do a project, where I grab data from a MySQL database, and display it onto a web map API mashup (showing a chart on the map). I want to develop an example using REST, SOAP and possibly ...
0
votes
1answer
14 views

KML file problem with Google Docs

I can't make this work. I have a JavaScript program that should upload a KML and it does not work. Uploading the same KML manually in Google Maps works perfectly <!DOCTYPE html> <html> &...
0
votes
1answer
160 views

How to include ArcGIS javascript apis ElevationProfile template in openlayers4 application

I developend a small application using openlayers4 javascript library. As per my bussiness requirement I need to add a elevationprofile widjit to display elevationprofile chart for drawpath. I tried ...
0
votes
0answers
9 views

Google Maps API - Missing administrative levels - How to deal with islands

Example: Spain>Balearic Islands>Ibiza Spain>Balearic Islands>Mallorca Spain>Balearic Islands>Menorca Currently Google Maps is defining the island of Ibiza at the same level as the places on the ...
0
votes
1answer
804 views

Python and Google Maps API place search: Read csv read row by row and loop fuction

I want to automate a task in Python with the Google API Search Place. Right now, my code with Google Maps API is returning places 'hospital' for one set of geographic coordinates. But, I have a CSV ...
0
votes
0answers
32 views

Google Earth like tool to direct query spatial data from an SQL database

I'm looking for a desktop reporting tool which allows me to query spatial SQL data via direct query. I'm looking for a simple application end user without any GIS knowledge can use. I've tested ...
0
votes
1answer
72 views

Is there a way to limit google street view to extent on openlayers 2?

I would like to be able to limit the Google street view area in my map to to 500m radius from where the panoramic street view starts ( this is where the user clicked the mouse on the map) Is this ...
0
votes
1answer
102 views

Using Google Maps API v2 and Maps engine?

I am researching on the options in drawing shapes on Google Maps with API v2 and Google Maps Engine. I have managed to set up the admission to draw a viewed layer on my setup on my site. Does anyone ...
3
votes
1answer
77 views

Fetching the nearest location of points, while accounting for bodies of water

I've got a database of points (in this case, schools) and in my app, users search for the nearest ones to them. Under the hood, we're currently using ElasticSearch to filter by latlng (using Geo ...
0
votes
1answer
7k views

Google Places Autocomplete Limit Suggestions to Local Area

I'm not sure if this is the right place to ask, but can I limit the suggestions that Google Places Autocomplete find to say 5 km of a certain location? If I'm in Dublin I don't want to see suggestions ...
1
vote
3answers
472 views

Creating map-based online questionnaire/survey? [closed]

I am planning to create map-based online questionnair/survey for my master dissertation on bicyle safety. What I want to do is, asking my potential respondants to mark their answers by adding pins/...
1
vote
1answer
881 views

Is there any flight travel time API?

I know there is Google API for distance where we can calculate the driving distance but similar to that I want to pass two city names and I want it to give me just the duration like 4 hours 30 minutes....
0
votes
0answers
31 views

How to correctly select a edge of a polygon in Google Maps?

How to correctly select a edge of a polygon in Google Maps? So far, I was able to create a simple demo here You can try the code to see that there's a bug wherein it doesn't select the last edge of ...
0
votes
0answers
20 views

Capturing total area generated from Google Maps' measurement tool in parent web page

I'm attempting to embed Google Maps in one of my web pages, specifically to use the measurement tool to allow users to measure buildings. When I'm on the web page that is embedding Google Maps, how ...
1
vote
0answers
30 views

How to create a custom draggable rectangle overlay in Google Maps?

I'm trying to emulate a functionality in a certain app wherein a user can draw a rectangle and and hold & drag it. Then upon dragging, it shows the current length, width and area. It's hard to ...
0
votes
1answer
2k views

How to speed up Google Geocoding API Slow performance?

I am using Google geocoding API service with their Java client, and my dev Key, The problem is when I run up to 40 requests it does slow to 600ms. I am using it in a webservice that is supposed to ...
0
votes
0answers
103 views

How to save marker and polyline in database?

I want to store marker and polyline in the database. In this script, I have 3 functions, that is to draw a polyline, marker and the point of destination. Can anyone fix my script below? var map; var ...
2
votes
1answer
1k views

Google Maps API extract elevation value along route

I am using the Directions and Elevation Service of Google Maps, in order to extract the coordinates and the elevation along a route between a start and end point. I could set my directions service ...
2
votes
1answer
5k views

Using Google Maps Coordinate System in QGIS?

I have some Points in Shapefile with BC Albers Coordinate Syetem and I need to Project them to Google Maps Lat and Long. I tried to do this by using WGS 84 / Pseudo Mercator EPSG: 3857 and WGS84 ...
1
vote
1answer
99 views

Cutting area from polygon in Google Maps API? [closed]

I found this example here. var map; function initialize() { map = new google.maps.Map( document.getElementById("map"), { center: new google.maps.LatLng(37.4419, -122.1419), zoom: 13,...
4
votes
3answers
1k views

bathymetry (Ocean Floor depth) data - API or similar

I am looking to extract the ocean floor depth from a given lat/lng. Research has lead me to lots of sources. Does anyone have any words of wisdom or good sources or the best way to achieve this? ...
1
vote
3answers
764 views

CORS error when using Google Elevation API

I'm trying to use Google elevation API with an AJAX request. It doesn't work and when I do console.log(ajax.responseText) I'm getting this error : Cross-Origin Request Blocking: The Same Origin ...
1
vote
0answers
25 views

ArcGIS Network Analyst - Using Bing Maps API or Google Maps API? [closed]

I'm looking for a resource we can use as a network dataset in the ArcGIS Network Analyst to calculate drive/walking times from locations to the nearest transportation hubs (Roads & Highways, Local ...
1
vote
1answer
889 views

Downloading Google Maps data like OSM?

I am working on a project in which I require road network. I have downloaded data through OpenStreetMap but it is not updated. Is it possible to download Google Maps data with attributes?
0
votes
0answers
20 views

Separate interstate and non-interstate roads from a given route

I have direction steps from city A to city B (obtained from Google Directions API). I need to differentiate the interstate road distances from non-interstate distances in the route. Google ...
0
votes
0answers
20 views

MySQL Query for Google Map Developer

Need your advice, i have used Google Map API for my WEB site based on MySQL database, I would like to know if MySQL Query can be implemented on Google Map API's. So it would display marker based on ...