google-static-maps

Drawing a circle Google Static Maps

不羁岁月 提交于 2019-11-28 17:18:42
I have a Google Maps Circle drawn on v3 api. When the user has plotted there circle (or polygon if they choose), they can save the data to the server. If the user has picked a radial search, the Centre coordinates and the radius in feet is stored to the database. This means when the user reloads his search, it can pull through the circle again (like below). I'm having 1 problem, however, which is when the user selects what search they would like to use. It loads the polygon fine, if they drew a polygon, and if it's a circle it pulls through the marker on the center. However what I need is a

google maps static map polyline passing through lakes, river, mountains

拥有回忆 提交于 2019-11-28 14:51:17
My program uses google maps directions for web Services to find a route between two points. The result is parsed and stored in variable. This variable is then used to compose google static map URL. The parse and the URL are working correctly. The problem is that the drawn "route" passes through a lake and mountains. { String GPS = "-22.978823,-43.233249"; String link = MAPS_BASE_URL + "center=brazil," + GPS + "&markers=color:blue|brazil," + GPS + "&path=color:0xff0000ff" + "%s" + "&zoom=13&size=1024x1024&sensor=false"; String htmlContent = ""; String direction_URL= ""; URL url = null; String

how to create a static api map with directions

一笑奈何 提交于 2019-11-28 13:02:12
问题 I am trying to build a static google map with directions from villanova,pa to devon, pa. I have generated a google api key also and I am not able to build the url. can you please give me a sample url so that i can see how it is and build the new ones. thanks 回答1: look here: Google Maps API Doc Basically the flow is: 1) you ask for Directions (via Directions API) 2) in the XML/JSon result, you'll find a tag like this: <overview_polyline> <points> a lot of chars here.. </points> </overview

New Google Maps Platform - How do I set my own usage limits?

大憨熊 提交于 2019-11-27 16:21:45
问题 In their notifications about the new billing system for the Google Maps APIs, Google very clearly state that you "can set usage limits to protect against unexpected increases". However, I haven't found any documentation regarding how to set these usage limits against an API key. Does anyone know how to do this? To clarify, I would like to set my own daily usage limits against my API key to prevent it ever going over the free threshold for the static maps API. 回答1: I understand Google means

Google static maps with directions

回眸只為那壹抹淺笑 提交于 2019-11-27 12:28:23
I have in my project list of generated places with mini maps. There should be 2 points on the map and colored road direction between this two points. it should looks somehow like this: This should be static image, because there will be many such pictures with different directions on the page. But as I see, Google Static map didn't allow to draw such image. There can be only direct line between two points, like this: But I need direction on it... I decided to use static map, because in my web application I receive coordinates of those 2 points, and it's easy to put it as variables in my PHP

Convert long/lat to pixel x/y on a given picture

こ雲淡風輕ζ 提交于 2019-11-26 10:07:28
问题 I have a city map of Moscow. We modified a Google Maps image with some artistic elements, but the relation between GPS coordinates and pixels remains the same. Problem: How do I convert GPS coordinates from various data points we have into pixel coordinates in the image? Ideally I can do this in Javascript, but PHP would be OK. I know that on small scales (for example on city scales) it to make simply enough (it is necessary to learn what geographic coordinates has one of picture corners,