Resolves a given latitude / longitude to the corresponding tenant Id
DeprecatedPOST
/egov-location/location/v11/tenant/_searchLast modified: 8 months ago
Tries to resolve a given lat, long to a corresponding tenant, provided there exists a mapping between the reverse geocoded city to tenant.
Request
Query Params
tenantId
string <varchar>
required
Unique id for a tenant.
lat
number
required
Latitude
lng
number
required
Longitude
Header Params
Content-Type
string
optional
Example:
application/json
Body Params text/plain
Example:{
"RequestInfo": {
"apiId": null,
"ver": null,
"ts": null,
"action": "POST",
"did": null,
"key": null,
"msgId": "5bfa85e7-dfa1-47c8-98b2-747bf552be86",
"authToken": "015da276-2b84-4295-8cb9-a9d89ff7e9a6"
}
}
Request samples
Responses
Successful Response.(200)
Unable to resolve tenant(400)
Successful Response.
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
ResponseInfo
object
optional
Tenant
object (Tenant)
optional
code
string
required
Unique code of the role
name
string
required
The tenant name
<= 256 characters
description
string
optional
imageId
string
required
Unique id credential for image
logoId
string
required
Unique id credential for logo
domainUrl
string
optional
Domain url
type
enum<string>
required
Allowed value:
CITY
address
string
optional
Address of the tenant
<= 300 characters
contactNumber
string
optional
Contact number of the tenant
<= 16 characters
helpLineNumber
string
optional
Help line number of the tenant
<= 16 characters
twitterUrl
string
optional
Twitter URL of the tenant
<= 100 characters
facebookUrl
string
optional
Facebook URL of the tenant
<= 100 characters
emailId
string
optional
Email address of the tenant
<= 100 characters
city
object (City)
optional
Example
{
"ResponseInfo": {},
"Tenant": {
"code": "string",
"name": "string",
"description": "string",
"imageId": "string",
"logoId": "string",
"domainUrl": "string",
"type": "CITY",
"address": "string",
"contactNumber": "string",
"helpLineNumber": "string",
"twitterUrl": "string",
"facebookUrl": "string",
"emailId": "string",
"city": {
"name": "string",
"localName": "string",
"districtCode": "string",
"districtName": "string",
"regionName": "string",
"longitude": 0,
"latitude": 0,
"shapeFilePath": "string",
"captcha": "string"
}
}
}
Last modified: 8 months ago