B4A Question OSMDroid get geopoints from PathOverLay - RB Smissaert    
Jun 5, 2018Using OSMDroid 4.1.
It looks there is no way to get the geopoints (OSMDroid_GeoPoint) that were added to a OSMDroid_PathOverlay. It isn't really a problem as I can run a parallel list or array, but it
seems strange.
Am I overlooking something?
RBS...
link: I don´t think so. GoogleMaps does not have this functionality too.
You should stay with using the List or Array...
OK, thanks for c...
link: Am I overlooking something?
I don´t think so. GoogleMaps does not have this functionality too.
as I can run a parallel list or array
...
B4A Question Counting geopoints in map area - RB Smissaert    
Jun 4, 2018Using OSM_Droid, version 4.1.
I have a list of geopoints and want to count the number of those geopoints that are in a certain map area.
I can do this no problem if the area is rectangular and...
link: on the above sample 30 times.
GeoPointInPolygon 256
WindingPointInPolygon 194
PtInPoly...
link:
This one seems to work well with good performance, but tested no other ones yet.
Sub GeoPointInPolygon...
link: (dLatitude As Double, dLongitude As Double, arrPolygonLatLon() As OSMDroid_GeoPoint) As Boolean...
B4A Question OSMDroid Geopoint.Longitude problem - roger.jau    
Jul 4, 2018I´m using OSMDroid_4_1 (version: 0.04) and when I try to update a OSMDroid_Marker.GeoPoint.Longitude manually, but the GeoPoint.Longitude still the same and GeoPoint.Latitude get(change unwanted) the same value of Longitude
MarcadorLayer.RemoveItem(MarcadorMov) 'Remove Marker in MarkeyOverlay
MarcadorMov.GetPoint.Longitude = MarcadorMov.GetPoint.Longitude - 0.000002... position
The purpose of this code is acurrate longitude and latitude of points manually....
B4A Question OSMdroid geopoint.lat and geopoint.lon - warwound (first post)    
Oct 12, 2014If it works when you Dim new GeoPoint objects for each part of the track then that is what you must do.
The track will (internally) contain a GeoPoint for each point in the track, you can't reuse...
link: that plots points i moved the line
'MapView1.GetOverlays.Add (track )' from position 1 to 2...
link: is the Log:-
50.8996 (GeoPoint) 50899600,-4960900,0
-4.9609 (GeoPoint) -4960900,-4960900,0
cell...
link: i know it's not me i will try to find a workround, probabaly using less points, this of course...
B4J Question Best way to get closest devices to a known GeoPoint? - vfafou (first post)    
Jan 3, 2016Hello Erel!
Thank you for your reply. It's the 6th contiguous day the server works without any s...
link: If it works for you then all is good....
link: Any suggestion, please???...
link: Hello Erel!
Thank you for your reply.
All devices connected to the websocket server, do a ping every...
Java Question Passing B4A List as ArrayList - warwound    
Nov 16, 2012
}
Normally i'd create a wrapper method that accepts a B4A List or Array of GeoPoint objects, and..., the underlying GeoPoint objects are added to the List so WayPoints is an unparameterized ArrayList of GeoPoint objects.
I set a breakpoint and see:
WayPoints (ArrayList)
The GeoPoint can use units... WayPoints As List
WayPoints.Initialize
WayPoints.AddAll(Array As GeoPoint(OriginPoint, DestinationPoint...
link: )
WayPoints.Add(DestinationPoint)
org.osmdroid.util.GeoPoint
org.osmdroid.util.GeoPoint
java.util.ArrayList...
B4A Question Problem updating view - RB Smissaert    
Jun 17, 2018Using OSMDroid 4.1 and have a TouchOverLay to add GeoPoints to a PathOverLay.
Both OverLays are added to a MapView, named MapView1.
Sub TouchOverLay1_Click(GeoPoint1 As OSMDroid_GeoPoint) As Boolean
AddAreaPoint(GeoPoint1)
Return(False)
End Sub
Sub AddAreaPoint(GeoPoint1...
PathOverLay1Points.Add(GeoPoint1)
PathOverlay1.AddPoint(GeoPoint1)
End Sub
This works fine and the GeoPoints are added OK. Problem it doesn't show directly in the MapView.
Moving the MapView refreshes...
B4A Question Floating point problem with OSMDroid_GeoPoint - RB Smissaert    
Jun 30, 2018 As String
Dim Cursor1 As Cursor
Dim GeoPoint1 As OSMDroid_GeoPoint
Dim dLatitude As Double
Dim... TEST_FLOAT"
Cursor1 = General.SQL1.ExecQuery(strSQL)
Cursor1.Position = 0
GeoPoint1.Initialize... = ?"
Cursor1 = General.SQL1.ExecQuery2(strSQL, Array As String(GeoPoint1.Latitude, GeoPoint1.Longitude))
Cursor1.Position = 0
General.RunLog("TestFloatingPoint, GeoPoint1.Latitude: " & GeoPoint1.Latitude & ", GeoPoint1.Longitude: " & GeoPoint1.Longitude)
General...
B4A Question MapFragment1_MarkerClick Problem - RichardN (first post)    
Jul 22, 2025Thanks @Erel. It was a code snippet I copied from an old project that was merely utilising the distance calculation between two GeoPoints. I eventually discovered the incompatibility by removing libraries one at a time....
B4i Question Google Maps Project - Calculating Distances in iOS - RichardN    
Sep 17, 2016I am translating a Google Maps based B4A project over to B4i. In Android I used the OSM_Droid library to include the Geopoint object calculating the distance between two waypoints thus:
Dim DistanceBetween As Long = Geopoint1.GetDistanceTo(Geopoint2)
Is there a convenient method of doing the same thing in B4i ???...
Page: 1  
2  
3  
4  
5  
6  
7