草庐IT

geopoint

全部标签

android - 在 GoogleMap 叠加层中为 Geopoint 赋予双倍值(value)

我想使用覆盖指向Googlemap位置。为此,将向GeoPoint分配纬度和经度值,但它只接受int值。如何给它分配一个double值?或者是否有其他解决方案可以指向确切的位置?point=newGeoPoint((int)t.getLati(),(int)t.getLongi())任何帮助将不胜感激。 最佳答案 自从GeoPoint接受以微度为单位的纬度和经度,只需像这样创建您的点:GeoPointpoint=newGeoPoint((int)(latitude*1e6),(int)(longitude*1e6));

android - 在 GoogleMap 叠加层中为 Geopoint 赋予双倍值(value)

我想使用覆盖指向Googlemap位置。为此,将向GeoPoint分配纬度和经度值,但它只接受int值。如何给它分配一个double值?或者是否有其他解决方案可以指向确切的位置?point=newGeoPoint((int)t.getLati(),(int)t.getLongi())任何帮助将不胜感激。 最佳答案 自从GeoPoint接受以微度为单位的纬度和经度,只需像这样创建您的点:GeoPointpoint=newGeoPoint((int)(latitude*1e6),(int)(longitude*1e6));

android - 如何在 Android 的 Google map 上解析点并绘制路线?

如何在Android操作系统的Googlemap上获取积分并绘制路线? 最佳答案 您要解析的示例URL是...http://maps.googleapis.com/maps/api/directions/xml?origin=52.31,16.71&destination=51.27,6.75&sensor=false根据您的目的更改起点[lat,long]和目的地[lat,long]--积分获取importjava.io.StringReader;importjava.util.ArrayList;importorg.xmlpul

android - 如何在 Android 的 Google map 上解析点并绘制路线?

如何在Android操作系统的Googlemap上获取积分并绘制路线? 最佳答案 您要解析的示例URL是...http://maps.googleapis.com/maps/api/directions/xml?origin=52.31,16.71&destination=51.27,6.75&sensor=false根据您的目的更改起点[lat,long]和目的地[lat,long]--积分获取importjava.io.StringReader;importjava.util.ArrayList;importorg.xmlpul

node.js - 无服务器框架 : How to add external NPM packages?

我的情况是我在将外部NPM包添加到我的无服务器框架项目(特定包是geopoint)时遇到了一些麻烦。我转到无服务器项目的根文件夹并运行npminstallgeopoint--save。package.json更新为dependencies":{"geopoint":"^1.0.1"}并创建了node_modules文件夹。我的文件夹结构如下:根项目文件夹-功能--地理空间---handler.js-node_modules--geopoint在我的functions/geospatial/handler.js中,我声明了geopoint模块:vargeopoint=require('g

node.js - 无服务器框架 : How to add external NPM packages?

我的情况是我在将外部NPM包添加到我的无服务器框架项目(特定包是geopoint)时遇到了一些麻烦。我转到无服务器项目的根文件夹并运行npminstallgeopoint--save。package.json更新为dependencies":{"geopoint":"^1.0.1"}并创建了node_modules文件夹。我的文件夹结构如下:根项目文件夹-功能--地理空间---handler.js-node_modules--geopoint在我的functions/geospatial/handler.js中,我声明了geopoint模块:vargeopoint=require('g

firebase - 如何通过 Flutter 在 Firestore 中添加 Geopoint、时间戳和对文档的引用

在Firestore中设置基本类型非常简单。但我找不到如何使用flutterFirestore插件构建Geopoint、Timestamp和另一个文档引用。你在你设置给coollectionMap的内部数据中分配了什么?对于每个对象?有什么帮助或例子吗? 最佳答案 我在服务器上手动创建了一个对象,并将其放入我的flutter应用程序中。对于TimeStamp,您可以直接从dart传递DateTime对象。对于Geopoint,Firestore插件中有GeoPoint对象。newGeoPoint(longitude:3.4,lati

iOS 8 Parse.com 更新和 pf geopoint 当前位置

所以我最近更新到与iOS8兼容的最新ParseSDK,并添加了两个键NSLocationWhenInUseUsageDescription和NSLocationAlwaysUsageDescription...明白为什么。下面是一段代码:[PFGeoPointgeoPointForCurrentLocationInBackground:^(PFGeoPoint*geoPoint,NSError*error){if(!error){NSLog(@"Gotcurrentgeopoint!");....else{UIAlertView*errorAlert=[[UIAlertViewallo

android - 如何使用 Android MapView 计算两个 GeoPoints 之间的距离

我想知道两点的距离或我当前mapView的宽度和高度距离(以公里为单位)。是否有任何androidmapapi可以做到这一点? 最佳答案 这不是MapAPI,但是AndroidSDK的Location类有类似的方法distanceBetween和distanceTo检查一下here 关于android-如何使用AndroidMapView计算两个GeoPoints之间的距离,我们在StackOverflow上找到一个类似的问题: https://stackov

java - 如何将 Firestore 中的 GeoPoint 转换为 LatLng

您好,我正在使用AndroidStudio,但在转换从Firestore获得的数据时遇到了问题。我将数据保存在我的Firestore类型GeoPoint中,我想查询它并将其转换为对象类型LatLng。这是我的代码:finalFirebaseFirestoredb=FirebaseFirestore.getInstance();finalCollectionReferencestores=db.collection("stores");stores.get().addOnCompleteListener(newOnCompleteListener(){@Overridepublicvoi