{"id":15592052,"url":"https://github.com/derhuerst/transform-coordinates","last_synced_at":"2025-08-06T15:07:43.998Z","repository":{"id":57379014,"uuid":"101774669","full_name":"derhuerst/transform-coordinates","owner":"derhuerst","description":"Transform coordinates from one coordinate system to another.","archived":false,"fork":false,"pushed_at":"2023-11-06T12:12:17.000Z","size":11,"stargazers_count":19,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-16T12:55:14.703Z","etag":null,"topics":["coordinates","epsg","geospatial","gis","transform"],"latest_commit_sha":null,"homepage":"https://github.com/derhuerst/transform-coordinates","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derhuerst.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-29T15:07:23.000Z","updated_at":"2025-05-02T18:39:58.000Z","dependencies_parsed_at":"2024-06-18T20:05:32.919Z","dependency_job_id":"bb3a66a3-d0e4-43e4-b8ec-cd49179b4b90","html_url":"https://github.com/derhuerst/transform-coordinates","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"be841191c1de872373a1e8f0453c876773332ebb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/derhuerst/transform-coordinates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Ftransform-coordinates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Ftransform-coordinates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Ftransform-coordinates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Ftransform-coordinates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhuerst","download_url":"https://codeload.github.com/derhuerst/transform-coordinates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Ftransform-coordinates/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269101002,"owners_count":24359847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coordinates","epsg","geospatial","gis","transform"],"created_at":"2024-10-02T23:53:45.931Z","updated_at":"2025-08-06T15:07:43.968Z","avatar_url":"https://github.com/derhuerst.png","language":"JavaScript","readme":"# transform-coordinates\n\n**Transform coordinates from one [coordinate system](https://en.wikipedia.org/wiki/Geographic_coordinate_system) to another.** Just a wrapper around [`proj4`](https://github.com/proj4js/proj4js) and [`epsg-index`](https://github.com/derhuerst/epsg-index).\n\n[![npm version](https://img.shields.io/npm/v/transform-coordinates.svg)](https://www.npmjs.com/package/transform-coordinates)\n[![build status](https://api.travis-ci.org/derhuerst/transform-coordinates.svg?branch=master)](https://travis-ci.org/derhuerst/transform-coordinates)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/transform-coordinates.svg)\n![minimum Node.js version](https://img.shields.io/node/v/transform-coordinates.svg)\n[![chat with me on Gitter](https://img.shields.io/badge/chat%20with%20me-on%20gitter-512e92.svg)](https://gitter.im/derhuerst)\n[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)\n\n\n## Installing\n\n```shell\nnpm install transform-coordinates\n```\n\n\n## Rationale\n\n[`proj4`](https://github.com/proj4js/proj4js) is a battle-proven tool for converting from one any coordinate system into any other. You need to specify a long and complicated string for both system though, to tell `proj4` *how* to convert.\n\n[epsg.io](https://epsg.io/) has an index of those strings. [`epsg-index`](https://github.com/derhuerst/epsg-index) is an offline copy of them.\n\n**This module glues together `proj4` and `epsg-index` and returns a clean API.**\n\n\n## Usage\n\n```js\nconst transformation = require('transform-coordinates')\n\nconst transform = transformation('EPSG:4326', '3068') // WGS 84 to Soldner Berlin\n\nconsole.error(transform.forward({x: 13.4105, y: 52.5034}))\n// {\n// \tx: 25405.407133664165,\n// \ty: 19607.826100560924,\n// \tz: -40.94089552294463\n// }\n```\n\n`transformation(from, to)` returns a [`proj4` object with `forward()` and `inverse()`](https://github.com/proj4js/proj4js#using).\n\n\n## See also\n\n- [`projections`](https://github.com/juliuste/projections) – Collection of (stereographic) map/coordinate projections.\n- [`proj4`](https://github.com/proj4js/proj4js) – library to transform coordinates from one coordinate system to another\n- [`epsg-index`](https://github.com/derhuerst/epsg-index) – A machine-readable index of all EPSG coordinate systems.\n\n\n## Contributing\n\nIf you have a question or have difficulties using `transform-coordinates`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/transform-coordinates/issues).\n","funding_links":["https://github.com/sponsors/derhuerst"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Ftransform-coordinates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhuerst%2Ftransform-coordinates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Ftransform-coordinates/lists"}