Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#18590 closed enhancement (fixed)

[PATCH] AddressesTest should split addresses on common delimiters (`,` and `;`)

Reported by: taylor.smock Owned by: team
Priority: normal Milestone: 20.01
Component: Core validator Version:
Keywords: addresses Cc:

Description (last modified by taylor.smock)

https://wiki.openstreetmap.org/wiki/Addresses#Buildings_with_multiple_house_numbers

Example:
addr:housenumber=1,3 addr:street=Example Road vs addr:housenumber=1 addr:street=Example Road + addr:housenumber=3 + addr:street=Example Road.

Attachments (3)

18590.patch (14.8 KB ) - added by taylor.smock 5 years ago.
Expand , and ; addresses
18590.2.patch (14.8 KB ) - added by taylor.smock 5 years ago.
getSimplifiedAddress -> getSimplifiedAddresses
18590.3.patch (14.8 KB ) - added by taylor.smock 5 years ago.

Download all attachments as: .zip

Change History (13)

by taylor.smock, 5 years ago

Attachment: 18590.patch added

Expand , and ; addresses

comment:1 by taylor.smock, 5 years ago

Description: modified (diff)

comment:2 by Don-vip, 5 years ago

Shouldn't it be renamed to getSimplifiedAddresses?

by taylor.smock, 5 years ago

Attachment: 18590.2.patch added

getSimplifiedAddress -> getSimplifiedAddresses

in reply to:  2 comment:3 by taylor.smock, 5 years ago

Replying to Don-vip:

Shouldn't it be renamed to getSimplifiedAddresses?

Yep. Plural makes more sense.

comment:4 by Don-vip, 5 years ago

Milestone: 20.01

comment:5 by Don-vip, 5 years ago

The patch doesn't apply nicely.

comment:6 by taylor.smock, 5 years ago

It applied cleanly for me. I'll post another one.

by taylor.smock, 5 years ago

Attachment: 18590.3.patch added

in reply to:  6 comment:7 by taylor.smock, 5 years ago

Replying to taylor.smock:

It applied cleanly for me. I'll post another one.

I'm wondering if it is due to me manually editing it, and your patch method doing something different with whitespace? My text editor trims trailing whitespace by default.

comment:8 by Don-vip, 5 years ago

I use Eclipse to apply the patches.

comment:9 by Don-vip, 5 years ago

Resolution: fixed
Status: newclosed

In 15745/josm:

fix #18590 - AddressesTest should split addresses on common delimiters (, and ;) (patch by taylor.smock, modified)

in reply to:  8 comment:10 by taylor.smock, 5 years ago

Replying to Don-vip:

I use Eclipse to apply the patches.

OK. I'll try to remember to test with Eclipse in the future -- I've been using patch -p0 < ${patchfile} in the JOSM source directory when I've said "works for me", and then use that to get a new patch which seems to work for you most of the time.
I suspect that it is a whitespace issue when I manually edit the patches, where patch ignores the whitespace differences and Eclipse doesn't.

Thanks.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.