草庐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

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

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

java - OSMdroid 找不到类 GeoPoint

我一直在从svn创建我自己的osmdroidapk,我已经结帐了。使用此方法:mappingdev.wordpress.com/2011/08/24/166/我已经能够从Osmdroid创建jar文件并将其包含在我的Android应用程序中。问题是,当我的应用程序启动时,我收到警告。09-2116:09:08.465:E/dalvikvm(23563):Couldnotfindclass'org.osmdroid.util.GeoPoint',referencedfrommethodcom.globaler.app.Poi.fillFromCursor09-2116:09:08.470