Questions tagged [geopoints]
229 questions
130
votes
5 answers
Double or decimal for latitude/longitude values in C#
What is the best data type to use when storing geopositional data in C#? I would use decimal for its exactness, but operations on decimal floating point numbers are slower then binary floating point numbers (double).
I read that most of the time you…

KRTac
- 2,767
- 4
- 22
- 18
10
votes
1 answer
Google Maps API - Geometry Encoding - TypeError: a.lat is not a function
I have a list of GeoPoints in an array with looks like this:
var coordinates = [[50.7, 6.7], [49.5, 7.0], ...]
When I try to use encodePath for minifying the code as explained here, I get the following error:
TypeError: a.lat is not a function
My…

Ron
- 22,128
- 31
- 108
- 206
8
votes
1 answer
Android Maps API version 1 to version 2 migrations
Background:
I've inherited someone else's problem and am trying to get an app up and running. Multiple developers have ditched the project and now its my turn. I'm an iOS developer by trade but I have a few simple android project completed.
The…

warpedspeed
- 1,098
- 11
- 28
7
votes
3 answers
How to convert GeoPoint in Firestore to LatLng
Hi I'm using Android Studio and I'm having trouble of converting data that I've got from Firestore. I saved data in my Firestore type GeoPoint and I want to query it and convert to Object type LatLng.
Here is my code:
final FirebaseFirestore db…

Supagon Srisawas
- 113
- 1
- 1
- 9
6
votes
2 answers
Unexpected end-of-input: expected close marker for OBJECT
I'm trying to create a geopoint in my app engine application but when I try to deserialize it I got this annoying message:
Uncaught exception from servlet
org.codehaus.jackson.JsonParseException: Unexpected end-of-input: expected close marker for…

Lucía Román González
- 73
- 1
- 1
- 6
6
votes
5 answers
Android My Location-Fix
When my map activity is called I make a call in the onCreate to addUserMapPoint. This function contains two instances where I try to get the location information using myOverlay.getMyLocation. On the initial load of this activity the result of the…

ItBHarsH
- 115
- 1
- 2
- 6
6
votes
1 answer
How to tell direction of two geo points
i've 3 geo points
(start Position)11.986242477259117, 79.84657287597656`
(middle position)11.984521304799278, 79.84583258628845
(end postion)11.985014568760436, 79.844491481781
I've get knowledge from How to draw a path on a map using kml…

RVG
- 3,538
- 4
- 37
- 64
4
votes
2 answers
Single colorkey for raster and points Levelplot R
Using the sample data below, how can I generate rasters and spatial points plot with the same colorkey as in the "manually" joined plot shown below?
library(rasterVis)
library(raster)
library(colorRamps)
col=colorRampPalette(matlab.like2(255))
s <-…

code123
- 2,082
- 4
- 30
- 53
4
votes
1 answer
What would be the correct json format to import GeoPoints in Parse.com?
I am trying to import a data set into parse.com.com and one of the columns has GeoPoints in it. Parse help shows the JSON format ought to be as follows:
{
"__type": "GeoPoint",
"latitude": 64.124596,
"longitude": -147.86327
}
However, when I…

Rehan
- 107
- 1
- 2
- 7
4
votes
2 answers
Parse geopoint swift not getting current location
trying to use parses PFGeoPoint.geoPointForCurrentLocationInBackground to get current location when i send something to my backend. The code looks like
NSLog("Before block")
PFGeoPoint.geoPointForCurrentLocationInBackground {
(geoPoint:…

Pat Doyle
- 39
- 5
4
votes
2 answers
How to convert screen coordinates to geopoint in android
I am trying to convert screen coordinates to a Geopoint in android mapview. I need to show a marker at the center of screen(mapview is filled in the window). So I tried to get the center coordinates using display metrics getWidth() and getHeight()…

althaf_tvm
- 773
- 3
- 15
- 28
3
votes
1 answer
Using external orderby without using used query inequality in firebase firestore
Is there anyway i can escape GeoPoint as first order in this postion?
If i remove GeoPoint from orderby it triggered the below error and if i put the GeoPoint as first orderby, as instructed as below, it mislead the second orderby…

General Omosco
- 606
- 1
- 10
- 20
3
votes
2 answers
GeoPoint with Spring Data ElasticSearch is giving error : QueryParsingException[field [location] is not a geo_point field]
I have elasticsearch entity in spring as below :
@Document(indexName = "cities_in", type = "cities")
public class CityDocument {
@Id
private String id;
@Field(type = FieldType.String)
private String city;
@Field(type =…

Neha Pateliya
- 81
- 2
- 11
3
votes
2 answers
CANNOT import com.google.android.maps.GeoPoint ON ANDROID STUDIO
i cannot import GeoPoint, please help me....
import com.google.android.maps.GeoPoint;
public class MainActivity extends Activity {
/** Called when the activity is first created. */
TextView text;
GeoPoint startGP;
GeoPoint…

Alfiansah Tri Saputra
- 33
- 1
- 4
3
votes
2 answers
Getting objects based on distance filter in Parse+Swift
I'm fairly new to IOS development and I have little to no clue what this error means. The error shows up when I try to use Parse to get an object within a 1.0 km distance from the user.
PFGeoPoint.geoPointForCurrentLocationInBackground { (geoPoint:…

bantukatanaya
- 93
- 1
- 10