jjzjj

geoPoints

全部标签

java - Android Studio 中的 Google Maps v2。未找到 GeoPoint

我正在处理在Eclipse中编写的代码,我正在迁移到AndroidStudio,但是我在导入时遇到了问题com.google.android.maps.GeoPoint;但我可以导入com.google.android.gms.maps.GoogleMap;我试图在我的Gradle文件中添加编译'com.google.android.gms:play-services:6.5.87'而且我也尝试过使用.jar,但是我没有得到好的结果。编译文件('libs/google-play-services.jar')我在很多地方搜索过这个,但没有找到任何帮助,万一有人解决了这个问题并希望帮助我,

ios - 从 Parse 查询 GeoPoint 并将其作为 MKAnnotation 添加到 MapKit?

我正在尝试查询存储在Parse后端的PFGeoPoints数组。我在Parse中有一个名为“Post”的PFObject,分配给它的数据有“location”、“title”、“message”等。从我的应用程序发布后,所有内容都会发送到Parse,并正确存储在后端。我在从Parse检索“Post”PFObject的属性并将它们存储到map上的MKAnnotation中时遇到问题。这是我的MapViewViewController:importUIKitimportParseimportCoreLocationimportMapKitclassMapViewViewController

swift - 在 Parse+Swift 中基于距离过滤器获取对象

我是IOS开发的新手,我几乎不知道这个错误是什么意思。当我尝试使用Parse获取距离用户1.0公里以内的对象时出现错误。PFGeoPoint.geoPointForCurrentLocationInBackground{(geoPoint:PFGeoPoint?,error:NSError?)->Voidinvarquery=PFQuery(className:"VenueData")query.whereKey(key:"Name",nearGeoPoint:geoPoint,withinKilometers:1.0)varobject=query.findObjects()prin

ios - 快速解析地理点未获取当前位置

当我向后端发送内容时,尝试使用解析PFGeoPoint.geoPointForCurrentLocationInBackground获取当前位置。代码看起来像NSLog("Beforeblock")PFGeoPoint.geoPointForCurrentLocationInBackground{(geoPoint:PFGeoPoint!,error:NSError!)->VoidinNSLog("insideblock")if!error{//dosomethingwiththenewgeoPoint}}而且我从来没有在控制台上得到我的内部block。我安装了CoreLocation

android - 将 GeoPoint 转换为位置

我知道这是一个非常愚蠢的问题——但是转换GeoPoint的最佳方法是什么?到Location在Android平台上。 最佳答案 doublelatitude=geoPoint.getLatitudeE6()/1E6;doublelongitude=geoPoint.getLongitudeE6()/1E6;location.setLatitude(latitude);location.setLongitude(longitude); 关于android-将GeoPoint转换为位置,我们

android - 将 GeoPoint 转换为位置

我知道这是一个非常愚蠢的问题——但是转换GeoPoint的最佳方法是什么?到Location在Android平台上。 最佳答案 doublelatitude=geoPoint.getLatitudeE6()/1E6;doublelongitude=geoPoint.getLongitudeE6()/1E6;location.setLatitude(latitude);location.setLongitude(longitude); 关于android-将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));

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