Skip to main content

Search Location


Use Search Location to resolve the patient location before showing doctor availability and booking options.

The selected location determines supported services, doctor availability, pricing, and booking flows.



This screen includes:

#ElementDescription
1Location modalLets the user enter or select a location.
2Modal titleDisplays Enter location.
3Close actionCloses the location modal.
4Instruction textExplains that location is needed to show available doctors nearby.
5Location search fieldDisplays the typed location query.
6Search iconIndicates that the field supports location search.
7DividerSeparates the search field from location actions and results.
8Current location actionRequests the user’s current device location.
9Location results listDisplays matching location suggestions.
10Location result itemShows a selectable location suggestion with a location pin icon.

Workflow

  1. Open the location modal.
  2. Enter a location query.
  3. Return matching location suggestions.
  4. Select a location from the results list.
  5. Save the selected location.
  6. Refresh the home screen for the selected location.

Validations

ScenarioApp behaviorSDK output
Location query emptyKeep the location modal openlocationQuery = empty
Location query enteredSearch for matching locationslocationQuery = updated
No matching locations foundDisplay empty results stateresults = empty
Location selectedResolve selected locationlocation = selected
Current location permission grantedResolve device locationlocationSource = current_location
Current location permission deniedKeep manual search availablelocationPermission = denied
Location lookup failsDisplay error statestate = error
Request rejectedPreserve current statestatus = 405

Actions

ScenarioApp behaviorSDK output
Location modal opensLoad location search screenPUT /api/v3/home/location
Search query updatedReturn matching location suggestionsPATCH /api/v3/home/location/search
Location result selectedLoad home content for selected locationPATCH /api/v3/home/location/show
Use current location selectedRequest device location permissionaction = use_current_location
Close selectedClose the location modalstate = dismissed

Endpoint Resources

PUT 

v3/location

Returns the search location modal.

Search Location

PATCH 

v3/location/search

Returns location suggestions for the entered query.