cURL
curl --request POST \ --url https://dev.api.oudu.cloud/locations/nearest \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "customer_address": { "address": "<string>", "city": "<string>", "state": "<string>", "zip": "02127" }, "max_distance": 5 } '
{ "Code": "Success", "locations": [ { "name": "Antons Cleaners - 135 W Broadway St", "address": "135 W. Broadway St.", "city": "Boston", "state": "MA", "zip": "02127", "business_hours": { "Monday": "7:00 AM - 7:00 PM", "Tuesday": "7:00 AM - 7:00 PM", "Wednesday": "7:00 AM - 7:00 PM", "Thursday": "7:00 AM - 7:00 PM", "Friday": "7:00 AM - 7:00 PM", "Saturday": "8:00 AM - 5:00 PM", "Sunday": "Closed" }, "lat": "42.3406939", "lng": "-71.0542802", "distance": 0.219298791554029 } ] }
Find nearest locations based on customer address
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Customer address and search criteria
Show child attributes
Maximum distance in miles to search for locations
List of nearest locations
Response status code
Array of nearest locations