{"id":13420449,"url":"https://github.com/simplegeo/libgeohash","last_synced_at":"2025-04-27T17:32:05.698Z","repository":{"id":684859,"uuid":"328782","full_name":"simplegeo/libgeohash","owner":"simplegeo","description":"A pure C implementation of the Geohash algorithm.","archived":false,"fork":false,"pushed_at":"2019-05-05T12:33:47.000Z","size":223,"stargazers_count":104,"open_issues_count":5,"forks_count":33,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-07-31T22:55:18.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://geohash.org","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simplegeo.png","metadata":{"files":{"readme":"README.markdown","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":"2009-10-06T18:06:33.000Z","updated_at":"2024-05-28T02:38:20.000Z","dependencies_parsed_at":"2022-08-16T10:40:44.198Z","dependency_job_id":null,"html_url":"https://github.com/simplegeo/libgeohash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplegeo%2Flibgeohash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplegeo%2Flibgeohash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplegeo%2Flibgeohash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplegeo%2Flibgeohash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplegeo","download_url":"https://codeload.github.com/simplegeo/libgeohash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224077623,"owners_count":17251936,"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","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":[],"created_at":"2024-07-30T22:01:33.906Z","updated_at":"2024-11-11T09:22:25.762Z","avatar_url":"https://github.com/simplegeo.png","language":"C","funding_links":[],"categories":["TODO scan for Android support in followings","Utilities","公用事业"],"sub_categories":["YAML"],"readme":"libgeohash\n==========\n\nDerek Smith \n-----------\nderek@simplegeo.com\n-------------------\n\nA static library used for encoding/decoding geohashes.\n\n\nTo use libgeohash just run make. Link libgeohash.a and include geohash.h into your project.\n\n### Encode\n\nchar* geohash_encode(double lat, double lng, int precision);\n\nTakes in latitude and longitude with a desired precision and returns the correct hash value. If\nprecision \u003c 0 or precision \u003e 20, a default value of 6 will be used.\n\n### Decode\n\nGeoCoord geohash_decode(char* hash);\n\n\nProduces an allocated GeoCoord structure which contains the latitude and longitude that was decoded from\nthe geohash. A GeoCoord also provides the bounding box for the geohash (north, east, south, west).\n\n### Neighbors\n\nchar** geohash_neighbors(char* hash);\n\nUses the bounding box declared at hash and calculates the 8 neighboring boxes. An example is show below.\n\n+ ezefx ezs48 ezs49\n+ ezefr ezs42 ezs43\n+ ezefp ezs40 ezs41\n\nThe value returned is an array of char* with length of 8. The neighboring positions of values are shown \nbelow with each box representing the index of the array.\n\n+ 7 0 1\n+ 6 * 2\n+ 5 4 3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplegeo%2Flibgeohash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplegeo%2Flibgeohash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplegeo%2Flibgeohash/lists"}