简体   繁体   English

Google Maps API加密

[英]Google Maps API Encryption

So this is my first time programming with Google's API, and Stack Overflow has been very resourceful, but before I get started, I have a requirement that must be met. 因此,这是我第一次使用Google的API进行编程,Stack Overflow的资源非常丰富,但是在开始之前,我必须满足一个要求。

First, the API will be passed two addresses. 首先,API将传递两个地址。 From there, I will need the distance between these two points. 从那里,我需要这两点之间的距离。 This shouldn't be a problem. 这不应该是问题。

The question is, can I pass these addresses encrypted/encoded? 问题是,我可以通过加密/编码的这些地址吗? Meaning, I don't want to pass "123 Main St.", I want to pass a scrambled string so that the address cannot be read in the page source or any packet sniffer. 意思是说,我不想传递“ 123 Main St.”,我想传递一个加扰的字符串,这样就不能在页面源或任何数据包嗅探器中读取该地址。

Does the Google Maps API support something like this (maybe a code behind), or are there any workarounds/suggestions on how to accomplish this requirement? Google Maps API是否支持这种功能(可能是背后的代码),或者是否有任何变通方案/建议来实现此要求?

You can definitely use the Google Maps API from code-behind and I have used it in several projects. 您绝对可以从代码背后使用Google Maps API,而我已经在多个项目中使用了它。 Beware that you may need to have some points opened for your server if you use the API via server-side code, this restriction does not exist on the client-side. 请注意,如果通过服务器端代码使用API​​,则可能需要为服务器打开一些点,客户端不存在此限制。

As of 2011, Google requires all Google Maps API requests to use https, so you will get some data protection that way. 自2011年起,Google要求所有Google Maps API请求均使用https,因此您将获得这种数据保护。

Check out Google Maps API V3 for ASP.NET for a quick run-through of using the Google Maps APi both with JavaScript and code-behind (C#). 查看适用于ASP.NET的Google Maps API V3,以快速了解如何结合使用JavaScript和代码隐藏(C#)来使用Google Maps APi。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM