I've been making a seperate node for each tag whenever I run into this situation. It's not the best solution, but it gets the job done.
The best fix I can think of would probably require an API change, but it'd probably end up being easier on the database server in the long run. Basically, we need to use an overloading method similar to the karlsruhe schema for the shop=* and amenity=* tags to allow more than one attribute on a node/polygon. This was one of the first headaches I ran into when I first started mapping. It's a pretty classic example of a database normalization<http://en.wikipedia.org/wiki/Database_normalization>problem when you have an object with both many->many and one->many relationships. To use Thea's super wally-world example, we need to apply the following attributes: shop=supermarket shop=hairdresser shop=department_store amenity=pharmacy dispensing=yes shop=car_repair shop=optician shop=garden_center amenity=fuel amenity=fast_food cuisine=sandwich While this is pretty straightforward for a human to read, the API has no real way of handling multiple values on the same tag. A slightly more machine-readable set of attributes would read like this: shop:supermarket=yes shop:hairdresser=yes shop:department_store=yes amenity:pharmacy=dispensing (implies a yes) shop:car_repair=yes shop:optician=yes shop:garden_center=yes amenity:fuel=yes amenity:fast_food=sandwich (implies a yes) Of course, a change this big would require a ton of work to bring the existing tags up to the new spec, but as a trade-off it would make querying the database and/or compiling a vector map a lot easier. Chris On Thu, Nov 12, 2009 at 5:24 PM, Russ Nelson <nel...@crynwr.com> wrote: > We kinda have this problem all over the place: anywhere you have > multiple places of business where you enter into the building at the > same location for all of them. This could be a mall, or a Wal-Mart, > or a two-story building with a store on each level. > > We currently have no markup for accurately mapping this situation. > Earn yourself a LOLCat of Awesomeness and design markup that works. > -russ > > Thea Clay writes: > > Hi, > > I have a random question... does anyone have suggestions for how I would > correctly tag a Super Wal-Mart? I read through the wiki but there didn't > appear to be a tag that fit. > > > > The store in question has a 1.) a full grocery store with > bakery/deli/produce/dry goods, 2.) a full service hair and nail salon, 3.) > clothes and typical random household items, 4.) a pharmacy, 5.) a full > service car lube and tire shop, 6.) an opthamologist and RX glasses shop, > 7.) a garden center/nursery, 8.) a gas station and 9.) a Subway sandwich > shop. All of these sub-stores are located within the same building and are > part of Wal-Mart, not multiple stores located in a strip mall. Scary right > :) Is this tagged as one store (which it is in reality) or multiple > specialty shops? > > > > To complicate matters, there is a difference between a Super Wal-Mart > and regular Wal-Mart/Target/Big Box Store. And Super Wal-Marts all seem to > have slightly different variations on the types of shops they have in each > store. > > -- > --my blog is at http://blog.russnelson.com > Crynwr supports open source software > 521 Pleasant Valley Rd. | +1 315-323-1241 > Potsdam, NY 13676-3213 | Sheepdog > > _______________________________________________ > Talk-us mailing list > Talk-us@openstreetmap.org > http://lists.openstreetmap.org/listinfo/talk-us >
_______________________________________________ Talk-us mailing list Talk-us@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-us