谷歌地图非网页访问 [英] google maps non-web access

查看:128
本文介绍了谷歌地图非网页访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够从非Web应用程序访问Google Maps API。我在Google地图的常见问题解答中看到这是可能的。但是,我找不到任何参考从基于PC的应用程序访问API。有人可以指向正确的方向吗?

I need to be able to access the Google Maps API from a non-web application. I see in Google Maps' FAQs that this is possible. However, I cannot find any reference to accessing the API from a PC-based application. Can someone point me in the right direction?

(我想从Delphi应用程序访问API,如果这有帮助)。

(I want to access the API from a Delphi application, if that helps.)

提前感谢

推荐答案

前段时间我写了一系列关于使用Google maps API的文章v3从Delphi,基本上你需要一个 TWebBrowser 组件,并加载一个HTML页面用于处理 Google Maps JavaScript API v3 。从这里使用 IHTMLWindow2.execScript MSHTML Interfaces ,您可以与来自Delphi的JavaScript代码和Google Maps API响应。

Some time ago I wrote a series of articles about using the Google maps API v3 from Delp basically you need a TWebBrowser component and load an HTML page with the JavaScript code to handle the Google Maps JavaScript API v3. from here using functions like IHTMLWindow2.execScript and the MSHTML Interfaces you can interact with the JavaScript code and the Google Maps API responses from Delphi.

  • Using the Google Maps API V3 from Delphi – Part I Basic functionality
  • Using the Google Maps API V3 from Delphi – Part II Styled Maps
  • Using the Google Maps API V3 from Delphi – Part III Getting the latitude and longitude of a mouse click
  • Using Google maps (Static Maps) without TWebBrowser

另外看看这些项目

  • Delphimaps
  • GMLib – Google Maps Library

这篇关于谷歌地图非网页访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆