Adding a distance to a GeoPoint

by Eric Crump » Thu, 28 Jan 2010 08:57:52 GMT

Sponsored Links
 I need to draw a circle on my map.  I have the GeoPoint and I have the
radius of the circle in meters.  How do I add a distance to a GeoPoint
and get a GeoPoint as a result?


Adding a distance to a GeoPoint

by Kevin Duffey » Thu, 28 Jan 2010 09:18:46 GMT

 I am interested in this too. The numbers are fractional, so I am wondering
how you actually figure out the distance say, a 1/2 inch is on the screen
relative to the zoom level. Is there an api call that takes into account the
zoom level and can give a way to draw a specific distance.. such as a foot,
mile, etc?


Sponsored Links

Adding a distance to a GeoPoint

by Eric Crump » Thu, 28 Jan 2010 11:46:54 GMT

 Got it to work with this:

radius = (int)projection.metersToEquatorPixels(item.getRadiusInMeters

Still have some rounding issues to work out though


Other Threads

1. SensorEvent class instantiation

How to instantiate SensorEvent class. Even if i create my class
extended from SensorEvent i got error - something "....Stub...."


2. rotate bitmap with setRotate(float degrees, float px, float py)? arround a pivot...Its not working right for me

Country / Language: Pakistan / US ENG
OS / Browser / build number (if applicable): Android

Matrix matrix1 = new Matrix();
matrix1.setRotate(mSecondsAngel, 160, 160);
Bitmap orgBitmap = mTileArray[mTileGrid[x][y]]; ////// a stored bitmap
is loaded in local var
Bitmap rotatedBitmap = Bitmap.createBitmap( orgBitmap, 0, 0,
orgBitmap.getWidth(), orgBitmap.getHeight(), matrix, true);
canvas.drawBitmap(rotatedBitmap, 0, 0, mPaint);

it should rotate arround 160,160 but it rotates arround some arbitrary
Please note canvas (0,0)and bitmap (0,0) are exactly overlapping

I think the issue is with the translation matrix involving (160,160).
I guess that is not being applied.


3. Registering an application

4. need a good examples book with in depth

5. How to make webpage in Android support input

6. Control System Using Android

7. Android cupcake build problems