I have a map in my app, and I want to click a random place on the map and
- Get the long开发者_开发技巧itude and latitude of the location and use that information in my app
- Use that longitude and latitude to get either the address of a location that is nearby
- Find things that are near that location
To find out what's nearby you can use google's reverse GeoCoding -> Reverse GeoCoding
And to convert coordinates to pixels and vice versa take a look at projections and GeoPoints
Here's an example
GeoPoint gP1 = new GeoPoint(19240000,-99120000);
projection.toPixels(gP1, point);
精彩评论