September 2024

Nearby Search Support in MTS

4min

Date: September 20, 2024

We've extended MTS's functionality to support Nearby Search. This new feature provides the ability to search for nearby devices, such as vehicles or drivers, in real-time, offering flexible sorting and filtering options.

Supported Features

  • Radial Distance Filtering: Search for nearby devices by specifying a distance radius from a central point (latitude and longitude) to find the closest devices within range.
  • Timestamp-Based Sorting: Sort results by the most recent activity using the sortByTIS option, ensuring the most up-to-date proximity data is retrieved.
  • Flexible Data Management:
    • Limit: Control the number of devices returned in a response, with a maximum of 50.
    • Offset: Skip a set number of devices and retrieve the next batch, allowing for efficient pagination of results.

Use Cases

With these new features, businesses can now streamline their operations in several ways:

  • Last-Mile Logistics: Quickly find the nearest available vehicles or drivers to optimize delivery times and reduce downtime.
  • On-Demand Services: Improve food delivery or package pickup operations by finding nearby drivers/riders and assigning tasks based on proximity and recent activity.

New Endpoints

We've added a new endpoint to enhance the Nearby Search functionality:

Get Nearby Search: Allows developers to retrieve a list of nearby entities based on specified latitude, longitude, radius and sort by timestamp.

API Changes

The following API has been added:

Reference Documenation

These enhancements provide developers with a more efficient way to manage and optimize operations based on real-time location data. For more details on how to integrate and use the new Nearby Search API features, refer to the Nearby Search Developer Guide.