Skip to content

Custom Search - GET Records along the route API

Introduction

This API allows one to search the records as per specified record type from the Custom search database in an along the route manner around a provided path. The GET Records along the route API allows organizations and companies to search the locations based records and entities added as per their custom modules along a planned route.

URL

https://search.mappls.com/search/byod/route?

Input Method

POST

Getting Access

Before using the API in the your solution, please ensure that the related access is enabled in the Mappls Console, within your app - be it for Mobile OR Web or Cloud integration.

  1. Copy and paste the key from your credentials section from your API keys into the access_token query parameter.
    • Your static key can be secured by whitelisting its usage for particular IPs (in case of cloud app usage) OR a set of domains (in case of a web app)
    • Your static key obtained from your Console is to be passed as a query parameter: access_token.

Authentication Object - access_token mandatory query parameter.

  • access_token: "hklmgbwzrxncdyavtsuojqpiefrbhqplnm".

Request Type

application/x-www-form-urlencoded

Response Type

application/json

Response Codes

Success

  1. 200: To denote a successful API call.
  2. 204: To denote the API was a success but no results we’re found.

Client-Side Issues

  1. 400: Bad Request, User made an error while creating a valid request.
  2. 401: Unauthorized, Developer’s key is not allowed to send a request.
  3. 403: Forbidden, Developer’s key has hit its daily/hourly limit.

Server-Side Issues

  1. 500: Internal Server Error, the request caused an error in our systems.
  2. 503: Service Unavailable, during our maintenance break or server downtimes.

Response Messages

  1. 200: Success.
  2. 204: No matches we’re found for the provided query.
  3. 400: Something’s just not right with the request.
  4. 401: Access Denied.
  5. 403: Forbidden, Services for this key has been suspended due to daily/hourly transactions limit.
  6. 500: Something went wrong.
  7. 503: Maintenance Break.

Request Body

Mandatory Parameters

  1. path (string) This parameter takes the encoded route along which records have to be searched.
  2. recordType (string) : The category or class of the record, referenced by a defined set of category codes from client.

Optional Parameters

  1. sort (valueless): Gets the sorted records along route.
  2. geometries (string): Type of geometry encoding, accepted values are polyline5, polyline6, and base64. Default value is polyline5.
  3. buffer (number): Buffer of the road. Minimum value is 25, maximum is 1000 and default is 25.
  4. page (number): Used for pagination. By default, a request returns maximum 10 results and to get the next 10 or so on pass the page value accordingly. Default is 1.

Sample cURL Request

curl --location 'https://search.mappls.com/search/byod/route?access_token=h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BOpBMrBIjBKtAQxCKrBKrBSjDUhDKdBMdBEnCQtCQxAObDKpBMpBQxCQzCEjBA`ANn@@z@AdBChDApDApCd@P\\Nh@Rf@\\rA~@rA~@FRXVTNNJjA~@jBzAvBtBfBfBJLVX`@\\bAbAdAbA`A~@THlAjAj@j@|@x@^ZpAjA`Ax@hA~@lA`Ad@\\~ApAp@h@^Zn@h@jBzAlB|Ap@h@VRDM@GHMHEJCBiA?_BBoBAy@bAA~@Az@@j@Al@@T?\\Ah@CP?d@AZ?b@?b@?Z?t@@l@@n@?Ap@' \
--data-urlencode 'recordType=Retailer' \
--data-urlencode 'buffer=1000' \
--data-urlencode 'page=1' \
--data-urlencode 'sort='

Sample Response

{
    "responseCode": 200,
    "suggestedPOIs": [
        {
            "distance": 23,
            "customNote": "",
            "createdOn": 1699516070,
            "recordType": "Retailer",
            "modifiedOn": "",
            "latitude": 28.5608852,
            "longitude": 77.272313,
            "address": "",
            "recordId": "2009258",
            "extendedInfo": {
                "District_Name": "South",
                "Outlet_ID": "DL-0055171",
                "Region_ID": "NDE1",
                "District_ID": "98"                
            },
            "orderIndex": 1
        },
        {
            "distance": 884,
            "customNote": "",
            "createdOn": 1699516066,
            "recordType": "Retailer",
            "modifiedOn": "",
            "latitude": 28.5651867,
            "longitude": 77.2796434,
            "address": "",
            "recordId": "2009236",
            "extendedInfo": {
                "District_Name": "South",
                "Outlet_ID": "DL-0075805",
                "Region_ID": "NDE1",
                "District_ID": "98"
            },
            "orderIndex": 2
        },
        {
            "distance": 3211,
            "customNote": "",
            "createdOn": 1699516932,
            "recordType": "Retailer",
            "modifiedOn": "",
            "latitude": 28.5806201,
            "longitude": 77.2482701,
            "address": "",
            "recordId": "2014171",
            "extendedInfo": {
                "District_Name": "South",
                "Outlet_ID": "DL-0054817",
                "Region_ID": "NDE1",
                "District_ID": "98"
            },
            "orderIndex": 3
        },
        {
            "distance": 10258,
            "customNote": "",
            "createdOn": 1699516111,
            "recordType": "Retailer",
            "modifiedOn": "",
            "latitude": 28.6326451,
            "longitude": 77.20628,
            "address": "",
            "recordId": "2009493",
            "extendedInfo": {
                "District_Name": "New Delhi",
                "Outlet_ID": "DL-0008944",
                "Region_ID": "NDE1",
                "District_ID": "94"
            },
            "orderIndex": 4
        },
        {
            "distance": 14496,
            "customNote": "",
            "createdOn": 1700466285,
            "recordType": "Retailer",
            "modifiedOn": "",
            "latitude": 28.6473928,
            "longitude": 77.1611775,
            "address": "",
            "recordId": "5285",
            "extendedInfo": {
                "District_Name": "West",
                "Outlet_ID": "DL-0036487",
                "Region_ID": "NDE1",
                "District_ID": "96"
            },
            "orderIndex": 5
        },
        {
            "distance": 14584,
            "customNote": "",
            "createdOn": 1699515000,
            "recordType": "Retailer",
            "modifiedOn": "",
            "latitude": 28.64693451,
            "longitude": 77.15950775,
            "address": "",
            "recordId": "2003189",
            "extendedInfo": {
                "District_Name": "Central",
                "Outlet_ID": "DL-5000887",
                "Region_ID": "NDE1",
                "District_ID": "95"
            },
            "orderIndex": 6
        },
        {
            "distance": 15454,
            "customNote": "",
            "createdOn": 1699514675,
            "recordType": "Retailer",
            "modifiedOn": "",
            "latitude": 28.6568867,
            "longitude": 77.1578,
            "address": "",
            "recordId": "2001508",
            "extendedInfo": {
                "District_Name": "Central",
                "Outlet_ID": "DL-5563138",
                "Region_ID": "NDE1",
                "District_ID": "95"
            },
            "orderIndex": 7
        },
        {
            "distance": 15620,
            "customNote": "",
            "createdOn": 1700465755,
            "recordType": "Retailer",
            "modifiedOn": "",
            "latitude": 28.6515736,
            "longitude": 77.1500555,
            "address": "",
            "recordId": "1765",
            "extendedInfo": {
                "District_Name": "Central",
                "Outlet_ID": "DL-0008752",
                "Region_ID": "NDE1",
                "District_ID": "95"
            },
            "orderIndex": 8
        },
        {
            "distance": 15860,
            "customNote": "",
            "createdOn": 1700466648,
            "recordType": "Retailer",
            "modifiedOn": "",
            "latitude": 28.6555859,
            "longitude": 77.1507708,
            "address": "",
            "recordId": "7639",
            "extendedInfo": {
                "District_Name": "Central",
                "Outlet_ID": "DL-0036627",
                "Region_ID": "NDE1",
                "District_ID": "95"
            },
            "orderIndex": 9
        },
        {
            "distance": 17591,
            "customNote": "",
            "createdOn": 1699514355,
            "recordType": "Retailer",
            "modifiedOn": "",
            "latitude": 28.6605541,
            "longitude": 77.1323101,
            "address": "",
            "recordId": "2000083",
            "extendedInfo": {
                "District_Name": "West",
                "Outlet_ID": "DL-5473327",
                "Region_ID": "NDE1",
                "District_ID": "96"
            },
            "orderIndex": 10
        }
    ],
    "pageInfo": {
        "pageCount": 1,
        "totalHits": 29,
        "totalPages": 3,
        "pageSize": 10
    }
}

For any queries and support, please contact:

Email us at apisupport@mappls.com

Support Need support? contact us!



@ Copyright 2025 CE Info Systems Ltd. All Rights Reserved.