{"id":25470118,"url":"https://github.com/thinkphp/moogeo","last_synced_at":"2025-11-04T18:30:29.434Z","repository":{"id":959457,"uuid":"746387","full_name":"thinkphp/MooGeo","owner":"thinkphp","description":"This is a simple plugin MooTools delivering various geo tasks like geolocation, reverse geocoding and content analysis.","archived":false,"fork":false,"pushed_at":"2010-12-07T21:21:17.000Z","size":128,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T14:54:28.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://thinkphp.github.com/MooGeo","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/thinkphp.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":"2010-06-29T09:00:23.000Z","updated_at":"2014-03-13T12:44:15.000Z","dependencies_parsed_at":"2022-08-16T11:35:25.065Z","dependency_job_id":null,"html_url":"https://github.com/thinkphp/MooGeo","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FMooGeo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FMooGeo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FMooGeo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FMooGeo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkphp","download_url":"https://codeload.github.com/thinkphp/MooGeo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239437177,"owners_count":19638444,"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":"2025-02-18T08:32:04.752Z","updated_at":"2025-11-04T18:30:29.390Z","avatar_url":"https://github.com/thinkphp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"MooGeo\n======\n\nThis is a simple plugin MooTools delivering various geo tasks like geolocation, reverse geocoding and content analysis.\n\n![Screenshot](http://farm5.static.flickr.com/4138/4742102395_a0daa4e42e_b.jpg)\n\nHow to use\n----------\n\nFirst you must to include the JS files in the head of your HTML document.\n       \n       #HTML\n       \u003cscript type=\"text/javascript\" src=\"mootools-core.js\"\u003e\u003c/script\u003e\n       \u003cscript type=\"text/javascript\" src=\"geo.js\"\u003e\u003c/script\u003e\n\nIn your JS\n\n     //you can scrape a certain document at a URL for geographical locations: \n     new MooGeo('http://mootools.net/developers/',{\n              onComplete: function(o) {\n                  if(o.place){\n                    var out = '';\n                    var all = o.place.length;\n                       for(var i=0;i\u003call;i++){\n                             out+=o.place[i].name+'\u003cbr/\u003e';\n                       };\n                     $('info').set('text',out);\n                  }\n              }  \n     });        \n\n     //you can find the user (using the W3C geolocation API)\n     new MooGeo('visitor',{\n         onComplete: function(o) {\n               var out = '\u003ch3\u003eInformation from your IP\u003c/h3\u003e'+\n               '\u003cul\u003e'+ \n               '\u003cli\u003eWOEID: '+ o.place.woeid + '\u003c/li\u003e'+ \n               '\u003cli\u003eLatitude: '+ o.place.centroid.latitude + '\u003c/li\u003e'+ \n               '\u003cli\u003eLongitude: '+ o.place.centroid.longitude + '\u003c/li\u003e'+ \n               '\u003cli\u003eCountry: '+ o.place.country.content + '\u003c/li\u003e'+ \n               '\u003cli\u003eCountry Code: '+ o.place.country.code + '\u003c/li\u003e'+ \n               '\u003cli\u003ePostal Code: '+ o.place.postal.content + '\u003c/li\u003e'+ \n               '\u003c/ul\u003e';\n               $('info').set('html', out);\n         }  \n     });      \n\n     or\n     \n     //you can find geographical data from a text\n     new MooGeo('bucharest,ro',{\n        onComplete: function(o) {\n              $('info').set('text',o.place.name+' ('+o.place.centroid.latitude+', '+o.place.centroid.longitude+')');\n        }  \n     });        \n\n     or\n\n     //you can get the place from an IP number\n     new MooGeo('188.25.34.67',{\n        onComplete: function(o) {\n              $('info').set('text',o.place.name + ',' + o.place.country.content);\n        }  \n     });    \n\n     or \n\n     //you can get all kind of data from a latitude/longitude pair.\n     new MooGeo(44.4333,26.1000,{\n          onComplete: function(o) {\n              $('info').set('text',o.place.name + ',' + o.place.country.content);\n          }  \n     });  \n\n     //you can send the lat/lon as an array\n     new MooGeo([44.4333,26.1000],{\n          onComplete: function(o) {\n              $('info').set('text',o.place.name + ',' + o.place.country.content);\n          }  \n     });  \n\n     //you can grab simply the user's ip \n     new MooGeo('ipvisitor',{\n         onComplete: function(o) {\n               $('info').set('text', o.ip);\n         }  \n     });      \n\nIn your HTML source: \n\n       #HTML\n       \u003cdiv id=\"info\"\u003eLoading info...\u003c/div\u003e\n\nScreenshots\n-----------\n\n![Screenshot](http://farm5.static.flickr.com/4138/4742591148_31857e3460_b.jpg)\n![Screenshot](http://farm5.static.flickr.com/4140/4742591118_c1912f4024_b.jpg)\n![Screenshot](http://farm5.static.flickr.com/4074/4741952699_330e828822_b.jpg)\n![Screenshot](http://farm5.static.flickr.com/4081/4745513304_b417555ceb_b.jpg)\n![Screenshot](http://farm5.static.flickr.com/4135/4744892361_5b2460e506_b.jpg)\n![Screenshot](http://farm5.static.flickr.com/4138/4742102395_a0daa4e42e_b.jpg)\n       ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Fmoogeo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkphp%2Fmoogeo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Fmoogeo/lists"}