{"uid":"cap_8q4Ftr39RwRsLRGXpiovo","slug":"x402-shizu-me-geospatial-computation-620fafe4","name":"x402.shizu.me Geospatial Computation","description":"Geospatial computation. op=distance (lat1,lon1,lat2,lon2 -> km and miles) or op=geohash (lat,lon,precision? -> geohash string). Inputs as query params.","url":"https://x402.shizu.me/geo","method":"GET","headers":{},"bodySchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","required":["method"],"properties":{"method":{"const":"GET"},"queryParams":{"type":"object","required":["op","lat1","lon1","lat2","lon2"],"properties":{"op":{"type":"string"},"lat1":{"type":"string"},"lat2":{"type":"string"},"lon1":{"type":"string"},"lon2":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"km":157.2494,"op":"distance","miles":97.7102}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_g6uZ1ui2EdCUgisZWy3Ob","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the distance between two coordinates (in km and miles) or encodes a coordinate as a geohash string, via query parameters.","exampleAgentPrompt":"What's the straight-line distance in km and miles between 40.7128,-74.0060 and 51.5074,-0.1278? Also give me the geohash for the New York coordinate at precision 6.","exampleUseCases":[{"title":"Distance between two GPS points","prompt":"Can you calculate the great-circle distance in both kilometers and miles between 48.8566,2.3522 (Paris) and 35.6762,139.6503 (Tokyo)?"},{"title":"Encode location as geohash","prompt":"I need to index a user's location at 37.7749,-122.4194 as a geohash string with precision 7 for storing in our spatial database — can you get that for me?"},{"title":"Check delivery radius eligibility","prompt":"A customer is at 51.5074,-0.1278 and our warehouse is at 53.4808,-2.2426. Can you tell me how many kilometers apart they are so I can check if they're within our 250 km delivery zone?"}],"resultDescription":"For op=distance: returns the great-circle distance between two coordinate pairs in both kilometers and miles. For op=geohash: returns the geohash-encoded string for the given latitude/longitude at the specified precision level.","failureModes":["Missing required query parameters returns an error","Invalid or out-of-range latitude/longitude values cause a computation error","Invalid precision value for geohash may return an error or use a default","Payment not provided or insufficient USDC causes a 402 response","Unsupported op value returns an error"],"whenToPreferThis":"Use this endpoint when you need lightweight, on-demand geospatial computation — specifically great-circle distance between two coordinates or geohash encoding of a location — without setting up a full GIS library or geospatial database. It is ideal for agents that need quick distance checks or spatial indexing via geohash without self-hosting computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:47:15.556Z","isFirstParty":false}