Pooya1 Active Member Licensed User Sep 30, 2018 #1 Hi I saw below code in stackoverflow Code: private LatLngBounds NewDelhi = new LatLngBounds(your special area SE LatLng , NE LatLng ); if(NewDelhi.contains(your location LatLng)) //Do something That allow developer to check special location in special zone or bounds How do i can use it in B4a? Thanks
Hi I saw below code in stackoverflow Code: private LatLngBounds NewDelhi = new LatLngBounds(your special area SE LatLng , NE LatLng ); if(NewDelhi.contains(your location LatLng)) //Do something That allow developer to check special location in special zone or bounds How do i can use it in B4a? Thanks
Erel B4X founder Staff member Licensed User Longtime User Oct 2, 2018 #2 Code: Dim NewDelhi As JavaObject NewDelhi.InitializeNewInstance("com.google.android.gms.maps.model.LatLngBounds", Array(SE, NE)) 'SE and NE are LatLng objects If NewDelhi.RunMethod("contains", Array(SomePoint)) Then Upvote 0
Code: Dim NewDelhi As JavaObject NewDelhi.InitializeNewInstance("com.google.android.gms.maps.model.LatLngBounds", Array(SE, NE)) 'SE and NE are LatLng objects If NewDelhi.RunMethod("contains", Array(SomePoint)) Then
Pooya1 Active Member Licensed User Oct 4, 2018 #3 Erel said: Code: Dim NewDelhi As JavaObject NewDelhi.InitializeNewInstance("com.google.android.gms.maps.model.LatLngBounds", Array(SE, NE)) 'SE and NE are LatLng objects If NewDelhi.RunMethod("contains", Array(SomePoint)) Then Click to expand... Sorry a new question is coming to me Can i define west and east for bound? Upvote 0
Erel said: Code: Dim NewDelhi As JavaObject NewDelhi.InitializeNewInstance("com.google.android.gms.maps.model.LatLngBounds", Array(SE, NE)) 'SE and NE are LatLng objects If NewDelhi.RunMethod("contains", Array(SomePoint)) Then Click to expand... Sorry a new question is coming to me Can i define west and east for bound?
Erel B4X founder Staff member Licensed User Longtime User Oct 4, 2018 #4 No. Bounds are defined as you see above. Upvote 0