API reference/Core Maps, Search & Routing
GETstatelesslegacy-source evidence

Elevation API

/{REST_KEY}/elevation

The Elevation API provides elevation data above the sea level for location on Earth’s surface. The Elevation API allows you to retrieve sampled elevation data along a path. This API can be useful for biking, trucking & in other routing applications.

Legacy contract evidence

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

GEThttps://apis.mapmyindia.com/advancedmaps/v1/YOUR_REST_KEY/elevation?locations=28.612964%2C77.229463
Base URLhttps://apis.mapmyindia.com/advancedmaps/v1
Authenticationnot declared
Journey rolerequest response
Content typesNo request body

Parameters

NameLocationTypeDescriptionExample
REST_KEYrequired
pathstring

The REST API licence key allocated to you by signing into our services and registering yourself as a developer.

YOUR_REST_KEY
locationsrequired
querystring

The location coordinates are expressed in pairs of (latitude,longitude|latitude,longitude)

28.612964,77.229463

Build 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.

Local request composerCode stays local · fixtures are explicit
GETRequest inputs
1 editable · 1 protected
Generated in eight languages
Environment-backed credentials
GEThttps://apis.mapmyindia.com/advancedmaps/v1/${MAPPLS_REST_KEY}/elevation?locations=28.612964%2C77.229463
Credential-free sandboxExecute this contract without a provider call
How fixtures work
Generated from your inputs
curl --request GET \
  --url "https://apis.mapmyindia.com/advancedmaps/v1/${MAPPLS_REST_KEY}/elevation?locations=28.612964%2C77.229463" \
  --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.

GET /{REST_KEY}/elevation
curl --request GET \
  --url 'https://apis.mapmyindia.com/advancedmaps/v1/YOUR_REST_KEY/elevation?locations=28.612964%2C77.229463'

Responses

200

OK

204

Not found

400

Bad request

401

API access denied

403

Forbidden

500

Something went wrong

503

Internal server error

200 response fields

FieldTypeDescriptionExample
responseCoderequired
integer

This shows the response code of the results.

200
versionrequired
string

This shows the API version

211.18
resultsrequired
array<object>

The object contains the results of the Elevation API.

example
results[].longituderequired
integer

It shows us the longitude of the location serached

77.229463
results[].latituderequired
integer

It shows us the latitude of the location searched

28.612964
results[].elevationrequired
integer

The elevation of the location

523
Response example
{
  "responseCode": 200,
  "version": "211.18",
  "results": [
    {
      "longitude": 76.998825,
      "latitude": 9.53835,
      "elevation": 523
    }
  ]
}

Operate it safely

request-response

This operation is evaluated independently from the request. Cache and retry according to its documented semantics.

Keep credentials and raw tokens out of source, client bundles, prompts, and logs.Record the operation ID, status, latency, retry count, and source contract version in traces.Classify 4xx responses before retrying; back off and add jitter for retryable 5xx or transport failures.Cache only when request inputs, authorization scope, and freshness requirements permit it.

Contract provenance

Source file
contenthub/dochub/mapmyindia-rest-api/docs/custom/Elevation-API.yml
SHA-256
6db3e99ab47abbb74165fae787760a3776568476cc4a4e6cf9f8e8040bba3a93
Normalization
Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.