开发者

Getting nearby location or Landmarks

Is there any API in google for finding nearby location or Landmarks for my current GPS lat&long开发者_开发技巧 position.


Use this :

Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("geo:0,0?q=business+near+city");
startActivity(intent);

After geo you put your coordinates, and after q= you input your search tearms, like tourism+city. This will fire up the Google Maps app with the points of interest.

If you want to use a maps view inside your application, you would need to get the data from some service, like your own. However you could pull the data from Google's ajax search like this

http://ajax.googleapis.com/ajax/services/search/local?v=1.0&rsz=large&gl=pl&q=tourism+chicago

more info : http://code.google.com/apis/websearch/docs/reference.html#_fonje_local

This will give you results that have geo-coordinates and you would need to make a way of parsing the results and maybe get them into a database.

hope it helps...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜