logo separator

[mkgmap-dev] [PATCH v6] - alpha patch to support road find by name

From Mark Burton markb at ordern.com on Tue Mar 17 12:22:12 GMT 2009

v6 - Now based on r984 - Now uses separate labels for road name and ref
so you no longer get "Foo street (A123)" - this allows roads to be
searched for by name or by ref. If you are using your own style files
make sure to change the line that sets the highway name to:

# If highway has a name, use it, or if it has a ref, use that as the
name highway=* {name '${name}' | '${ref}' }

When entering an address, the road names are searchable incrementally
but the city names are not. Interestingly, if you enter a city name or
the prefix of a city name it will scroll the list of city names to the
appropriate position - weird.

As reported by a tester, if you select a city, it doesn't limit the
roads in the list to only the roads in that city, you still get
presented with a list of all the roads in the known universe.

I have good reason to believe that these two issues will only be solved
by supplying further index information (MDR file perhaps?)

So, it may be that the current functionality is the best we can hope
for until the MDR is cracked.

-----------

Hi,

The attached patch is for the current SVN trunk and it generates
the sorted road data that is required by the gps to find
roads/intersections by name.

As for the number field, I haven't thought yet how that would get its
data.

Please test this patch and report success/failure.

If it doesn't break anything for anyone, I would like to commit it
fairly soon as I think that quite a few people will be happy to have
street finding added to the trunk.

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mb-road-address-info-v6.patch
Type: text/x-patch
Size: 26735 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090317/ad7d0459/attachment.bin 


More information about the mkgmap-dev mailing list