简体   繁体   English

可以在流星服务器端使用Google Maps JavaScript API吗?

[英]Possible to use Google Maps JavaScript API on meteor server side?

I am working on google map application which uses the google map version3 api. 我正在使用Google Map version3 API的Google Map应用程序上工作。 I am using in particular the utility methods in google.maps.latLng , such as getbounds, computeDistanceBetween, contains, fromLatLngToPoint in order to compute whether the bound lies inside or not. 我特别在google.maps.latLng中使用实用程序方法,例如getbounds,computeDistanceBetween,contains,fromLatLngToPoint,以计算绑定是否位于内部。

I am using package dburles/meteor-google-maps which allows me to compute some values at client side, but not at server side. 我正在使用dburles / meteor-google-maps软件包, 软件包允许我在客户端而不是服务器端计算一些值。 I have to do some calculations on server, particularly at models. 我必须在服务器上进行一些计算,尤其是在模型上。 I wonder if there is a way use google map api on meteor server. 我想知道是否有一种方法可以在流星服务器上使用Google Map API。

thanks in advance 提前致谢

You should be able to use any Node module like: 您应该能够使用任何Node模块,例如:

etc. in your backend code in Meteor. 等在流星的后端代码中。 Just make sure that it runs only for the server-side. 只要确保它仅在服务器端运行即可。

Of course you will need API keys for that to work. 当然,您将需要API密钥才能正常工作。

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

相关问题 是否可以在node.js服务器端使用google.maps api库? - is it possible to use the google.maps api library on the node.js server side? 使用swagger API在流星应用程序中连接服务器和客户端 - Use swagger API to connect server and client side in meteor application 如何在服务器端访问 node/express 发送的数组并在谷歌地图的客户端使用它? - How to access an array sent by node/express at server-side and use it at the client-side in google maps? 是否可以在现有服务器上使用服务器端渲染? - Is it possible to use server side rendering with existing server? 流星服务器端调试 - Meteor Server Side Debugging 是否可以从服务器端登录谷歌 API 并将结果传递给用户? - Is it possible to do google API sign in from the server side and pass the result to user? 无法在服务器端(galxy 托管)使用带有 Meteor 的 fs 和 webshot - Unable to use fs and and webshot with Meteor on server side (galxy hosted) 流星选择器服务器端路由器使用快速中间件 - Meteor picker server side router use express middleware Node.JS上的Google Maps Javascript API - Google Maps Javascript API on Node.JS Google Maps API的Javascript异步功能 - Javascript async functions with Google Maps API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM