This is the time to test the application. We have already created eight records in our database, already indexed all positions using the ensure.index () MongoDB, and we can already see all the points rendered in the map, as we can see in the following screenshot:
In this previous screenshot, you may notice that the points raised in the map are away from each other, which is able to show the difference in the distance of points shown when we change the distance search field.
In this example, we can insert any latitude and longitude in the search field, but we leave this field fixed only to illustrate the geolocation functionality of the application.
When we access the locations route for the first time, we show all records in the database, as we saw in the previous screenshot:
Let's change the distance on the locations.html form to check what happens; go to http://localhost:3000/locations, select 2km in the Distance field, and...