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

Last change on this file since 30745 was 30373, checked in by mkyral, 10 years ago

PointInfo: Add more external links, nicer icons.

File size: 2.0 KB
Line 
1![](http://www.kyralovi.cz/tmp/josm/pointInfo_20140327.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 on external site
33 * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/copy-tags.png)] Copy tags to clipboard
34 * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/create-addr.png)] Create an address point on position where was clicked
35 * [![](https://raw.githubusercontent.com/mkyral/josm-pointInfo/master/images/dialogs/create-addr-ruian.png)] Create an address point on position defined in RUIAN
36
37---
38###The interface:
39
40- Input is position, output html string that is shown on message.
41- Optionally you can define special links (file://...) that will be sent back to the module to the performAction method
42
43```java
44
45 /**
46 * Get a information about given position from external database.
47 * @param pos Position on the map
48 */
49 public void prepareData(LatLon pos) {
50 }
51
52 /**
53 * Return Html text representation
54 * @return String htmlText
55 */
56 public String getHtml() {
57 }
58
59 /**
60 * Perform given action
61 * e.g.: copy tags to clipboard
62 * @param act Action to be performed
63 */
64 public void performAction(String act) {
65 }
66
67```
Note: See TracBrowser for help on using the repository browser.