Street names in Brazil / Proposal

753 views
Skip to first unread message

Michael Schneider

unread,
Dec 15, 2011, 12:53:59 PM12/15/11
to Osmand
Dear all,

I've been traveling Brazil and I noticed a issue that could be
improved with little effort: the rendering of residential street
names.

The Situation:
a) The majority of residential street names in Brazil is of one of
these types:
Rua : normal residential street
Avenida : longer and/or wider residential street
Travessa: short, narrow residential street

b) In addition, many street names refer to historic events like
revolution(s), independence etc. Officially, (e.g. by the postal
service), dates are spelled out ("Street twenty of september").

c) Other streets refer to important (mostly military) persons, the
rank ("General" etc) being part of the street name., but abbreviated
on the street sign.

The problem:

Currently, OsmAndMapCreator builds files that display the complete
street name on the map. Especially for short streets (Travessa) with
"date"-names, the complete Name gets very long and is only renderd at
very high zoom levels.

Example: go to google maps and look up "Travessa Dezesseis de Maio,
Rio de Janeiro, Brasil"

What do commercial map-makers do?
Some of them drop the street category (Rua/Avenida/Travessa)
altogether, some use abbreviations (R/Av/Tv). Most of the commercial
maps do not spell out dates and use "16" instead of Dezesseis.

I propose that OsmAndMapCreator does the same and shortens
"Travessa Dezesseis de Maio" to
"Tv 16 de Maio"


I would like to build a version of OsmAndMapCreator to try this out,
but I could not find the place where the street name to-be-rendered is
processed. In net/osmand/data/preparation/IndexAddressCreator.java
there is a method to normalize Street names, but this does not affect
the rendered map, but only the search index.

Where should I look in the sources?

-Mike


Victor Shcherb

unread,
Dec 15, 2011, 5:53:11 PM12/15/11
to osm...@googlegroups.com
Yes it is affected only street indexing.
The easiest way to fix would be unfortunately on the client side when the text is rendered because the things are not categorized when raw osm data is converted to map obf.

Victor

2011/12/15 Michael Schneider <mike2.s...@googlemail.com>

Michael Schneider

unread,
Dec 16, 2011, 2:06:03 PM12/16/11
to Osmand
Victor,

when the data is flowing from the raw osm (or protobuf file) to the
map.obf isn't there a way to place a filter for residential roads
somewhere?

-Mike

On Dec 15, 11:53 pm, Victor Shcherb <victor.shch...@gmail.com> wrote:
> Yes it is affected only street indexing.
> The easiest way to fix would be unfortunately on the client side when the
> text is rendered because the things are not categorized when raw osm data
> is converted to map obf.
>
> Victor
>

> 2011/12/15 Michael Schneider <mike2.schnei...@googlemail.com>

Victor Shcherb

unread,
Dec 17, 2011, 11:06:15 AM12/17/11
to osm...@googlegroups.com
Hi Mike,

I think you can find in BinaryMapCreator but there are no specific handlers there.


Victor

2011/12/16 Michael Schneider <mike2.s...@googlemail.com>

Michael Schneider

unread,
Dec 20, 2011, 1:27:34 PM12/20/11
to Osmand
Thanks. I'll try that.

On Dec 17, 5:06 pm, Victor Shcherb <victor.shch...@gmail.com> wrote:
> Hi Mike,
>
> I think you can find in BinaryMapCreator but there are no specific handlers
> there.
>
> Victor
>

> 2011/12/16 Michael Schneider <mike2.schnei...@googlemail.com>

Reply all
Reply to author
Forward
0 new messages