Google Maps API for Android - detecting buildings / obstacles between me and a location

A hypothetical question. I am creating an augmented reality application using the Google Maps API for Android. I am wondering if there is any data that I can use to determine if a building is between me and a specified location. I ask this because at a sufficiently high magnification, the clear data on the shape of the buildings included in the map has clear data. I was wondering if there is a way like this:

boolean buildingInTheWay(myLocation, destinationLocation);

if (buildingInTheWay) {
//Do something 
} else {
//Do something else
}

      

Perhaps there is something that can be done where, if the route to a place is much longer than the bird's eye path to the place, there must be an obstacle in the way (imagine two parallel streets:

- = street
X = buildings
A = start location
B = destination location


---------C----A-------
xxxxxxxx | xxxxxxxxx
---------D----B-------

      

Here A to B will return true as the route around buildings is much longer than the straight distance. But C to D will return false, since the route following the road is almost exactly equal to the distance.

However, this is not very accurate - what is between the buildings? I wonder if every building on Google Maps has lat / lng points for each of its corners?

Any thoughts, anyone?

+3
android google-maps-android-api-2


source to share


No one has answered this question yet

Check out similar questions:

1270
How to pass data between activities in an Android app?
1188
How do I get the build / version number of your Android app?
1152
Difference between gravity and layout_gravity on Android
7
Highlight the specified route on Google Maps v2 Android
five
ETA mismatch on Google Maps
2
Get distance between two locations, for example in an HTTP request to Google Directions
1
How to draw route on google map using google map api?
0
Why doesn't the SphericalUtil.computeDistanceBetween method return an exact result?
0
Distance between my current location and polyline Google Maps Api V2
0
Google Maps Lat / Long Accuracy, V2-Android



All Articles
Loading...
X
Show
Funny
Dev
Pics