Skip to content

Commit

Permalink
update to JOSM 12735
Browse files Browse the repository at this point in the history
  • Loading branch information
don-vip committed Nov 21, 2017
1 parent 6834647 commit dad2a1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- enter the SVN commit message -->
<property name="commit.message" value="Commit message"/>
<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
<property name="plugin.main.version" value="12643"/>
<property name="plugin.main.version" value="12735"/>

<!-- Configure these properties (replace "..." accordingly).
See http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import org.openstreetmap.josm.command.ChangeCommand;
import org.openstreetmap.josm.command.Command;
import org.openstreetmap.josm.command.SequenceCommand;
import org.openstreetmap.josm.data.coor.CoordinateFormat;
import org.openstreetmap.josm.data.coor.LatLon;
import org.openstreetmap.josm.data.coor.conversion.DecimalDegreesCoordinateFormat;
import org.openstreetmap.josm.data.osm.Node;
import org.openstreetmap.josm.data.osm.OsmPrimitive;
import org.openstreetmap.josm.data.osm.Relation;
Expand Down Expand Up @@ -88,8 +88,8 @@ public static OsmPrimitive loadAddress(OsmPrimitive selectedObject){

try {
URL url = new URL(baseUrl
+ "?lat=" + URLEncoder.encode(center.latToString(CoordinateFormat.DECIMAL_DEGREES), "UTF-8")
+ "&lon=" + URLEncoder.encode(center.lonToString(CoordinateFormat.DECIMAL_DEGREES), "UTF-8")
+ "?lat=" + URLEncoder.encode(DecimalDegreesCoordinateFormat.INSTANCE.latToString(center), "UTF-8")
+ "&lon=" + URLEncoder.encode(DecimalDegreesCoordinateFormat.INSTANCE.lonToString(center), "UTF-8")
+ "&distance=30"
+ "&limit=1"
+ "&epsg=4326"
Expand Down

0 comments on commit dad2a1a

Please sign in to comment.