Questions tagged [google-maps-api]

An application programming interface specific to Google Maps.

151 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
1k 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 ...
4
votes
0answers
360 views

Vector tile layer over Google Maps or MapKit in iOS?

I'm looking for a way to add a vector tile layer instead of the built in raster layer for Google Maps or MapKit in iOS but I can't seem to find anything that isn't a complete replacement like MapBox. ...
4
votes
0answers
2k views

Add text in the body of the a polygon in googlemap

I've created some polygons on a map and wish to have the labels displayed with them .How can i add a name or label to each polygon in the google map?
4
votes
0answers
678 views

Is there a way to expose Spherical Mercator Lat Lon in Google Map API?

The map tiles in the Google Maps are in Spherical Mercator projection (srid 900913), but in the API the methods report coordinates in Lat/Lon WGS84, e.g. map.getCenter(). Is there a way to return the ...
4
votes
1answer
738 views

How to offset/displace overlapping lines in a web map?

I have a dataset of points representing a To/From status - something like distribution centres and delivery addresses. When the user clicks on a point I'd like to show the relationships between this ...
3
votes
0answers
40 views

Getting building addresses from GoogleMaps or ArcGIS

I am trying to download all the building addresses on a specific street. Is it possible to download all addresses using GoogleMap API as building address are available online in maps but API is not ...
3
votes
0answers
153 views

Tool for merging OSM and Google route data

I'm using google API in order to solve a routing problem; by giving it points of source and destination and demanding the route. Now I want to project the route on an OSM map. Is there any tools to ...
3
votes
0answers
2k views

How to scale, rotate and translate a KMZ file in Google Earth

I'm a GIS software developer. I would like to adjust manually a KMZ over Google Earth images scaling, shifting and rotating it. What I'm wondering is a tool like the one in Google Earth to add a ...
3
votes
0answers
142 views

Reverse clip with ogr2ogr

I'm fairly new to GIS, working on a project where I overlay counties on google maps, and overlay cities on top. I'm using fusion tables, and running into Z-index issues. To get around this I'm hoping ...
3
votes
0answers
1k views

Access traffic data using Google Maps API

The following screenshot shows a traffic filter, adopted in the new Google Maps. Can we implement the similar function using Google Maps API? It looks like that google.maps.TrafficLayer can only ...
3
votes
0answers
646 views

Can markers changes undo through history/revert to original?

I'm a contributor to a food foraging map and found that many markers are in the ocean. I then also noticed that I had an undo at the top of gmaps and realised I'd moved 5 trees trying to get to my ...
3
votes
0answers
107 views

Can a Google calendar go on a map?

Can a Google calendar go on a Google map? Is there a GeoRSS that can be consumed?
3
votes
0answers
39 views

Can I create a Styled Map for only one section of Google Maps?

I have been reading everything I can to find out how this can be done. It looks like the styled map applies only to the whole map, and I can't find a way to only apply it to a certain polygon region.
3
votes
0answers
1k views

How to show information window for the marker cluster?

This is my markercluster code : i need information window for the markercluster icon as well as marker icon, i have another cluster.js file, can some one please tell me how can i show the information ...
3
votes
0answers
1k views

How Do i Secure My KML files for a rails application?

I would want to keep my KML files to be secure or password protected. I am keeping them on a public server, and i dont want them to be accessible to anyone. I am using geoxml3, so any lock applied to ...
3
votes
0answers
1k views

All latitude and longitude within 1 mile circle area

I am trying to generate pins over the map of my database coordinates by using fusion table and I want to generate only within 1 mile area circle around the specific location. To get 1 mile area's ...
3
votes
1answer
3k views

How to set google map zoom to fit the screen & position infobox labels depending on the area of polygon

I am using google map's FusionTablesLayer and polygon to set layers of USA states. I am having problem in integrating following 2 things : a) Set zoom property, so map will fit to the screen. I know ...
2
votes
0answers
199 views

Earth Engine NodeJS API: Failed to load resource and CORS policy issue

I am developing a GEE nodeJS custom application. I have gone through the documentation and source(https://github.com/google/earthengine-api/tree/master/demos/server-auth-nodejs). I setup the service ...
2
votes
0answers
77 views

Reverse geocode through Google Maps API inaccurate?

I have placed around a 1000 markers in my area through Google My Maps, transformed the KML file to CSV, and now want to transform the coordinates to addresses. I am just testing with the first 5 to ...
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
0answers
375 views

Changing default Google Maps max viewport?

I want to show a portion of the world of on my Google map, where the user can zoom in, but if he zooms out, he shouldn't be able to go further out than my default viewport (i.e, if I define Africa, ...
2
votes
0answers
670 views

TMS tileOrigin on Google Maps ImageMapType

I'm trying to show a tiled image layer on Google Maps, which is currently showing on an OpenLayers / ESRI engine. OpenLayers has a parameter on a TMS layer to specify tileOrigin (0,0 is different) ...
2
votes
0answers
1k views

Using Google Maps API to selectively highlight railway routes one at a time?

I am trying to understand the TransitLayer in Google Maps' Javascript API. Utilizing Google's example code, I managed to display a geographically-accurate map of Tokyo Metro, Toei Subway and Yokohama ...
2
votes
0answers
82 views

What is the method for mapping 200k records on Google Maps API via MYSQL db?

I have a simple Google Maps api linked to MYSQL. I am trying to map a mysql table of 200k records. I have a default display of this data set as heatmap, so am not trying to map 200k markers. Even ...
2
votes
0answers
646 views

Map gear's OL3-Google-Maps not showing the google layer even after adding google layer

I am using Map Gear's OL3-Google-Maps in order to load the google base map in OL3, I am adding like this //Before adding this i am removing the OSM base map tile layer and adding it. var googleLayer =...
2
votes
0answers
35 views

Accessing Layers Through an API?

So, I have reason to believe that this information is not available. Nonetheless, it involves using Android, and preferably the Google Maps API (though other maps may have APIs which supply this data, ...
2
votes
0answers
716 views

Geocode area/neigborhood into polygon vertices

I have been successfully using the Google Maps API using the R package ggmap to find location coordinates for e.g. addresses or city names. However, Google Maps now shows areas as well, indicating ...
2
votes
0answers
361 views

Python error in go2streetview plugin

We have the go2streetview plugin installed in QGIS 2.8.6 Wien and when performing a search using this plugin, the following error appeared: An error has occured while executing Python code: ...
2
votes
0answers
209 views

Google Maps Licensing

Sorry if this isn't the right place to ask this, I've tried looking around for support forums and have found none. I had a question regarding the ToS of Google Maps/Earth, it can be found here: https:...
2
votes
0answers
362 views

How to get indoor directions by using Google API

I have a problem using Google Direction API to get the route between two points(One point is outside the building and the other is inside the building). When I use API to get the directions, only the ...
2
votes
0answers
4k views

Finding and selecting locations in database near 10 km distance from path

In the Google Maps API, I have this Javascript. It is finding and showing user the shorter path between two cities. <!--////// \\\\\\\--> <style> #panel { position: ...
2
votes
0answers
229 views

What can I use to calculate drive times /with/ traffic considered?

I am looking to obtain drive times for a large list of addresses and want the results to take traffic conditions into consideration. For example, drive times from a distribution centre to a store at ...
2
votes
0answers
634 views

Overlapping Polygons

I have a project that requires us to plot floods in a certain area, the example below shows the flood areas. What I would like to know is how would I be able to shows these polygons in a better ...
2
votes
0answers
1k views

How to check if a point is within bounded rectangle from Java

I make an AJAX request to retrieve data from a mysql database. I add the data to google.maps.Data layer as geojson. I would only like to load the data based on the viewport. To obtain the viewport ...
2
votes
0answers
452 views

Is there any way of knowing what Travel Modes are available for directions between two places in Google Maps v3?

Is there any way of knowing what Travel Modes are available for directions between two places in Google Maps v3? Of course, requesting directions for each travel mode and checking which ones return ...
2
votes
0answers
877 views

Is it possible to cluster markers based on city name in Google Maps API

I have a requirement to display all the customers in map. Since the customer list is too large it looks messy when I place markers. I have tried the marker cluster functionality but it groups based ...
2
votes
0answers
2k views

How to get Google Street View panoramas on the same street as the requested address?

The Google Maps API geocodes an address to a point. I can use that point to find the nearest panorama (street view) image. I can then determine the heading based on the two points and show the ...
2
votes
0answers
399 views

How to identify each circles in Google Maps API?

By the Google Maps Drawing API, I can create lot of circle and other shapes. addListner method helps to get the radius, latitude and longitude of the circle. Now I want to identify each circle for ...
2
votes
0answers
863 views

egeoxml vs geoxml

What is the difference between egeoxml and geoxml? What i know is both are client-side parsers and both allow me to edit the kml files on the run. I guess egeoxml is an initiative by google itself ...
2
votes
0answers
2k views

How draw a route in Google Maps as i goes on clicking on Google map?

I wanted to get route in Google map whenever I click on the road map of Google. What I mean by click is that when I can click one place then other and so on, but route to each click must be generated ...
2
votes
0answers
773 views

directions (path find) given kml supplied bounds

Im trying to generate directions using google.maps.DirectionsService and I really need those directions bounded by the paths defined from within a pre-made kml file. I have reviewed the API docs for ...
2
votes
1answer
1k views

How do I embed a KML map using the “new” Google Maps?

I have a KML link that I can use to generate an embedded Google Map using "old" Google Maps and would like to use it instead to create a "new" Google Map embedding. To generate the an "old" embedding,...
2
votes
2answers
139 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 ...
1
vote
0answers
14 views

Create Polygons from Polylines

I am creating an application using Google Maps Drawing Library. In the application the user can draw a bunch of PolyLines as shown in the picture below. Please disregard the color variation of ...
1
vote
0answers
33 views

ggmap to get travel distance from dataframe

I am trying to use the mapdist() function from the ggmap package to get travel distances from coordinates in a dataframe. # need an api key to use the ggmap function register_google(key = "") ...
1
vote
0answers
88 views

Animating a heatmap over time using Google Maps API

I'm currently building a web application using flask and google maps api. I was wondering if it would be possible to create a page where user can select the time using a slider bar and the google ...
1
vote
0answers
180 views

How to use ground overlay google map android for polygon area to fit the map image in it?

I have a park area that is not rectangle or a simple shape. It is just like polygon area. I could load sample image on it for testing, in my android app. There it is : mGroundOverlayRotated = ...
1
vote
0answers
674 views

React Google map . Fix the marker in the center

I want the functionality as Uber/ola app where the marker is fixed in the center evenwhen we drag the map the marker should be fixed in the center. And finally when the drag end we need to get the ...
1
vote
0answers
27 views

Finding Segment information on a Route between 2 places

Is there a way to find Segment information on a Route between 2 places using Google Maps API? I have 2 places/addresses/latlong. I am looking for the direction between the two. For this direction, I ...
1
vote
0answers
435 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 ...