简体   繁体   中英

How to create an app in android that find places nearest your location

I'm trying to create a geolocation app in android. So far i've been able to locate my current location and have it display on a map. Now i want to get a list of places the are nearest to my location. I know i will have to save the data in a database, and somehow check against it. Trouble is i don't know how to do this.

If I understand correctly, you intend to store a database on the Android?

Unless you have a very restricted location like a college campus, I think you might find that you don't have enough storage.

You don't tell us what you application is, so it's difficult to help precisely, but I would suggest that want to query publicly available datababses which are online for features of interest near to you and display those. As your location changes you would thnen have to re-query the databases.

I highly recommend Google maps which integrates well with Google Android and which provides some of this functionality for you.

A good book to get started is Map Scripting 101 . There is also lots of good information at the website.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM