@api_view(('<STR_LIT:GET>',))<EOL>def elevation_profile(request, format=None):
if format is None:<EOL><INDENT>format = '<STR_LIT>'<EOL><DEDENT>path = request.query_params.get('<STR_LIT:path>')<EOL>if not path:<EOL><INDENT>return Response({'<STR_LIT>': _('<STR_LIT>')}, status=<NUM_LIT>)<EOL><DEDENT>return Response(elevation(path,<EOL>api_key=ELEVATION_API_KEY,<EOL>sampling=ELEVATION_DEFAULT_SAMPLING))<EOL>
Proxy to google elevation API but returns GeoJSON
(unless "original" parameter is passed, in which case the original response is returned).

For input parameters read:
https://developers.google.com/maps/documentation/elevation/