Changeset 30448 in osm for applications/editors/josm/plugins/wikipedia/src
- Timestamp:
- 2014-05-14T19:19:40+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaApp.java
r30125 r30448 43 43 final String bbox = min.lon() + "," + min.lat() + "," + max.lon() + "," + max.lat(); 44 44 // construct url 45 final String url = "http ://toolserver.org/~kolossos/geoworld/marks.php?"45 final String url = "https://tools.wmflabs.org/wp-world/marks.php?" 46 46 + "bbox=" + bbox + "&LANG=" + wikipediaLang; 47 47 System.out.println("Wikipedia: GET " + url); … … 73 73 static List<WikipediaEntry> getEntriesFromCategory(String wikipediaLang, String category, int depth) { 74 74 try { 75 final String url = "http ://tools.wmflabs.org/cats-php/"75 final String url = "https://tools.wmflabs.org/cats-php/" 76 76 + "?lang=" + wikipediaLang 77 77 + "&depth=" + depth … … 108 108 Map<String, Boolean> status = new HashMap<String, Boolean>(); 109 109 if (!articleNames.isEmpty()) { 110 final String url = "http ://toolserver.org/~master/osmjson/getGeoJSON.php?action=check"110 final String url = "https://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?action=check" 111 111 + "&lang=" + wikipediaLang; 112 112 System.out.println("Wikipedia: POST " + url + " " + articleNames); … … 163 163 try { 164 164 Collection<WikipediaLangArticle> r = new ArrayList<WikipediaLangArticle>(); 165 final String url = "http ://" + wikipediaLang + ".wikipedia.org/w/api.php" +165 final String url = "https://" + wikipediaLang + ".wikipedia.org/w/api.php" + 166 166 "?action=query" + 167 167 "&prop=langlinks" + … … 294 294 private void updateWiwosmStatus() { 295 295 try { 296 final String url = "http ://toolserver.org/~master/osmjson/getGeoJSON.php?action=check"296 final String url = "https://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?action=check" 297 297 + "&lang=" + wikipediaLang 298 298 + "&article=" + encodeURL(wikipediaArticle); … … 314 314 315 315 public String getBrowserUrl() { 316 return "http ://" + wikipediaLang + ".wikipedia.org/wiki/"316 return "https://" + wikipediaLang + ".wikipedia.org/wiki/" 317 317 + encodeURL(wikipediaArticle.replace(" ", "_")); 318 318 }
Note:
See TracChangeset
for help on using the changeset viewer.