[josm-dev] House number interpolation tool / plugin ?
Nic Roets
nroets at gmail.com
Thu Jan 27 19:04:42 GMT 2011
On Thu, Jan 27, 2011 at 7:32 PM, Lambertus <osm at na1400.info> wrote:
> Hi Nic,
>
> A while ago I've done a bit of work on the terracer plugin (lets you terrace
> buildings and easilly add housenumbers to buildings). I think I should be
> able to make what you want.
>
> How about: one adds the addr:housenumber tags to the two outer nodes, select
> both nodes including a street then hit the key combination that opens a
> screen which lets you add the rest of the addr:* values if you want and/or
> hit enter to have the plugin create the intermediate nodes, save the values
> to the nodes and also add the address relation.
Hello Lambertus,
I'm don't want to break the interpolated way down into nodes at this
stage. If an inaccuracy creeps in, then any subsequent fix may require
many nodes to be moved.
I also don't want dialogs. Otherwise I will never finish. In Josm, is
there a way to bind a key combination to a certain tag ? I want one
key combination for addr:interpolation = even and another one for
addr:interpolation = odd.
> This is very similar behavior like the terracer plugin. What do you think of
> that?
>
> Fidling with the math to get the interpolated node positions right with a
> curvy road will be the biggest challenge I reckon.
I got a lot of experience with 2D vectors over the last few years.
Equirectangular projection. Perpendicular vectors, projecting a point
into a line without trig, testing that angles are within certain
ranges with trig, etc.
>
> On 2011-01-22 16:46, Nic Roets wrote:
>>
>> Hello,
>>
>> I live in an area where very few house numbers have been collected. So
>> I made a couple of experiments.
>>
>> One of them is an Android App called KeypadMapper that allows me to
>> type in housenumbers while I cycle, at a rate of 300 per hour. The
>> only disadvantage is that it does not do interpolation. So if the
>> houses are on both sides of the street and are 30 meters apart, I
>> cannot cycle faster than 300 / 2 * 30 = 4,5 km/h or I will miss some.
>>
>> http://help.openstreetmap.org/questions/1385/what-is-the-best-mobile-application-for-large-scale-house-number-collection
>>
>> The other experiment was to collect only the numbers at the end points
>> and then draw interpolation ways. The good thing is that we already
>> have a great open source geocoder that supports it, namely Nominatim.
>> http://www.openstreetmap.org/?lat=-25.77512&lon=28.2892&zoom=17&layers=M
>>
>> My only complaint is that it takes a lot of work to add the
>> interpolation ways. So I want to ask anyone on this list with to write
>> a plugin for Josm to speed up the process. It would be ideal if I can
>> just:
>> 1. Select 2 nodes that are tagged with "addr:housenumber" set and
>> 2. Hit a button or key combination for "Interpolate"
>> The plugin will then
>> 3. For each node, calculate the nearest way tagged as "highway". If it
>> was 2 different ways, the plugin can abort or try to handle it more
>> intelligently.
>> 4. Generate a way between the two nodes that runs parallel runs to that
>> way.
>> 5. Automatically set the "odd" or "even" tag to match the contents of
>> the "addr:housenumber" tags on the nodes.
>>
>> I know I sound lazy. But a tool like this will save me hundreds of man
>> hours over the next couple of years. The area I want to cover includes
>> over 20,000 streets and over 100,000 houses.
>>
>> Regards,
>> Nic
>>
>> _______________________________________________
>> josm-dev mailing list
>> josm-dev at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/josm-dev
>
>
> _______________________________________________
> josm-dev mailing list
> josm-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/josm-dev
>
More information about the josm-dev
mailing list