I am having a list of tourist locations with me and i am willing to write a service that could tell me which tourist location is nearest to me and then second nearest and likewise without using a map. How can i do it. The idea is that i have a database of all the tourist locations in a city and their lat/long, I may be in any place in the city and want to find which tourist attraction is nearest to me and second nearest and like wise so that i may plan to visit them based on how much time i have. I tried this and found google maps api but i dont want to display a map for the same. Or give users map to search things.
相关问题
- Location not updating on server when app enters st
- Unable to get special opening hours from Google Pl
- Mapbox 'setMyLocationEnabled' doesn't
- Passing google event data in addListener
- Google Places api for android network error
相关文章
- Google Places API place_id field length
- Implementing Triangulation in android [closed]
- Google maps Android API getting wifi location
- Is it possible to retrive an existing iPhone image
- Getting user location on Facebook page tab
- Does Google ever remove a place from it's API
- Find all nearby customers within a given distance
- Efficient way to calculate geographic density in P
If you're not going to display a map, then you can't use Google Maps API (it violates their TOS).
If you are looking to get the lat/lon from an address without Google Maps or similar (because similar services have similar TOS) then you'll want to look for something like LiveAddress API (and apparently I'm supposed to disclose that I work at SmartyStreets) -- this example works for US addresses. International addresses require a different API.
An API like LiveAddress doesn't require you to show a map, returns geo coordinates, and will verify the validity of the address as it returns its payload.
Here's a Javascript example.
You don't need Google maps.