{"action":"opened","number":207,"pull_request":{"url":"https://api.github.com/repos/mapbox/carmen/pulls/207","id":27939215,"html_url":"https://github.com/mapbox/carmen/pull/207","diff_url":"https://github.com/mapbox/carmen/pull/207.diff","patch_url":"https://github.com/mapbox/carmen/pull/207.patch","issue_url":"https://api.github.com/repos/mapbox/carmen/issues/207","number":207,"state":"open","locked":false,"title":"Add token replacement module","user":{"login":"karenzshea","id":5521326,"avatar_url":"https://avatars.githubusercontent.com/u/5521326?v=3","gravatar_id":"","url":"https://api.github.com/users/karenzshea","html_url":"https://github.com/karenzshea","followers_url":"https://api.github.com/users/karenzshea/followers","following_url":"https://api.github.com/users/karenzshea/following{/other_user}","gists_url":"https://api.github.com/users/karenzshea/gists{/gist_id}","starred_url":"https://api.github.com/users/karenzshea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karenzshea/subscriptions","organizations_url":"https://api.github.com/users/karenzshea/orgs","repos_url":"https://api.github.com/users/karenzshea/repos","events_url":"https://api.github.com/users/karenzshea/events{/privacy}","received_events_url":"https://api.github.com/users/karenzshea/received_events","type":"User","site_admin":false},"body":"From [https://github.com/mapbox/carmen/issues/201]\r\n\r\nThese changes add a `replaceToken` module, and a separate `createReplacer` module that creates a regex object from `geocoder_tokens` for performance reasons. \r\n\r\nImplemented, replaceToken happens before query tokenization in anticipation of weird tokens like `rond-point` and `Lot #`\r\n\r\n<img src=\"http://i.gifs.com/Al6.gif\" height=100/>","created_at":"2015-01-23T17:12:29Z","updated_at":"2015-01-23T17:12:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mapbox/carmen/pulls/207/commits","review_comments_url":"https://api.github.com/repos/mapbox/carmen/pulls/207/comments","review_comment_url":"https://api.github.com/repos/mapbox/carmen/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mapbox/carmen/issues/207/comments","statuses_url":"https://api.github.com/repos/mapbox/carmen/statuses/ab9830362bd7ebb196627a0585cf3ba79d2b86ee","head":{"label":"mapbox:lets-get-weird","ref":"lets-get-weird","sha":"ab9830362bd7ebb196627a0585cf3ba79d2b86ee","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":4587149,"name":"carmen","full_name":"mapbox/carmen","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/carmen","description":"Mapnik vector tile-based geocoder with support for swappable data sources","fork":false,"url":"https://api.github.com/repos/mapbox/carmen","forks_url":"https://api.github.com/repos/mapbox/carmen/forks","keys_url":"https://api.github.com/repos/mapbox/carmen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/carmen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/carmen/teams","hooks_url":"https://api.github.com/repos/mapbox/carmen/hooks","issue_events_url":"https://api.github.com/repos/mapbox/carmen/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/carmen/events","assignees_url":"https://api.github.com/repos/mapbox/carmen/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/carmen/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/carmen/tags","blobs_url":"https://api.github.com/repos/mapbox/carmen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/carmen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/carmen/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/carmen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/carmen/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/carmen/languages","stargazers_url":"https://api.github.com/repos/mapbox/carmen/stargazers","contributors_url":"https://api.github.com/repos/mapbox/carmen/contributors","subscribers_url":"https://api.github.com/repos/mapbox/carmen/subscribers","subscription_url":"https://api.github.com/repos/mapbox/carmen/subscription","commits_url":"https://api.github.com/repos/mapbox/carmen/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/carmen/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/carmen/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/carmen/issues/comments/{number}","contents_url":"https://api.github.com/repos/mapbox/carmen/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/carmen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/carmen/merges","archive_url":"https://api.github.com/repos/mapbox/carmen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/carmen/downloads","issues_url":"https://api.github.com/repos/mapbox/carmen/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/carmen/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/carmen/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/carmen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/carmen/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/carmen/releases{/id}","created_at":"2012-06-07T15:50:21Z","updated_at":"2015-01-23T16:46:36Z","pushed_at":"2015-01-23T17:08:24Z","git_url":"git://github.com/mapbox/carmen.git","ssh_url":"git@github.com:mapbox/carmen.git","clone_url":"https://github.com/mapbox/carmen.git","svn_url":"https://github.com/mapbox/carmen","homepage":"","size":17394,"stargazers_count":69,"watchers_count":69,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":28,"forks":13,"open_issues":28,"watchers":69,"default_branch":"master"}},"base":{"label":"mapbox:master","ref":"master","sha":"d4894770697946360fb07e2af6329ce1ecbe27f8","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":4587149,"name":"carmen","full_name":"mapbox/carmen","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/carmen","description":"Mapnik vector tile-based geocoder with support for swappable data sources","fork":false,"url":"https://api.github.com/repos/mapbox/carmen","forks_url":"https://api.github.com/repos/mapbox/carmen/forks","keys_url":"https://api.github.com/repos/mapbox/carmen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/carmen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/carmen/teams","hooks_url":"https://api.github.com/repos/mapbox/carmen/hooks","issue_events_url":"https://api.github.com/repos/mapbox/carmen/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/carmen/events","assignees_url":"https://api.github.com/repos/mapbox/carmen/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/carmen/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/carmen/tags","blobs_url":"https://api.github.com/repos/mapbox/carmen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/carmen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/carmen/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/carmen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/carmen/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/carmen/languages","stargazers_url":"https://api.github.com/repos/mapbox/carmen/stargazers","contributors_url":"https://api.github.com/repos/mapbox/carmen/contributors","subscribers_url":"https://api.github.com/repos/mapbox/carmen/subscribers","subscription_url":"https://api.github.com/repos/mapbox/carmen/subscription","commits_url":"https://api.github.com/repos/mapbox/carmen/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/carmen/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/carmen/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/carmen/issues/comments/{number}","contents_url":"https://api.github.com/repos/mapbox/carmen/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/carmen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/carmen/merges","archive_url":"https://api.github.com/repos/mapbox/carmen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/carmen/downloads","issues_url":"https://api.github.com/repos/mapbox/carmen/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/carmen/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/carmen/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/carmen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/carmen/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/carmen/releases{/id}","created_at":"2012-06-07T15:50:21Z","updated_at":"2015-01-23T16:46:36Z","pushed_at":"2015-01-23T17:08:24Z","git_url":"git://github.com/mapbox/carmen.git","ssh_url":"git@github.com:mapbox/carmen.git","clone_url":"https://github.com/mapbox/carmen.git","svn_url":"https://github.com/mapbox/carmen","homepage":"","size":17394,"stargazers_count":69,"watchers_count":69,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":28,"forks":13,"open_issues":28,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapbox/carmen/pulls/207"},"html":{"href":"https://github.com/mapbox/carmen/pull/207"},"issue":{"href":"https://api.github.com/repos/mapbox/carmen/issues/207"},"comments":{"href":"https://api.github.com/repos/mapbox/carmen/issues/207/comments"},"review_comments":{"href":"https://api.github.com/repos/mapbox/carmen/pulls/207/comments"},"review_comment":{"href":"https://api.github.com/repos/mapbox/carmen/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mapbox/carmen/pulls/207/commits"},"statuses":{"href":"https://api.github.com/repos/mapbox/carmen/statuses/ab9830362bd7ebb196627a0585cf3ba79d2b86ee"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":12,"additions":532,"deletions":75,"changed_files":14}}