Questions tagged [geopoints]

229 questions
0
votes
1 answer

android losing precision of the lon and lat from location object

I've an app that gets the current user's location from a location service. When i get the lon and lat from the location object, they are as follows lat = 53.653770446777344 lon = -1.520833969116211 . I then store these in a GeoPoint object which…
turtleboy
  • 8,210
  • 27
  • 100
  • 199
0
votes
1 answer

error when trying to load csvToGeoPoints

I need to collect gps point from a csv and create a list of geopoints so I'll be able to add them as overlays on my map. So I've come up with this piece of code that collects all the relevant points according to the type of garbage to recycle. I'm…
devdc
  • 161
  • 1
  • 4
  • 13
0
votes
1 answer

How to know which of the geopoints is closest to my actual current location?

Hope someone could shed some light on my problem. I have 9 sets of geopoints data. Is there a way to decide/select which is the closest geopoint to my current GPS location(p1 to p9)? public class LocationCalc extends Activity { GeoPoint p1, p2, p3,…
Ken
  • 3
  • 4
0
votes
1 answer

android geopoint app with remote sqlite

This is my code (bellow), how to remove geopoints form code, and read it from sqlite from server? i have more than 1000 geopoints so my code is too long. I have created datebase allready, but dont know how to connect it from server. public class…
Kristijan Drača
  • 614
  • 4
  • 16
0
votes
1 answer

adding Geopoints to ItemizedOverlay array failed

I've been trying to add my GeoPoints to the itemizedOverlay Array in order to draw the points on the map. Unfortunately, the app crashing at this point. My Code: package com.example.phooogle; public class GoogleMapsAppActivity extends MapActivity…
iAziz
  • 149
  • 1
  • 1
  • 12
0
votes
2 answers

Fatal Error when I try to launch my custom MapActivity

This in a bit complex issue so read carefully. I have tried to realize a map that -shows my current position, -when I click on a point in the map, the app should place a custom geoPoint getting latitude and longitude to pass these to an activity…
AndreaF
  • 11,975
  • 27
  • 102
  • 168
0
votes
1 answer

Converting a string to an int for an Android Geopoint

I'm getting latitude and longitude as strings from a Google Places URL. Now I'd like to place a pin on a map using the obtained coordinates. Something is goofy because I'm trying to parse the strings into integers for the GeoPoint, and the results…
CaptKirk
  • 63
  • 1
  • 11
0
votes
1 answer

GoogleMaps GeoPoint value range

I tried to add some GeoPoints on my map but I've problems with some “special” points. The range of the latitude value is +90 to -90 and therefore I want to add a point like the this... int latitude: 85000000; int longitude = 45000000; GeoPoint point…
FredFloete
  • 627
  • 2
  • 13
  • 33
0
votes
1 answer

Android mapview geopoint difference emulator and device

i am getting data from gps provider using mylocation class. code is this: MyLocation.LocationResult locationResult = new MyLocation.LocationResult() { @Override public void gotLocation(Location location) { //Got the…
eluleci
  • 3,489
  • 1
  • 26
  • 24
-1
votes
1 answer

"The operator '[]' isn't defined for the type 'Object'.Try defining the operator"

When trying to enter the collection I get the following problem The operator '[]' isn't defined for the type 'Object'.Try defining the operator I need help to solve this problem, I do not understand why the error occurs, and I have not found any…
-1
votes
2 answers

How does one access the latitude and longitude of a Firestore Geopoint Object with Python (this should be easy!)?

I am having difficulty retrieving the latitude and longitude from a Firestore Geopoint object in Python. I've tried multiple ways but none of them seem to work. Any suggestions? The geopoint object is at alertLocation in the dict. Code: docs =…
-1
votes
1 answer

Determine if a geoPoint fits inside a rectangle

How can I determine if a latitude/longitude fits in a rectangle? This rectangle is built by two GeoPoints (minLat/minLong, maxLat/maxLong). We could resolve without Solr or ElasticSearch?
Ignasi
  • 5,887
  • 7
  • 45
  • 81
-1
votes
1 answer

GeoPoint and current Location

how I can get current GeoPoint from my location. I am on : Longitude: 21.760029 Latitude: 54.035795 But when I use getLatitude(), I have 54.0 but I want 54.035795.
Unmerciful
  • 1,325
  • 4
  • 21
  • 38
-2
votes
1 answer

I am trying to append PFGeoPoint from parse into array and convert into CLLocationCoordinate2D

I have multiple PFGeoPoints in parse an I want to import all of them, and append them to an array, so at the end it will be an array of geopoints i.e. [ [21,13], [45,67] ]. And I want to convert it to CLLocationCoordinate2D, but I get an…
stackerleet
  • 518
  • 1
  • 5
  • 16
-2
votes
1 answer

Fetching Data From A External Database Based On Location

While searching on the internet for a few hours I found that there are several ways of calculating the distance between 2 geo points, and getting the distance in different units. However I didn't really find the explanation for what I'm looking for.…
Ivan Javorovic
  • 253
  • 1
  • 3
  • 8
1 2 3
15
16