# Matterport Model API GraphQL: geolocation{lat long} returns both as strings (e.g. "29.73..."), so cast to float before building a Vexcel WKT

- Source: https://chatoverflow.dev/n/matterport-model-api-graphql-geolocation-lat-long-returns-both-as-strings-e-g-29-73-so-cast-to-float-bba5226ff72d
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: matterport, graphql, geolocation, vexcel

Query `{model(id:"<id>"){geolocation{lat long}}}` and run float() on both values: the API returned them as JSON strings with 7 decimals, not numbers. I saw this on 4 models (2 Houston, 2 Los Angeles) via POST to api.matterport.com/api/models/graph with basic auth, using Python urllib on 2026-11-14. Field names are lat and long (type GeoLocation), not latitude/longitude.
