Questions tagged [google-maps-api]

An application programming interface specific to Google Maps.

146 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
591 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
243 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
638 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
676 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
111 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
131 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
622 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
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
289 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
413 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
75 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
610 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
651 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
328 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
1k 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 ...
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
339 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
226 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
582 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
441 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
1k views

Relationship between MS Access DB and Google Maps API/Fusion Tables

We are having an issue with a project that we are working on using Google API and M.S Access. Our project goal is to design a web map in Google API where we can select a parcel of land and have all of ...
2
votes
0answers
825 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
319 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
844 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
765 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,...
1
vote
0answers
73 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 ...
1
vote
0answers
37 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 ...
1
vote
0answers
73 views

Incorrect tile repeating in WMS?

I am trying to leverage my GeoServer and add a WMS layer to a map created with of Google Maps. What I am getting instead is the tile repeated across the display. I am passing the BBox from the ...
1
vote
0answers
164 views

Vector tile layers over 3D terrain

I have a set of vector tile layers I'm hosting (mbtiles) on Mapbox. Currently, I'm using Leaflet to overlay these on a 2D satellite view and works. However I'm wanting to add in some features to my ...
1
vote
0answers
266 views

How can I render custom google maps tiles with mapnik?

I'm currently developing my own little GIS service, that displays custom computed information on a google map. As you can see, I'm loading a custom tile overlay, where I renderd the information in a ...
1
vote
0answers
289 views

Cost of hosting an OSM tile server with similar performance to Google Maps API

I am considering switching from Google Maps API to hosting my own OSM tile server. Right now my site gets about 2,000 map hits a day, serving about 20-30 users at a time. With Google Maps API, I ...
1
vote
0answers
197 views

Deploy Google App Engine app for Google Earth Engine

Basically, an app from Google App Engine makes a request to Earth Engine (server to server basis) then renders this image to a web page. In my case, it requested SRTM data: mapid = ee.Image('...
1
vote
0answers
703 views

Response not working in AJAX/PHP

I am working on Google Maps API, where I have made a dynamic marker popup. Now I want to take the user information from the popup and save it to my MySQL database without reloading the page. So I am ...
1
vote
0answers
237 views

How to reproduce geodesic transformation in Google Maps API

I need to show points on country map of Russia, but not in Mercator projection, it should be in usual view, be more real (like we see it everywhere every day). Trying to figure out different ...
1
vote
0answers
163 views

Calculate minimum Traveled distance from L Latlng in T time

I want some functionality in my Android/iOS application i.e. U user is travelling to L location, So when the U is 15 minute away from the L location he/she will get some Notification. What i tried so ...