{"id":16185265,"url":"https://github.com/davemo/geohashing-exercise","last_synced_at":"2025-04-02T01:32:04.892Z","repository":{"id":16595004,"uuid":"19349432","full_name":"davemo/geohashing-exercise","owner":"davemo","description":"An exercise for pairing with people to learn Node","archived":false,"fork":false,"pushed_at":"2021-11-20T00:47:06.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":11,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-26T20:56:46.174Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davemo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-01T15:55:35.000Z","updated_at":"2019-04-26T13:51:08.000Z","dependencies_parsed_at":"2022-07-26T06:15:05.002Z","dependency_job_id":null,"html_url":"https://github.com/davemo/geohashing-exercise","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/davemo%2Fgeohashing-exercise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemo%2Fgeohashing-exercise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemo%2Fgeohashing-exercise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemo%2Fgeohashing-exercise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davemo","download_url":"https://codeload.github.com/davemo/geohashing-exercise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246724817,"owners_count":20823544,"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-10-10T07:13:53.335Z","updated_at":"2025-04-02T01:32:04.667Z","avatar_url":"https://github.com/davemo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geohashing Exercise\n\nImplement a geohashing restful service, as described in XKCD:\n\n![XKCD](http://imgs.xkcd.com/comics/geohashing.png)\n\nGiven: `GET /geohash?lat=37.421542\u0026lon=-122.085589`\n\nExpected Output from API: `=\u003e 200 application/json {lat: 37.857713, lon: -122.544543}`\n\n# Inputs\n\n- Dow Opening Query:\n\n`curl \"https://www.alphavantage.co/query?function=TIME_SERIES_DAILY\u0026symbol=NDX\u0026apikey=YOUR_API_KEY\"`\n\n- (if you get an API error you may need to get an API key here: https://www.alphavantage.co/)\n\n# Extra Credit\n\n- Accept lat/lon as POST\n- Abstract the geohashing logic into a separate module\n- Cache the dow opening API call to occur once per day\n- Write unit tests for the module _and/or_ TDD your way there!\n- Use pipe instead of a callback to handle the stock call\n- Implement a \"cacheable\" function that takes as input a function to cache, and a cacheKey such that when you compose the functions together ie: `cacheable(myFunc() {..}, \"my-cache-key\")` you are returned a function that caches results for that key; use this function as your caching strategy\n- Implement a promise-based API\n- Make the promise-based API also handle callbacks :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavemo%2Fgeohashing-exercise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavemo%2Fgeohashing-exercise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavemo%2Fgeohashing-exercise/lists"}