{"action":"created","issue":{"url":"https://api.github.com/repos/mapsforge/mapsforge/issues/1041","repository_url":"https://api.github.com/repos/mapsforge/mapsforge","labels_url":"https://api.github.com/repos/mapsforge/mapsforge/issues/1041/labels{/name}","comments_url":"https://api.github.com/repos/mapsforge/mapsforge/issues/1041/comments","events_url":"https://api.github.com/repos/mapsforge/mapsforge/issues/1041/events","html_url":"https://github.com/mapsforge/mapsforge/issues/1041","id":303210092,"number":1041,"title":"Allow arbitrary keys to be used for <caption>","user":{"login":"b3nn0","id":1858945,"avatar_url":"https://avatars0.githubusercontent.com/u/1858945?v=4","gravatar_id":"","url":"https://api.github.com/users/b3nn0","html_url":"https://github.com/b3nn0","followers_url":"https://api.github.com/users/b3nn0/followers","following_url":"https://api.github.com/users/b3nn0/following{/other_user}","gists_url":"https://api.github.com/users/b3nn0/gists{/gist_id}","starred_url":"https://api.github.com/users/b3nn0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b3nn0/subscriptions","organizations_url":"https://api.github.com/users/b3nn0/orgs","repos_url":"https://api.github.com/users/b3nn0/repos","events_url":"https://api.github.com/users/b3nn0/events{/privacy}","received_events_url":"https://api.github.com/users/b3nn0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-07T18:29:01Z","updated_at":"2018-03-07T18:35:46Z","closed_at":null,"author_association":"NONE","body":"Hi\r\nSince File format version 5, we now finally have the ability to place arbitrary values into the map file, only by providing a key. The value will then be stored in the map file.\r\n\r\nThe next step - which should be quite simple to achieve - would be to also allow these arbitrary values as captions.\r\nRight now, TextKey.java will only accept these keys:\r\n```\r\n    private static final String KEY_ELEVATION = \"ele\";\r\n    private static final String KEY_HOUSENUMBER = \"addr:housenumber\";\r\n    private static final String KEY_NAME = \"name\";\r\n    private static final String KEY_REF = \"ref\";\r\n```\r\nIf any other key is to be used for caption, it will do a\r\n` throw new IllegalArgumentException(\"invalid key: \" + key);`\r\n\r\nHowever, since the tags are already there, it would be very easy to use arbitrary keys as caption,\r\nsimply by, instead of throwing an exception, returning new TextKey(key).\r\nOr, if we wan't to be a bit smarter and not do too many allocations, using a static map, mapping a key string to TextKey instances.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mapsforge/mapsforge/issues/comments/371238465","html_url":"https://github.com/mapsforge/mapsforge/issues/1041#issuecomment-371238465","issue_url":"https://api.github.com/repos/mapsforge/mapsforge/issues/1041","id":371238465,"user":{"login":"devemux86","id":3484020,"avatar_url":"https://avatars1.githubusercontent.com/u/3484020?v=4","gravatar_id":"","url":"https://api.github.com/users/devemux86","html_url":"https://github.com/devemux86","followers_url":"https://api.github.com/users/devemux86/followers","following_url":"https://api.github.com/users/devemux86/following{/other_user}","gists_url":"https://api.github.com/users/devemux86/gists{/gist_id}","starred_url":"https://api.github.com/users/devemux86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devemux86/subscriptions","organizations_url":"https://api.github.com/users/devemux86/orgs","repos_url":"https://api.github.com/users/devemux86/repos","events_url":"https://api.github.com/users/devemux86/events{/privacy}","received_events_url":"https://api.github.com/users/devemux86/received_events","type":"User","site_admin":false},"created_at":"2018-03-07T18:35:46Z","updated_at":"2018-03-07T18:35:46Z","author_association":"COLLABORATOR","body":"[Map file format specification](https://github.com/mapsforge/mapsforge/blob/master/docs/Specification-Binary-Map-File.md) defines specific space in poi and way data for those fields."}}
{"actor":{"display_login":"devemux86"}}