Skip to content

Commit

Permalink
Fix a bug where 'place' and 'street' addresses were not correctly dis…
Browse files Browse the repository at this point in the history
…tinguished.
  • Loading branch information
thomaskonrad committed Mar 28, 2017
1 parent 72b7b19 commit 0b4c165
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -121,7 +121,7 @@ public static OsmPrimitive loadAddress(OsmPrimitive selectedObject){
newObject.put("addr:city", city);
newObject.put("addr:postcode", postcode);

if ((firstAddress.get("address_type")).equals("place")) {
if ((firstAddress.getString("address_type")).equals("place")) {
streetOrPlace = firstAddress.getString("street");
newObject.put("addr:place", streetOrPlace);
} else {
Expand Down

0 comments on commit 0b4c165

Please sign in to comment.