google-static-maps

Incorrect path using encoded polyline from Google Directions API in Static Maps

霸气de小男生 提交于 2020-06-16 19:08:06
问题 I'm trying to use an encoded polyline from Google's Direction API and display it in a Google Static Map image. When I use the encoded polyline in the Static Map the path is displayed incorrectly - it starts in the correct place, and has the correct general path, but is skewed from the expected results. As an example, I've made a request for rail directions from Bern to Zurich Airport. The API returns the following encoded polyline: }sp}Gmrkl@m@wIiAaB_BaA}IcCmLoFqG_DuFkAyN[mEiBqN}MqFsLqUoxAyG{

how to draw polygon using string array of latlng in google map

那年仲夏 提交于 2020-05-13 15:26:18
问题 In my app, i have recyclerview which contain imagview and this imageview contain static map image by using coordinates which i store in sqlite. and when i click on that image i am passing that coordinates in string array format to other map activity and then using this string array coordinates again draw the same polygon which static map hold into google map. but i don't understand how to do this. I tried following code but not working: this is code of my adapter class where i display static

Custom marker missing … sometimes

主宰稳场 提交于 2020-01-24 20:44:05
问题 We're using the static google maps API and things were going fine when suddenly it started getting hiccups with our custom marker icon. Sometimes it get's displayed as intended, sometimes we end up with the default marker and the yellow banner in the upper right corner stating: "Map error: g.co/staticmaperror". Taking a look at the headers we found that google seems to have issues fetching our marker image: x-staticmap-api-warning: Failed to fetch image url https://www.xyz.de/some_image.png I

google static map api works on host only after localhost

女生的网名这么多〃 提交于 2020-01-03 05:50:08
问题 i have Simple API Access key for my website.. I have set Referers:www.mysite.com and www.mysite.com/*.. i am using static map api in my website.ex: https://maps.google.com/staticmap?markers=11.6879216,92.7241781&size=300x300& key=mykey &sensor=false. . when i am trying to access in page i got this message.. "The Google Maps API server rejected your request. This site or IP is not authorized to use this API key.". But if load the same page with same api key in localhost using wamserver, it

Get SW & NE corners of Google Static Maps API

眉间皱痕 提交于 2019-12-31 03:11:53
问题 I'm having a problem with getting the bounds of my Google Static Map in my Unity application. I've tried multiple answers found here on stackoverflow. .NET related question Javascript related question The map I'm trying to calculate the corners for is this one. First I tried translating marcelo his code from javascript to C#. Which is translated into the following class. using System; using UnityEngine; public class MercatorProjection { static double MERCATOR_RANGE = 256; Point pixelsOrigin;

Drawing a circle Google Static Maps

夙愿已清 提交于 2019-12-29 03:04:30
问题 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

How do I check if my domain is grandfathered?

*爱你&永不变心* 提交于 2019-12-25 16:08:35
问题 I have thoroughly read through the updated google API Terms and Conditions: https://developers.google.com/maps/pricing-and-plans/standard-plan-2016-update Specifically, this excerpt: Active domains created before June 22, 2016, continue to be able to access the Google Maps JavaScript API, Static Maps API, and Street View Image API without an API key. They are not affected by keyless access being unavailable for new domains. My question is, how do I figure out if my domain is grandfathered and

Generate Image of Google map [closed]

本秂侑毒 提交于 2019-12-23 15:05:01
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I want to allow end users of my website to generate image of google map. How is this possible after the User has selected its location on google map and can then generate the image. 回答1: It's not allowed. See

Google static map issue (not displaying)

混江龙づ霸主 提交于 2019-12-23 04:35:30
问题 I have very strange issue with static google maps on my android device. I have static image map. When I connect to the Internet with Wi-Fi - this map looks well in browser, but when I connect 3G - I see this: Why I can't see map with 3G? 回答1: Im having the same problem, and the problem lies with your telecom provider. Google blocks them I think (or the ip address that you get from the telecom provider is always over the limit). Use a proxy script on your server and direct the call there. Make

Google static map issue (not displaying)

旧城冷巷雨未停 提交于 2019-12-23 04:34:20
问题 I have very strange issue with static google maps on my android device. I have static image map. When I connect to the Internet with Wi-Fi - this map looks well in browser, but when I connect 3G - I see this: Why I can't see map with 3G? 回答1: Im having the same problem, and the problem lies with your telecom provider. Google blocks them I think (or the ip address that you get from the telecom provider is always over the limit). Use a proxy script on your server and direct the call there. Make