LEI
Overview
The Latest Emergency Information (LEI) API provides a RESTful interface for retrieving data from the RapidSOS Intelligent Safety Platform. This API responds to GET and POST requests; however, POST requests are recommended.
Location Request & Response
For details on the API behavior, refer to the LEI API documentation POST /location
Best Practices for Implementation
Review the following additional considerations when implementing Latest Emergency Information (LEI) API:
- Utilize OAuth2.0 for generating a token POST /oauth/token. This is required for other Public Safety APIs and will maintain consistency in your code.
- LEI is recommended over LIS because RSOS receives more data & will continue to build on it
Additional Information
- When a 911 call is made, RSOS receives the location even if a person has their location services off
- RSOS doesn't store the location information, it’s only available for ~10-20 minutes
- If the location does not change, you will continue to receive the same lat/long until the data is removed from our system
- For text to 911, RSOS receives 1 location payload per message
- RSOS accepts VoIP for location
- Not all phones can detect barometric pressure to provide a Z coordinate
- RSOS cannot provide the phone service provider, only the device software and/or communication method
- RSOS does not provide location data for landlines
- Device must be iOS12+ or Android 4.0+ to provide location. Microsoft and Blackberry devices do not send location data
- We do not send the call end time / time the device stopped sending locations
- The partner must have the caller ID to query the API