Questions tagged [geopoints]

229 questions
0
votes
3 answers

How to get shortest driving path and distance between two geopoint coordinates?

I want to get the road distance between two geopoint coordinates. Currently I am getting the path but it is not very accurate as it considers the start and end of the road but not the curves in the road. I am using the following code: Double sLat =…
0
votes
2 answers

How to get different latitude and longitude while moving for every 1 minute in android?

now i am working with GPS for getting different latitude and longitude for every 1 minute while moving and that has to be stored into array list. I am using thread for this. I followed this link.…
malavika
  • 1,331
  • 4
  • 21
  • 54
0
votes
1 answer

How to know if user's geo-position is close to a certain position?

I'm developing a Firefox addon that detects the user's position via GPS, and then performs an action if the user is near a point. For example, it should only execute an action on the applications of green users: I have the user latitude and…
gal007
  • 6,911
  • 8
  • 47
  • 70
0
votes
0 answers

Converting Int latitude and longitude to double (like Geopoint)

I have this two int values (w 25456819, s 12088051). I need to know how can i convert them to latitude and longitude values in double. The final result of this should be something like this: w 25456819 = -33,xxxxxx s 12088051 = -70,xxxxxx But i…
0
votes
1 answer

Knockout observable array sort by geo location.

I am attempting to sort a knockout observable array using geo-points according to proximity to the users location. I have a function that loops through all the stores in my array and finds the closest marker to the users current location. Then im…
sirFunkenstine
  • 8,135
  • 6
  • 40
  • 57
0
votes
3 answers

Data in the database is not fetched from MySQL in PHP code

I have implemented my database and then I am retrieving data from database via PHP. In my code I am supposed to filter data by name and if the name exists, I want to print the data. Although the wanted item is in the table, nothing is displayed. I…
user2086258
  • 613
  • 1
  • 6
  • 7
0
votes
1 answer

SQL, Select by geoposition on an area

I'm trying to make a query that select users located on an area. I've this table: Users (user_id, username, user_latitude, user_longitude) I have an area defined by 2 points: North West (lat, lng) South East (lat, lng) How to get the users with…
Pierrick Aubin
  • 55
  • 2
  • 10
0
votes
0 answers

SQLSTATE[42000] on the Haversine formula in PHP/MySQL and CakePHP

I am just testing the Haversine formula taking from Google Developers: https://developers.google.com/maps/articles/phpsqlsearch_v3#findnearsql I've put the snippet into my code and it gives me a SQL error. This is my Model in…
Johnathan Au
  • 5,244
  • 18
  • 70
  • 128
0
votes
4 answers

Getting the latitude and longitude of an EditText location Android

Ok, so what I'm trying to do is have an EditText box in which the user can enter a street name. My application will then get the lat/long of that street and place a marker at that geopoint location on a map (Using the Google Maps API v2). So far I…
Dan Coghlan
  • 583
  • 1
  • 6
  • 16
0
votes
1 answer

Add geopoint manually in a map and get its latitude and longitude

Im triying to add a geopoint of a position in a mapview. I would like to move the mapview until I want and get the center as a location(longitude and latitude) and with this position and my current position, know the distance between two…
croigsalvador
  • 1,993
  • 2
  • 24
  • 47
0
votes
1 answer

Android: Calculate distance to another pinpoint

I have created a method to calculate the distance from my currentposition to my hardcoded position. But it does not work. The calculator are not showing the distance. What is wrong here? public void ourLocation() { myLocation = new…
Zaz
  • 1,074
  • 3
  • 17
  • 29
0
votes
1 answer

Zend Framework 2 - Doctrine 2 - How to use GeoPointFields

I need to implement a GeoPointField with Doctrine2. It seems that Zend and Doctrine don't support it natively... Is there a best practice for validating such an input? In the database I'd use a simple string field, right?
Ron
  • 22,128
  • 31
  • 108
  • 206
0
votes
1 answer

Android: How to display the route between two GeoPoint?

Using the example of the next page and it works perfect. http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html But when I change the coordinates to my country (Chile), I can not make it show the route. I think it must be a…
Jaime
  • 3
  • 3
0
votes
1 answer

Longpress on mapview returns GeoPoint that is below the area that is actually longpressed

It seems that longpress on google mapview returns a GeoPoint below the area that is actually longpressed. If for example I pressed on (x,y): Geopoint longpressLocation.getLatitudeE6().getLatitudeE6() = x Geopoint…
David
  • 37,109
  • 32
  • 120
  • 141
0
votes
1 answer

count geopoint frequency

I do this on Android with Google Maps. I have an arraylist of GeoPoint's. GeoPoint API is here. List geoPoints; Now I want to check the frequency of each GeoPoint. If there is some intersect (because two of them are equal) I want to print…
krackmoe
  • 1,743
  • 7
  • 29
  • 53