是否可以在 node.js 服务器端使用 google.maps api 库? [英] is it possible to use the google.maps api library on the node.js server side?

查看:25
本文介绍了是否可以在 node.js 服务器端使用 google.maps api 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发使用谷歌地图 version3 api 的谷歌地图应用程序,特别是 google.maps.geometry.encoding 中的实用方法,例如 decodePath、encodePath、computeDistanceBetween、interpolate,以便计算位置

I am working on google map application which uses the google map version3 api, in particular the utility methods in google.maps.geometry.encoding, such as decodePath, encodePath, computeDistanceBetween, interpolate, in order to compute where the places

在第一个版本的 web 应用程序中,大部分应用程序逻辑都在 web 浏览器上,现在我想将一些逻辑移到基于 node.js 的服务器上.但是,由于应用程序依赖于 google api,我想知道有没有办法在 node.js 服务器上仍然使用 google map api

In the 1st version of web app, much of application logic is on the web broswer, and now I want to move some logic to the node.js based server. however, since the application depends on google api, I wonder is there a way that I can still use google map api on the node.js server

提前致谢

推荐答案

你可以使用像 node-googlemaps https://github.com/moshen/node-googlemaps 已经为您封装了 API.或者,您可以使用任何可以帮助您发出 API 请求的节点模块:

You could use a module like node-googlemaps https://github.com/moshen/node-googlemaps that has already wrapped the API for you. Or, you could use any node module that will help you make API requests:

Mikeal 的请求:https://github.com/mikeal/request

Restler:https://github.com/danwrong/restler

虽然,我不确定具体的实用方法.

Although, I'm not sure about the utility methods specifically.

这篇关于是否可以在 node.js 服务器端使用 google.maps api 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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