{"id":37017280,"url":"https://github.com/wherobots/jpostal","last_synced_at":"2026-01-14T01:59:02.123Z","repository":{"id":303857769,"uuid":"991511348","full_name":"wherobots/jpostal","owner":"wherobots","description":"Wherobots' Fork of jpostal","archived":false,"fork":false,"pushed_at":"2025-07-10T00:40:21.000Z","size":259,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T04:33:16.442Z","etag":null,"topics":["geocoding","jpostal","libpostal"],"latest_commit_sha":null,"homepage":"","language":"Java","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/wherobots.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-27T18:29:08.000Z","updated_at":"2025-07-09T23:40:54.000Z","dependencies_parsed_at":"2025-07-10T04:33:21.335Z","dependency_job_id":"42080b99-5876-41fa-b4e5-92609614ff50","html_url":"https://github.com/wherobots/jpostal","commit_stats":null,"previous_names":["wherobots/jpostal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wherobots/jpostal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wherobots%2Fjpostal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wherobots%2Fjpostal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wherobots%2Fjpostal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wherobots%2Fjpostal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wherobots","download_url":"https://codeload.github.com/wherobots/jpostal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wherobots%2Fjpostal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"ssl_error","status_checked_at":"2026-01-14T01:40:32.775Z","response_time":56,"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":["geocoding","jpostal","libpostal"],"created_at":"2026-01-14T01:59:01.384Z","updated_at":"2026-01-14T01:59:02.118Z","avatar_url":"https://github.com/wherobots.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"jpostal\n-------\nThese are the Java/JNI bindings to [libpostal](https://github.com/openvenues/libpostal), a fast, multilingual NLP\nlibrary (written in C) for parsing/normalizing physical addresses around the world.\n\nUsage\n-----\n\nTo expand address strings into normalized forms suitable for geocoder queries:\n\n```java\nimport com.mapzen.jpostal.AddressExpander;\n\n// Singleton, libpostal setup is done in the constructor\nAddressExpander e = AddressExpander.getInstance();\n        String[] expansions = e.expandAddress(\"Quatre vingt douze Ave des Champs-Élysées\");\n```\n\nTo parse addresses into components:\n\n```java\nimport com.mapzen.jpostal.AddressParser;\n\n// Singleton, parser setup is done in the constructor\nAddressParser p = AddressParser.getInstance();\n        ParsedComponent[] components = p.parseAddress(\"The Book Club 100-106 Leonard St, Shoreditch, London, Greater London, EC2A 4RH, United Kingdom\");\n\nfor(\n        ParsedComponent c :components){\n        System.out.\n\n        printf(\"%s: %s\\n\",c.getLabel(),c.\n\n        getValue());\n        }\n```\n\nTo use a libpostal installation with a datadir known at setup-time:\n\n```java\n\nimport com.mapzen.jpostal.AddressParser;\nimport com.mapzen.jpostal.AddressExpander;\n\nAddressExpander e = AddressExpander.getInstanceDataDir(\"/some/path\");\nAddressParser p = AddressParser.getInstanceDataDir(\"/some/path\");\n```\n\nTo configure the library to download the model data automatically when not present:\n\n```java\n\nimport com.mapzen.jpostal.AddressParser;\nimport com.mapzen.jpostal.AddressExpander;\nimport com.mapzen.jpostal.Config;\n\nConfig config = Config.builder()\n        .downloadDataIfNeeded(true)\n        .senzing(true) // Set to true if you want to use Senzing model files\n        .dataDir(\"/some/path\")\n        .build();\n\nAddressExpander e = AddressExpander.getInstanceConfig(config);\nAddressParser p = AddressParser.getInstanceConfig(config);\n```\n\nInstallation from Maven Central\n-------------------------------\nTODO: Publish to Maven Central. For now you can download the jar\nfrom [github](https://github.com/wherobots/jpostal/actions/runs/16152059927/artifacts/3489422226).\n\nTODO: add maven link\n\nWe are publishing this version of jpostal to Maven Central. It contains the native code (libjpostal and libpostal). You\ncan use it in your Java projects with just a Maven dependency. We support:\n\n* ARM and Intel architectures\n* Linux and Mac OSX\n\n\n## Build from Source\nIf you want to builde from source or have a specific version of libpostal, you can build the JNI bindings.\n### Building libpostal\n\n\nBefore building the Java bindings, you must install the libpostal C library. Make sure you have the following\nprerequisites:\n\n**On Ubuntu/Debian**\n\n```\nsudo apt-get install curl autoconf automake libtool pkg-config\n```\n\n**On CentOS/RHEL**\n\n```\nsudo yum install curl autoconf automake libtool pkgconfig\n```\n\n**On Mac OSX**\n\n```\nbrew install curl autoconf automake libtool pkg-config\n```\n\n**Installing libpostal**\n\n```shell\ngit clone https://github.com/openvenues/libpostal\ncd libpostal\n./bootstrap.sh\n./configure --datadir=[...some dir with a few GB of space...]\n\nmake\nsudo make install\n\n# On Linux it's probably a good idea to run\nsudo ldconfig\n```\n\nNote: libpostal \u003e= v0.3.3 is required to use this binding.\n\n\n### Building jpostal\nOnly one command is needed:\n\n```\n./gradlew assemble\n```\n\nThis will leverage gradle's NativeLibrarySpec support to build for the JNI/C portion of the library and installs the\nresulting shared libraries in the expected location for java.library.path\n\n### Usage in a Java project\n\n\nThe JNI portion of jpostal builds shared object files (.so on Linux, .jniLib on Mac) that need to be on\njava.library.path.\nAfter running ```gradle assemble``` the .so/.jniLib files can be found under ```./libs/jpostal/shared``` in the build\ndir. For running the tests, we set java.library.path\nexplicitly [here](https://github.com/Qualytics/jpostal/blob/master/build.gradle#L63).\n\n\nCompatibility\n-------------\n\n- Building jpostal is known to work on Linux and Mac OSX (including Mac silicon).\n- Requires JDK 16 or later. Make sure JAVA_HOME points to JDK 16+.\n\n## Development\n\n### Tests\n\nTo run the tests:\n\n```\n./gradlew check\n```\n\nLicense\n-------\n\nThe package is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwherobots%2Fjpostal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwherobots%2Fjpostal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwherobots%2Fjpostal/lists"}