{"id":19901330,"url":"https://github.com/lissy93/tweet-location","last_synced_at":"2025-05-02T23:31:40.064Z","repository":{"id":57382602,"uuid":"43247801","full_name":"Lissy93/tweet-location","owner":"Lissy93","description":"🗺️  Returns a latitude and longitude from a Twitter place ID","archived":false,"fork":false,"pushed_at":"2017-12-30T21:27:47.000Z","size":6,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T08:21:19.145Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lissy93.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}},"created_at":"2015-09-27T13:36:51.000Z","updated_at":"2023-10-26T18:35:45.000Z","dependencies_parsed_at":"2022-09-01T04:40:48.571Z","dependency_job_id":null,"html_url":"https://github.com/Lissy93/tweet-location","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/Lissy93%2Ftweet-location","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lissy93%2Ftweet-location/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lissy93%2Ftweet-location/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lissy93%2Ftweet-location/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lissy93","download_url":"https://codeload.github.com/Lissy93/tweet-location/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252122273,"owners_count":21698305,"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-11-12T20:14:39.998Z","updated_at":"2025-05-02T23:31:39.738Z","avatar_url":"https://github.com/Lissy93.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# tweet-location\n\n[![Build Status](https://travis-ci.org/Lissy93/remove-words.svg?branch=master)](https://travis-ci.org/Lissy93/remove-words)\n[![Dependency Status](https://david-dm.org/lissy93/tweet-location.svg)](https://david-dm.org/lissy93/remove-words)\n[![devDependency Status](https://david-dm.org/lissy93/remove-words/dev-status.svg)](https://david-dm.org/lissy93/remove-words#info=devDependencies)\n[![Codacy Badge](https://api.codacy.com/project/badge/ce977852afe643dc94edf931850a3c35)](https://www.codacy.com/app/lissy93/tweet-location)\n\n\u003eReturns a place object including latitude and longitude from a Twitter place ID\n\n\n## Installation \n```npm install tweet-location --save```\n\n\n## Example\n```javascript\nvar tweetLocation =  require('tweet-location');\n\nvar credentials = require('./credentials'); // see below for template\n\ntweetLocation('df51dec6f4ee2b2c', credentials, function(results){\n    console.log(results); // Do whatever with the results\n});\n```\n\n## Feeding Strait into Google Maps\nGoogle Maps requires a latitude and longitude object which can be created from \nthe center point of the polygon of coordinates returned, and then reversed and rounded.\n\nTo return a latitude and longitude object, simply specify the final optional parameter as true.\n```javascript\ntweetLocation('5d838f7a011f4a2d', credentials, function(latLonObject){\n   // Send latLonObject to map!\n    console.log(latLonObject)\n}, true);\n```\n\n\n## Authenticating \nYou will need to register your application at [https://apps.twitter.com/app/new](https://apps.twitter.com/app/new)\nThen copy and paste the following into a JSON object similar to that below. \nIdeally you should put this in a separate .gitignore'd file\n\n```javascript\nmodule.exports = {\n    consumer_key    : 'xxxxxxxxxxxxxxxxxxxxxxxxx',\n    consumer_secret : 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',\n    token           : 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',\n    token_secret    : 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'\n};\n```\n\n## Note about Data Limits\nTwitter imposes a limit of 15 requests every 15 minutes. After this the Twitter API returns a single empty JSON object.\n\n## Tests\nRun ```npm test```\n\n\n## Building\n- `gulp build` - Lints and compiles CoffeeScript\n- `gulp test` - Runs tests\n- `gulp` - Watches for changes, cleans working directory, builds and tests\n\n\n## License\nMIT © [Alicia Sykes](http://aliciasykes.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flissy93%2Ftweet-location","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flissy93%2Ftweet-location","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flissy93%2Ftweet-location/lists"}