{"id":16274135,"url":"https://github.com/trinker/mapit","last_synced_at":"2025-04-08T16:15:11.614Z","repository":{"id":146663791,"uuid":"20670162","full_name":"trinker/mapit","owner":"trinker","description":null,"archived":false,"fork":false,"pushed_at":"2015-03-30T23:34:09.000Z","size":2784,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T12:45:15.103Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","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/trinker.png","metadata":{"files":{"readme":"README.Rmd","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-06-10T02:48:31.000Z","updated_at":"2019-03-13T03:39:33.000Z","dependencies_parsed_at":"2023-03-27T21:27:15.616Z","dependency_job_id":null,"html_url":"https://github.com/trinker/mapit","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/trinker%2Fmapit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinker%2Fmapit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinker%2Fmapit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinker%2Fmapit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trinker","download_url":"https://codeload.github.com/trinker/mapit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247878015,"owners_count":21011158,"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-10T18:27:13.958Z","updated_at":"2025-04-08T16:15:11.592Z","avatar_url":"https://github.com/trinker.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"mapit\n====\n\n[![Build Status](https://travis-ci.org/trinker/mapit.png?branch=master)](https://travis-ci.org/trinker/mapit)\n\nmapit is an R package designed to assist in mapping tasks.  Its prominent tool is the wrapper for the [Texas A \u0026 M Geoservices](geoservices.tamu.ed) that provides R based geocoding.  Users can sign up for an API key [HERE](https://geoservices.tamu.edu/Signup/).\n\n## Installation\n\nTo download the development version of mapit:\n\nDownload the [zip ball](https://github.com/trinker/mapit/zipball/master) or [tar ball](https://github.com/trinker/mapit/tarball/master), decompress and run `R CMD INSTALL` on it, or use the **devtools** package to install the development version:\n\n\n```{r, include=FALSE}\nlibrary(knitr); library(ggmap); library(mapit)\n\nopts_chunk$set(cache=FALSE, tidy=FALSE, warning=FALSE,  fig.path='inst/readme/figure/')\n\n## knitr::knit2html(\"README.Rmd\")\n```\n\n```{r, eval=FALSE}\n# install.packages(\"devtools\")\n\nlibrary(devtools)\ninstall_github(\"mapit\", \"trinker\")\n```\n\n**Note**: Windows users need [Rtools](http://www.murdoch-sutherland.com/Rtools/) and [devtools](http://CRAN.R-project.org/package=devtools) to install this way.\n\n**Note**: Mac users might be required to install the appropriate version [XTools](https://developer.apple.com/xcode/) from the [Apple Developer site](https://developer.apple.com/) in order to install the development version.  You may need to [register as an Apple developer](https://developer.apple.com/programs/register/).  An older version of XTools may also be required.\n\n## Help    \n\n[Package PDF Help Manual](https://dl.dropboxusercontent.com/u/61803503/mapit.pdf)\n\n## Contact\n\nYou are welcome to:\n* submit suggestions and bug-reports at: https://github.com/trinker/mapit/issues\n* send a pull request on: https://github.com/trinker/mapit/\n* compose a friendly e-mail to: tyler.rinker@gmail.com\n\n---\n\n# bounding_box Function\n\nThis is an R implementation of Jan Philip Matuschek's bounding box article: [*Finding Points Within a Distance of a Latitude/Longitude Using Bounding Coordinates*](http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates).\n\n\nSo here we can look at the area within one square mile of the White House:\n\n```{r}\nbounding_box(38.89768, -77.03653, 1)\n```\n\nLet's apply it.  Here's an example plotting a bounding box around the 2012 Olympic Stadium:\n\n```{r, message=FALSE}\nlibrary(ggplot2); library(ggmap)\n\nbb \u003c- bounding_box(lon = -0.016179, lat = 51.538525, 1)\n\nmapImageData \u003c- get_map(location = c(lon = -0.016179, lat = 51.538525),\n    color = \"color\",\n    source = \"google\",\n    maptype = \"hybrid\",\n    zoom = 14)\n \nggmap(mapImageData,\n    extent = \"device\",\n    ylab = \"Latitude\",\n    xlab = \"Longitude\") + \n\tgeom_rect(aes(xmin = bb[1, 1], xmax = bb[1, 2], ymin = bb[2, 1], \n \t\tymax = bb[2, 2]), color=\"red\", fill=NA, size=2) +\n\tgeom_point(data=data.frame(lon = -0.016179, lat = 51.538525), size=7, \n\t\tcolor=\"yellow\")\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrinker%2Fmapit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrinker%2Fmapit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrinker%2Fmapit/lists"}