{"action":"created","issue":{"url":"https://api.github.com/repos/mapzen/eraser-map/issues/137","labels_url":"https://api.github.com/repos/mapzen/eraser-map/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/mapzen/eraser-map/issues/137/comments","events_url":"https://api.github.com/repos/mapzen/eraser-map/issues/137/events","html_url":"https://github.com/mapzen/eraser-map/issues/137","id":118915268,"number":137,"title":"Destination maneuver is not using TTS formatted verbal_pre_transition_instruction","user":{"login":"dgearhart","id":7515853,"avatar_url":"https://avatars.githubusercontent.com/u/7515853?v=3","gravatar_id":"","url":"https://api.github.com/users/dgearhart","html_url":"https://github.com/dgearhart","followers_url":"https://api.github.com/users/dgearhart/followers","following_url":"https://api.github.com/users/dgearhart/following{/other_user}","gists_url":"https://api.github.com/users/dgearhart/gists{/gist_id}","starred_url":"https://api.github.com/users/dgearhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgearhart/subscriptions","organizations_url":"https://api.github.com/users/dgearhart/orgs","repos_url":"https://api.github.com/users/dgearhart/repos","events_url":"https://api.github.com/users/dgearhart/events{/privacy}","received_events_url":"https://api.github.com/users/dgearhart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapzen/eraser-map/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mapzen/eraser-map/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mapzen/eraser-map/milestones/1","html_url":"https://github.com/mapzen/eraser-map/milestones/Launch","labels_url":"https://api.github.com/repos/mapzen/eraser-map/milestones/1/labels","id":1405167,"number":1,"title":"Launch","description":"","creator":{"login":"mjcunningham","id":307758,"avatar_url":"https://avatars.githubusercontent.com/u/307758?v=3","gravatar_id":"","url":"https://api.github.com/users/mjcunningham","html_url":"https://github.com/mjcunningham","followers_url":"https://api.github.com/users/mjcunningham/followers","following_url":"https://api.github.com/users/mjcunningham/following{/other_user}","gists_url":"https://api.github.com/users/mjcunningham/gists{/gist_id}","starred_url":"https://api.github.com/users/mjcunningham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjcunningham/subscriptions","organizations_url":"https://api.github.com/users/mjcunningham/orgs","repos_url":"https://api.github.com/users/mjcunningham/repos","events_url":"https://api.github.com/users/mjcunningham/events{/privacy}","received_events_url":"https://api.github.com/users/mjcunningham/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":19,"state":"open","created_at":"2015-11-10T18:48:21Z","updated_at":"2015-12-11T21:35:39Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-11-25T20:13:50Z","updated_at":"2015-12-14T14:23:32Z","closed_at":null,"body":"* **Device name:** samsung Model: SM-G900V\r\n* **Android Version:** 5.0\r\n* **App build number:** master-481\r\n* **What did you expected to happen?** To have the house numbers of the destination address  spoken properly.\r\n* **What happened instead?** When arriving at the destination - the app called out \"nine thousand seven hundred ninety\" for the house number instead of \"ninety-seven ninety\" \r\n* **Steps to reproduce:** Here is an example url:\r\nhttp://valhalla.mapzen.com/route?api_key=YOUR_KEY_HERE&json={%22locations%22:[{%22lat%22:39.390366,%22lon%22:-76.474121,%22type%22:%22break%22,%22street%22:%223J%20Cameron%20Court%22,%22city%22:%22Baltimore%22,%22state%22:%22MD%22},{%22lat%22:39.176933,%22lon%22:-76.852356,%22type%22:%22break%22,%22street%22:%229790%20Patuxent%20Woods%20Drive%22,%22city%22:%22Columbia%22,%22state%22:%22MD%22}],%22costing%22:%22auto%22,%22directions_options%22:{%22units%22:%22miles%22}}\r\n\r\n* **produces the following destination maneuver: **\r\n{\r\n    \"begin_shape_index\": ​614,\r\n    \"time\": ​0,\r\n    \"type\": ​5,\r\n    \"end_shape_index\": ​614,\r\n    \"instruction\": \"9790 Patuxent Woods Drive is on the right.\",\r\n    \"length\": ​0.000,\r\n    \"verbal_transition_alert_instruction\": \"97 90 Patuxent Woods Drive will be on the right.\",\r\n    \"verbal_pre_transition_instruction\": \"97 90 Patuxent Woods Drive is on the right.\"\r\n}\r\nNotice the spaces in the verbal instructions\r\n"},"comment":{"url":"https://api.github.com/repos/mapzen/eraser-map/issues/comments/164450004","html_url":"https://github.com/mapzen/eraser-map/issues/137#issuecomment-164450004","issue_url":"https://api.github.com/repos/mapzen/eraser-map/issues/137","id":164450004,"user":{"login":"dgearhart","id":7515853,"avatar_url":"https://avatars.githubusercontent.com/u/7515853?v=3","gravatar_id":"","url":"https://api.github.com/users/dgearhart","html_url":"https://github.com/dgearhart","followers_url":"https://api.github.com/users/dgearhart/followers","following_url":"https://api.github.com/users/dgearhart/following{/other_user}","gists_url":"https://api.github.com/users/dgearhart/gists{/gist_id}","starred_url":"https://api.github.com/users/dgearhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgearhart/subscriptions","organizations_url":"https://api.github.com/users/dgearhart/orgs","repos_url":"https://api.github.com/users/dgearhart/repos","events_url":"https://api.github.com/users/dgearhart/events{/privacy}","received_events_url":"https://api.github.com/users/dgearhart/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T14:23:32Z","updated_at":"2015-12-14T14:23:32Z","body":"@ecgreb i found the issue - the request is setting both of the destination location attributes \"name\" and \"street\" to \"3434 Durham Road\" - for example:\r\n![screenshot from 2015-12-14 09 05 40](https://cloud.githubusercontent.com/assets/7515853/11783034/e229a546-a242-11e5-9662-16d30ff0f1b7.png)\r\n\r\nthe \"name\" should be the POI name if there is one - such as \"WalMart\"\r\nThe logic is:\r\nif there is a name then output that without formatting\r\nelse if there is a street then output that with TTS formatting for the street name\r\n\r\nwhen input is this:\r\nhttps://valhalla.mapzen.com/route?json={%22costing%22%3A%22auto%22%2C%22directions_options%22%3A{%22units%22%3A%22miles%22}%2C%22locations%22%3A[{%22lat%22%3A%2240.32239085%22%2C%22lon%22%3A%22-75.13197358%22}%2C{%22city%22%3A%22Buckingham%22%2C%22lat%22%3A%2240.347278%22%2C%22lon%22%3A%22-75.078129%22%2C%22state%22%3A%22Pennsylvania%22%2C%22street%22%3A%223434+Durham+Road%22}]}&api_key=YOUR_KEY_HERE\r\n\r\n![screenshot from 2015-12-14 09 19 43](https://cloud.githubusercontent.com/assets/7515853/11783208/e6c31c1c-a243-11e5-8e7a-e151e763d542.png)\r\n\r\nthen output is this:\r\n![screenshot from 2015-12-14 09 20 48](https://cloud.githubusercontent.com/assets/7515853/11783249/3cc4fd56-a244-11e5-886e-19c36d0e5321.png)\r\n"}}