开发者

Google MAP help

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);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜