// This file is autogenerated, DO NOT EDIT
// mapping/types/geo-shape.asciidoc:194

[source, python]
----
resp = client.index(
    index="example",
    document={
        "location": {
            "type": "LineString",
            "coordinates": [
                [
                    -77.03653,
                    38.897676
                ],
                [
                    -77.009051,
                    38.889939
                ]
            ]
        }
    },
)
print(resp)
----
