开发者

Google MAP help

开发者 https://www.devze.com 2023-03-12 07:47 出处:网络
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

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

精彩评论

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