I am trying to implement Geo Location search using Mongo DB and Spring Data.
I set up MongoDB correctly and enabled geo location index
db.track.ensureIndex( { start : "2d" } );
I created the following services :
- Search nearby from DB
:http://localhost:8080/secure/track/get/11.53144/48.15672/0.5
- Add Location to DB
http://localhost/secure/track/add
The values are getting added properly as i can see them in the DB.
My question is what test data should i use to test if i am getting list of objects nearby to a location.Since i am not well versed with latitude/longitude ,this will be of great help