4

Can someone give me a simplistic overview how I would be able to tell if my user was near, say a certain retail store or landmark, etc.?

I know how to get coords with phonegaps geolocation api but not sure how to determine what is near that?

This is essentially what foursquare, google maps, etc does (heck they even know what TYPEs of businesses they are)...

Can someone clue me in please?

1 Answer 1

4

Two parts to this:

  1. Distance between two lat/lng points - see this answer https://stackoverflow.com/a/8914832/156477 (specifically the part about getting distance between lat/lng points).

  2. Where do you get the list of landmarks.... this is the bigger issue. You could try using a service like Frommers or Eventful, or if you're happy to go with Google, use their relatively new Places API (and the Google solution means you can skip step 1).

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.