0

first what I want to achive, than I think I can do it

I want to find streets on the edge of area where center point is point where I am standing.

Now for example I'm selecting area with 2km radius. I want to find 360 points (1 point for each degree) and check if point with this coordinates is street or not. Now 3 questions

  1. How to get each point in distance from me
  2. How to get latitude and longitude of this point
  3. How to check if this point is street or not
Fixus
  • 4,631
  • 10
  • 38
  • 67

1 Answers1

0

How to get each point in distance from me

Having the Lat and Lng of source and destination points, you can use Location.distanceBetween method.

float[] results = new float[3];
Location.distanceBetween(srcLat, srcLng, destLat, destLng, results);

The distance between the two points is in index 0 : results[0]

How to get latitude and longitude of this point

Here is a link

How to check if this point is street or not

Here is another link.

Hope this help.

Community
  • 1
  • 1
S.Thiongane
  • 6,883
  • 3
  • 37
  • 52
  • so if I understand you I first need to get lat and lon of point on the edge of area and than check if it is street or not. Is that correct ? – Fixus May 05 '14 at 18:41