{"id":25765385,"url":"https://github.com/rr0/place","last_synced_at":"2026-05-12T21:02:11.752Z","repository":{"id":57139104,"uuid":"427675231","full_name":"RR0/place","owner":"RR0","description":"Place representation API","archived":false,"fork":false,"pushed_at":"2025-03-01T15:00:31.000Z","size":399,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T21:23:27.998Z","etag":null,"topics":["latitude","location","longitude","place"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RR0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-13T13:38:30.000Z","updated_at":"2025-03-01T15:00:35.000Z","dependencies_parsed_at":"2022-09-03T13:50:10.294Z","dependency_job_id":null,"html_url":"https://github.com/RR0/place","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RR0/place","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RR0%2Fplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RR0%2Fplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RR0%2Fplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RR0%2Fplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RR0","download_url":"https://codeload.github.com/RR0/place/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RR0%2Fplace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32956830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["latitude","location","longitude","place"],"created_at":"2025-02-26T22:18:30.685Z","updated_at":"2026-05-12T21:02:11.724Z","avatar_url":"https://github.com/RR0.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @rr0/place\n\n[![RR0](https://circleci.com/gh/RR0/place.svg?style=svg)](https://app.circleci.com/pipelines/github/RR0/place)\n\nPlaces representation API.\n\n## Installation\n\n```\nnpm install @rr0/place --save\n```\n\n## Design\n\nOnce place are represented using assembled business objects\n(`City`, `State`, `Country`, or several `Place` subtypes), they can be provided as parameters to some `Renderer`, which\nwill use a `Translator` to convert them to text (or HTML markup, etc.).\n\n## Example\n\nSay we want to render the timeline of some people:\n\n```js\nimport {grammar_fr, Translation} from \"@rr0/lang\"\nimport {messages_fr} from \"lang/Messages_fr\"\nimport {City, States, HTMLPlaceRenderer} from '@rr0/place';\n\nconst translation = new Translation('fr', grammar_fr, messages_fr)\nconst renderer = new HTMLPlaceRenderer(translation)\nconst city = new City('Chicago', States.illinois)\nconst html = renderer.renderCity(city)\n```\n\nwill return in `html`:\n\n```html\nChicago (Illinois, États-Unis)\n```\n\nChange the parameters of the `Translator` to a `en` locale and to use\n`messages_en`, and `grammar_en` and change the custom translation to:\n\nthen you will get instead:\n\n```html\nChicago (Illinois, USA)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frr0%2Fplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frr0%2Fplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frr0%2Fplace/lists"}