{"uid":"cap_m96NRuCx6Dcs9lE1iTkS3","slug":"wgs84-to-web-mercator-epsg-3857-forward-projection-3f55622b","name":"WGS84 to Web Mercator (EPSG:3857) Forward Projection","description":"Project WGS84 longitude/latitude (degrees) to Web Mercator (EPSG:3857) easting/northing in metres. Latitude is clamped to ±85.0511° (the projection's valid extent).","url":"https://geospatial.openverbs.com/v1/forward","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["lon","lat"],"properties":{"lat":{"type":"number","maximum":90,"minimum":-90,"description":"Latitude in degrees."},"lon":{"type":"number","maximum":180,"minimum":-180,"description":"Longitude in degrees."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"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_HvS7sTCDO5UfcMJP5Q8VH","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":"Converts a WGS84 longitude/latitude coordinate pair (in degrees) to Web Mercator (EPSG:3857) easting and northing values in metres.","exampleAgentPrompt":"Convert longitude -79.9822 and latitude 40.4462 from WGS84 decimal degrees to Web Mercator EPSG:3857 easting and northing in metres.","exampleUseCases":[{"title":"Tile layer overlay alignment","prompt":"I need to overlay my GPS waypoints onto an OpenStreetMap tile layer — can you project longitude -0.1276 and latitude 51.5074 into Web Mercator easting and northing so the positions line up correctly?"},{"title":"GIS pipeline coordinate reprojection","prompt":"Our GIS pipeline stores features in WGS84, but the rendering engine expects EPSG:3857. Can you reproject longitude 2.3522 and latitude 48.8566 to Web Mercator metres for me?"},{"title":"Distance calculation in projected space","prompt":"I need to work in a Cartesian coordinate space for some planar geometry calculations — please convert longitude 139.6917 and latitude 35.6895 to Web Mercator easting and northing in metres."}],"resultDescription":"Returns the projected easting (X) and northing (Y) values in metres in the EPSG:3857 Web Mercator coordinate reference system. Latitude is clamped to ±85.0511° if the input exceeds the valid projection extent.","failureModes":["Longitude outside [-180, 180] — validation error returned","Latitude outside [-90, 90] — validation error returned","Missing required fields lon or lat — schema validation error","Latitude near ±90° is clamped to ±85.0511° silently rather than erroring","Network timeout or service unavailability returns a non-2xx HTTP error"],"whenToPreferThis":"Use this endpoint when you need to convert WGS84 decimal-degree coordinates into the Web Mercator (EPSG:3857) projected coordinate system used by most web tile mapping services (OSM, Google Maps, Mapbox). Prefer this over a generic GIS library call when running in a serverless or agent context without local geospatial dependencies. Choose the sibling inverse endpoint when going from EPSG:3857 back to WGS84.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:49:43.494Z","isFirstParty":false}