Create API and show data with Laravel from endpoint
So using Laravel i need to develop a way to give the user the option to find the best park for him, identify by latitude and longitude and get the ones in the proximity and the price of the park.
In order to get the list of parks, i need to acess a endpoint via API ex: http://api.parksandrecreation.com/data/parks using a POST. the apikey is parksandrecreationapi ; the parameters are lati, long and the apikey.
The integration sie needs to call the method: Search::getNearParks
parameter : $lati $long
So the expected output should be like: Park Name, Distance, ticket price