source: osm/applications/editors/josm/plugins/pointInfo/README.md@ 33499

Last change on this file since 33499 was 33131, checked in by mkyral, 8 years ago

PointInfo: add missing files, update screenshot in readme.

File size: 2.3 KB
Line 
1![](http://www.kyralovi.cz/tmp/josm/pointInfo_20170128.png)
2
3---
4
5# PointInfo plugin
6
7This plugin shows all available information for clicked point from external database.
8There is only a Czech RUIAN module available at this moment.
9
10Plugin could be easy extend to show another data source.
11
12##Author
13
14 * Marián Kyral <mkyral@email.cz>
15
16##Websites
17
18 * OSM wiki - not available yet
19 * [JOSM svn](https://trac.openstreetmap.org/browser/subversion/applications/editors/josm/plugins/pointInfo)
20 * [Github](https://github.com/mkyral/josm-pointInfo)
21
22##Licence:
23
24 * GPL v2 or later
25
26---
27###The RUIAN module
28
29 * Shows data about building, addresses, streets, parcels and cadastral area from Czech RUIAN registry (http://wiki.openstreetmap.org/wiki/RUIAN)
30
31 * Additional actions are available :
32 * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/open-external-link.png)] Open external site
33 * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/open-external-link-kn.png)] Open external site (Katastr nemovitostí)
34 * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/copy-tags.png)] Copy tags to clipboard
35 * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/create-addr.png)] Create an address point on position where was clicked
36 * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/create-addr-ruian.png)] Create an address point on position defined in RUIAN
37 * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/create-bug-report.png)] Report an issue with building
38
39---
40###The interface:
41
42- Input is position, output html string that is shown on message.
43- Optionally you can define special links (file://...) that will be sent back to the module to the performAction method
44
45```java
46
47 /**
48 * Get a information about given position from external database.
49 * @param pos Position on the map
50 */
51 public void prepareData(LatLon pos) {
52 }
53
54 /**
55 * Return Html text representation
56 * @return String htmlText
57 */
58 public String getHtml() {
59 }
60
61 /**
62 * Perform given action
63 * e.g.: copy tags to clipboard
64 * @param act Action to be performed
65 */
66 public void performAction(String act) {
67 }
68
69```
Note: See TracBrowser for help on using the repository browser.