Android Question How bounds googlemap to special position

Pooya1

Active Member
Licensed User
Hi
I saw below code in stackoverflow
B4X:
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
 

Pooya1

Active Member
Licensed User
B4X:
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
Sorry a new question is coming to me
Can i define west and east for bound?
 
Upvote 0
Top