LaundryAPI
  1. Branches
LaundryAPI
  • Authentication
    • Signup
      POST
    • Resend Verification Code
      POST
    • Verify phone number
      POST
    • Login
      POST
    • Refresh Token
      GET
    • Forgot Password
      POST
    • Reset Password
      PATCH
    • Update Password
      PATCH
    • Logout
      POST
  • Users
    • Get Me
      GET
    • Update Me
      PATCH
    • Delete Me
      DELETE
    • Get All Users
      GET
    • Update User
      PATCH
    • Delete User
      DELETE
    • Create Delivery
      POST
    • Create Admin
      POST
  • Items
    • Get all items
      GET
    • Get Single item
      GET
    • Create item
      POST
    • Update item
      PATCH
    • Delete item
      DELETE
  • Orders
    • Get all orders
    • Orders within range time
    • Single Order
    • Create Order
    • Delete order
    • Update Order
  • Branches
    • All Branches
      GET
    • Single Branch
      GET
    • branch's orders
      GET
    • Nearest Branches
      GET
    • Create Branch
      POST
    • update branch
      PATCH
    • Delete branch
      DELETE
  • Notifications
    • User's Notifications
    • All Notifications
    • Create notification
    • Delete Notification
  • Banners
    • All Banners
    • Create Banner
    • Delete Banners
  • WhatsApp
    • initialize whatsapp Session
  • Settings
    • Set Vat Value
    • get Vat Value
  1. Branches

Nearest Branches

GET
http://82.180.154.188:4352/branches/nearest
Last modified:2025-04-12 12:53:59
This end point is used to retrieve the nearest laundry branches which is not more than maxDistancem away for the location you provide in the request query params.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://82.180.154.188:4352/branches/nearest?longitude=30.150000&latitude=30.111111&maxDistance=10000'
Response Response Example
{"status":"success","results":1,"data":{"branches":[{"_id":"67fa5e9cf0bc58483702a71c","name":"Downtown Branch for testing loation","location":{"type":"Point","coordinates":[30.111111,30.111112],"area":"Downtown"},"workingDays":[{"day":"Saturday","isActive":true,"timeRanges":[{"from":"08:00","to":"12:00"},{"from":"16:00","to":"20:00"}]},{"day":"Sunday","isActive":false,"timeRanges":[]}],"createdAt":"2025-04-12T12:37:48.414Z","updatedAt":"2025-04-12T12:37:48.414Z","__v":0}]}}

Request

Query Params

Responses

🟢200Success
application/json
Body

Modified at 2025-04-12 12:53:59
Previous
branch's orders
Next
Create Branch
Built with