Basic Syntax
FindBy('PropertyName', 'Value')Examples
FindBy('Name', 'Hospital') FindBy('Category', 'RTW')Details
Any Property Works
You can search by any field that exists on the item. To see which properties are available for each model, refer to the API Reference documentation.
Multiple Values (OR)
Search for multiple values at once. Results matching any value are returned:
FindBy('Category', 'RTW', 'NEF', 'KTW')Finds units that are RTW or NEF or KTW.
Multiple Filters (AND)
Combine filters to narrow results. All conditions must match:
FindBy('City', 'Berlin') FindBy('Category', 'RTW')Finds units that are in Berlin and are RTW.
With Free Text
Combine functions with regular text search:
FindBy('Category', 'Hospital') EmergencyFinds hospitals with "Emergency" in the name.
Special Filters for Units
In addition to all standard properties, units support these location-based filters that search through the assigned station:
Filter | Searches |
| City where the unit's station is located |
| District of the station |
| Commune of the station |
| State of the station |
| Name of the station |
| Assigned radio group name |
Examples
FindBy('City', 'Berlin') FindBy('District', 'Mitte', 'Kreuzberg') FindBy('Station', 'Feuerwache 1') FindBy('State', 'Bayern') FindBy('Category', 'NEF')Special Filters for POIs
In addition to all standard properties, POIs support these filters:
Filter | Searches |
| City where the POI is located |
| Filter for station POIs only ( |
Examples
FindBy('City', 'Munich') FindBy('Category', 'Hospital') FindBy('isStation', 'true')Searching Categories
Categories can be searched by:
Name:
RTW,Hospital,NEFNumber:
1,2,5Display name: The localized text shown in the interface
All of these find the same results:
FindBy('Category', 'Hospital') FindBy('Category', 'Krankenhaus') FindBy('Category', '5')Tips
Case Insensitive
Searches ignore uppercase/lowercase:
FindBy('City', 'berlin') FindBy('City', 'Berlin')Both work the same.
Partial Matching
Text fields use partial matching. FindBy('Name', 'Fire') finds:
Fire Station
Firewatch
Central Fire Department
Common Use Cases
All ambulances in Berlin:
FindBy('City', 'Berlin') FindBy('Category', 'RTW')All hospitals and pharmacies:
FindBy('Category', 'Hospital', 'Pharmacy')Units from multiple districts:
FindBy('District', 'Mitte', 'Kreuzberg', 'Charlottenburg')All units at a specific station:
FindBy('Station', 'Feuerwache 1')Only station POIs:
FindBy('isStation', 'true')Troubleshooting
No results?
Check spelling
Try shorter search terms
Start with one filter, add more gradually
Verify the property exists in the API Reference
Correct syntax:
FindBy('Property', 'Value')Common mistakes:
FindBy(Property, Value) ← Missing quotes
FindBy('Property' 'Value') ← Missing comma
FindBy['Property', 'Value'] ← Wrong brackets
Quick Reference
FindBy('Property', 'Value') # Single filter
FindBy('Property', 'Value1', 'Value2') # Multiple values (OR)
FindBy('Prop1', 'Val1') FindBy('Prop2', 'Val2') # Multiple filters (AND)
FindBy('Property', 'Value') search text # With free textFor a complete list of available properties per model, see the API Reference documentation.
