This operation was normalized from a MapmyIndia-generation specification. Validate its current Mappls host, path, package entitlement, authentication generation, and commercial availability before production use.
Call the operation
https://apis.mapmyindia.com/advancedmaps/v1/YOUR_REST_KEY/route_eta/driving/28.612964%2C77.229463https://apis.mapmyindia.com/advancedmaps/v1Parameters
REST_KEYrequiredThe REST API licence key allocated to you by signing into our services and registering yourself as a developer.
YOUR_REST_KEYresourcesrequiredThe different resources available within MapmyIndia Routing API. These resources have their own individual allocations and not all are allocated for evalulations be default. For allocating particular resource on your API credentials, please contact apisupport@mapmyindia.com Table 1. Resources Element Value Description Resources routeadv to calculate a route & its duration without considering traffic conditions. routeeta to get the updated duration of a route considering live traffic; Applicable for India only “region=ind” and “rtype=1” is not supported. This is different from routetraffic ; this resource balances between a preferred path and aggressive traffic congestion avoidance. routetrafAllowed: route_adv · route_eta · route_traffic
route_etageopositionsrequiredgeopositions(part of URL) are either: pair of comma separated longitude & latitude values OR eLoc(s). First geoposition will be consider as start point (mandatory); a last geoposition will be considered as end point (mandatory) and those in between are via points (optional). {longitude1},{latitude1};{longitude2},{latitude2};eLoc1;eLoc2; ... (part of URL).
28.612964,77.229463geometriesThis parameter used to change the route geometry format/density (influences overview and per step).Allowed: polyline · polyline6 · geojson
polylinertypetype of route (integer) required for navigation, where values mean: 0 optimal (default) 1 shortest (it will calculate route by excluding access penalties like private roads, etc.)Allowed: 0 · 1
0stepsReturn route steps for each route leg. Possible values are true/false. By default it will be used as false.Allowed: true · false
trueexcludeAdditive list of road classes to avoid, order does not matter. Possible values are toll, motorway & ferry. Multiple values can be sent separated by comma.
ferryregionThis parameter is optional for India; for other countries (such as Sri Lanka, Nepal, Bangladesh, Bhutan + many more) this parameter is mandatory. Possible values are listed in a table here.
INDbearingsLimits the search to segments with given bearing in degrees. The referencing will be to the true north and in clockwise direction. (Part of premium offering)
180alternativesSearch for alternative routes. Passing a number: e.g. alternatives=n searches for up to n alternative routes. Please note that even if alternative routes are requested, a result cannot be guaranteed.
2radiusesLimits the search to given radius in meters. For all way-points including start and end points. {radius};{radius}[;{radius} ...]. (Part of premium offering)
100;100overviewAdd overview geometry either full, simplified according to highest zoom level it could be display on, or not at all. Possible values are simplified (default), full , false . (Part of premium offering)Allowed: simplified · full · false
simplifiedBuild your request in eight languages
Change source-backed examples once, validate required inputs, and copy the synchronized cURL, JavaScript, Python, Java, C#, Go, PHP, or Ruby request. Credentials remain environment references, and this page never sends a provider request.
https://apis.mapmyindia.com/advancedmaps/v1/${MAPPLS_REST_KEY}/route_eta/driving/28.612964%2C77.229463?geometries=polyline&rtype=0&steps=true&exclude=ferry®ion=IND&bearings=180&alternatives=2&radiuses=100%3B100&overview=simplifiedcurl --request GET \
--url "https://apis.mapmyindia.com/advancedmaps/v1/${MAPPLS_REST_KEY}/route_eta/driving/28.612964%2C77.229463?geometries=polyline&rtype=0&steps=true&exclude=ferry®ion=IND&bearings=180&alternatives=2&radiuses=100%3B100&overview=simplified" \
--header "Accept: application/json"Credential-safe by constructionSet MAPPLS_REST_KEY only in your trusted runtime. Code generation stays local. Sandbox execution sends only bounded fixture inputs to this developer platform and never reads a credential or calls Mappls.
Send a production-shaped request
Examples use environment-backed access tokens, explicit timeouts where supported, status checks, and JSON bodies derived from the source schema. Replace sample identifiers and coordinates with values from your application.
curl --request GET \
--url 'https://apis.mapmyindia.com/advancedmaps/v1/YOUR_REST_KEY/route_eta/driving/28.612964%2C77.229463'Responses
OK
Not found
Bad request
API access denied
Forbidden
Something went wrong
Internal server error
200 response fields
routesrequiredNo field description in the source contract.
exampleroutes[].legsrequiredNo field description in the source contract.
exampleroutes[].legs[].stepsrequiredNo field description in the source contract.
exampleroutes[].legs[].steps[].weightrequiredParameter for internal purpose only.
2282.2routes[].legs[].steps[].distancerequiredThe distance of travel in the leg, in float meters.
2282.2routes[].legs[].steps[].durationrequiredThe estimated travel time in the leg, in float number of seconds.
252.4routes[].legs[].steps[].geometryrequiredThe un-simplified geometry of the step segment, depends on the given geometries request parameter. Geometry information is NOT available in most use-case driven response; and is RESTRICTED.
28.612964,77.229463routes[].legs[].steps[].intersectionsrequiredA list of Intersection objects(1) that are passed along the segment, the very first belonging to the StepManeuver(2). Note: An intersection gives a full representation of any cross-way the path passes bay. For every step, the very first intersection (intersections[0]) corresponds to the location of the StepManeuver. Further intersections are listed for every cross-way until the next turn instruction. An object type representing maneuver.
exampleroutes[].legs[].steps[].intersections[].locationrequiredlongitude, latitude pair describing the location of the intersection.
28.612964,77.229463routes[].legs[].steps[].intersections[].classesrequiredCategorised types of road segments e.g. Motorway
["motorway"]routes[].legs[].steps[].intersections[].bearingsrequiredA list of bearing values (e.g. [0,90,180,270]) that are available at the intersection. The bearings describe all available roads at the intersection.
[60,210,240]routes[].legs[].steps[].intersections[].entryrequiredA list of entry flags, corresponding in a 1:1 relationship to the bearings. A value of true indicates that the respective road could be entered on a valid route. false indicates that the turn onto the respective road would violate a restriction.
[false,true,true]routes[].legs[].steps[].intersections[].inrequiredindex into bearings/entry array. Used to calculate the bearing just before the turn. Namely, the clockwise angle from true north to the direction of travel immediately before the maneuver/passing the intersection. Bearings are given relative to the intersection. To get the bearing in the direction of driving, the bearing has to be rotated by a value of 180. The value is not supplied for depart maneuvers.
0routes[].legs[].steps[].intersections[].outrequiredindex into the bearings/entry array. Used to extract the bearing just after the turn. Namely, The clockwise angle from true north to the direction of travel immediately after the maneuver/passing the intersection. The value is not supplied for arrive maneuvers.
2routes[].legs[].steps[].intersections[].lanesrequiredArray of Lane objects that denote the available turn lanes at the intersection. If no lane information is available for an intersection, the lanes property will not be present.
exampleroutes[].legs[].steps[].driving_siderequired“Left” (default) for India, Sri Lanka, Nepal, Bangladesh & Bhutan.
leftroutes[].legs[].steps[].namerequiredThe name of the way along which travel proceeds.
Safdar Hashmi Margroutes[].legs[].steps[].moderequiredsignifies the mode of transportation; driving as default.
drivingroutes[].legs[].steps[].maneuverrequiredNo field description in the source contract.
exampleroutes[].legs[].steps[].maneuver.locationrequiredA [longitude, latitude] pair describing the location of the turn.
28.612964,77.229463routes[].legs[].steps[].maneuver.bearing_beforerequiredThe clockwise angle from true north to the direction of travel immediately before the maneuver.
357routes[].legs[].steps[].maneuver.bearing_afterrequiredThe clockwise angle from true north to the direction of travel immediately after the maneuver.
254routes[].legs[].steps[].maneuver.modifierrequiredAn optional string indicating the direction change of the maneuver. To see the complete list of modifiers, please see article in wiki.
leftroutes[].legs[].steps[].maneuver.typerequiredA string indicating the type of maneuver. New identifiers might be introduced without API change. Types unknown to the client should be handled like the ‘turn’ type, the existence of correct modifier values is guaranteed. To see the complete list of types, please see article in wiki.
turnroutes[].legs[].summaryrequiredParameter for internal purpose only.
Patel Road, Bhagwan Mahavir Margroutes[].legs[].weightrequiredParameter for internal purpose only.
2282.2routes[].legs[].distancerequiredThe distance of travel in the leg, in float meters.
2282.2routes[].legs[].durationrequiredThe estimated travel time in the leg, in float number of seconds.
252.4routes[].weight_namerequiredParameter for internal purpose only.
routabilityroutes[].geometryrequiredReturns the whole geometry of the route as per given geometries request parameter. Default is encoded polyline with 5 digit accuracy (1e5) for positional coordinates. Geometry information is NOT available in most use-case driven response; and is RESTRICTED.
28.612964,77.229463routes[].weightrequiredParameter for internal purpose only.
2282.2routes[].distancerequiredThe distance of travel, in float meters.
2282.2routes[].durationrequiredThe estimated travel time, in float number of seconds.
252.4waypointsrequiredNo field description in the source contract.
examplewaypoints[].hintrequiredUnique internal identifier of the segment (ephemeral, not constant over data updates) This can be used on subsequent request to significantly speed up the query and to connect multiple services. E.g. you can use the hint value obtained by the nearest query as hint values for route inputs.
bEADgP___39tAAAA6QAAAChAAAB4CAAASdEuQaohRUHInMxEeg6MQwYAAAANAAAArAMAAHwAAADoAAAAiu2YBNCsswFz7ZgE3ayzAQ8AXw3Mm4K5waypoints[].namerequiredName of the street the coordinate snapped to.
Delhi Gurgaon Expresswaywaypoints[].distancerequireddistance to snapped location from actual location.
4.033839waypoints[].locationrequiredlongitude, latitude pair describing the snapped location of the waypoint.
28.612964,77.229463coderequiredif request is successful, response is ‘ok’. Else, see the service dependent and general status codes as available in the enum. In case of error, “NoRoute” code is supported (in addition to the general ones) which means “no route found”. Ok : Request could be processed as expected. InvalidUrl : URL string is invalid. InvalidService: Service name is invalid. InvalidVersion : Version is not found. InvalidOptions : Options are invalid. InvalidQuery : The query string is synctactically malformed. InvAllowed: Ok · InvalidUrl · InvalidService · InvalidVersion · InvalidOptions · InvalidQuery · InvalidValue · NoSegment · TooBig · NoRoute
OkServerrequiredGives Information on active service's server.
ETA-5100{
"routes": [
{
"legs": [
{
"steps": "example",
"summary": "Patel Road, Bhagwan Mahavir Marg",
"weight": 2282.2,
"distance": 2282.2,
"duration": 252.4
}
],
"weight_name": "routability",
"geometry": "osgmDutwuMjA~@vEfGx@X~RlXLnAhGbJfHjQzBxDb@jEpAj@nAFt@`A?fAQn@aDbBcAhBmChQ",
"weight": 2282.2,
"distance": 2282.2,
"duration": 252.4
}
],
"waypoints": [
{
"hint": "bEADgP___39tAAAA6QAAAChAAAB4CAAASdEuQaohRUHInMxEeg6MQwYAAAANAAAArAMAAHwAAADoAAAAiu2YBNCsswFz7ZgE3ayzAQ8AXw3Mm4K5",
"name": "Delhi Gurgaon Expressway",
"distance": 4.033839,
"location": [
77.113089,
28.544643
]
}
],
"code": "Ok",
"Server": "ETA-5100"
}Operate it safely
This operation is evaluated independently from the request. Cache and retry according to its documented semantics.
Contract provenance
- Source file
contenthub/dochub/mapmyindia-rest-api/docs/custom/routingDriving.yml- SHA-256
5134fc7e305ab1b69eed37d863eba09a00e66d5b56be03c4d8a873277ee7c1b0- Normalization
- Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.
- Source record
- Open repository audit