[英]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.