Varenne
09-26-12, 13:44
I use.
OsmAnd (http://OsmAnd.net)
Free mapping application on my Android phone, and while brothels are already a POI presets in the available maps, I always missed the chance to search and display Swinger clubs.
I found a way to display them, which is a bit tricky and has some drawbacks, but works well enough for me. I'll herewith describe the procedure, in case anybody is interested. I assume that you have the latest version of OsmAnd application already installed on your Android. I also advice to download for offline use all the regions of interest (the map of Germany is splitted into individual states, so you don't have to download the whole country unless you don't need it).
1) Create the data:
First, you must extract an up to date list of swinger clubs from OSM database. Insert the following link in your internet browser:
http://overpass-api.de/api/xapi_meta?
*[amenity%3Dswingerclub]
The processing will last a few seconds, and then you will be offered the option to save a file. Save it with name "swingerclub. Osm" (or any name you like, with. Osm extension). It's a small text file (currently 120KB).
OsmAnd doesn't know what a swinger club is; therefore we must make it think that it is some feature that it already knows. OsmAnd will then mix the swinger clubs with its POIs of this feature. So we'd better choose an uncommon feature. I found "glacier" good enough for Germany, as chances of getting a real glacier in regions of interest are small. Name and location should help in case of doubt. It's inconvenient, but I haven't yet found a better way.
Open the file "swingerclub. Osm" with any text editor and replace any occurrence of the text:
<tag k="amenity" v="swingerclub"/
With:
<tag k="amenity" v="swingerclub"/<tag k="natural" v="glacier"/
And save the modified file in plain text format. Now all the swinger clubs are also glaciers in our data.
3) Index the data for OsmAnd.
Now we must transform the data in a format that OsmAnd understands. To this purpose we use a Java application named.
OsmAnd Map Creator (http://download.OsmAnd.net/latest-night-build/OsmAndMapCreator-development.zip)
Launch the application. On the top row deselect all check boxes except "Build POI Index" and "Build Address Index". Select "File. Specify working directory." and select the folder where the result will be saved. Select "File. Create. Obf from osm file" and open the file "swingerclub. Osm". If everything goes fine, after a few seconds the "Generation data" window will inform you that the process has been completed. Press OK and close the application. In the working directory you'll find a file named "swingerclub. Obf"
4) Copy the data to Android device.
Copy the file "swingerclub. Obf" to your Android device in the "OsmAnd" folder.
5) Save a search preset for swinger clubs.
Launch OsmAnd, press the "Search" button, select "Custom filter" on top of the list, press on "Natural" and check only the check box for "Glacier". Press "Close", press the "save" button (the icon at the right of the "Filter" button) , save the preset as "Swingerclubs" (or any name you like).
6) Search for swinger clubs.
Now on the search list, will appear a favorite preset "Swingerclubs" (preceded by an asterisk). Selecting it, the application will start to search for Glaciers, which we know are really swinger clubs in disguise.
7) Displaying icons for swinger clubs over the map.
Go to the map screen. Press the "option key" (left key) on your device, press the "Define view" button, press "POI", in the list select "Swingerclubs". Now the swingerclubs appear on the map highlighted with a square greyish clickable icon.
8) Displaying information about a Swinger club.
Find the entry in the search list and press. From the dialogue which opens, press on "Show POI description": when available you'll be shown additional informations (like opening times, a short description, website, phone number).
9) Actions for a Swinger club.
Once you have found a swinger club of interest, you can perform several actions, like showing it on the map, navigating, phone calling, opening the homepage.
I find OsmAnd interface not so intuitive, so I'll spend a few words. Once you have found the club in the search list, press on it. From the dialogue which opens, press "Show on map". The map will center on the club, and a small window with a grey background will appear on top. Short press within the window and a menu of all possible actions will appear. It's also possible to make the small window with a grey background appear by long pressing on the icon on the map (a short press will instead only show a subset of the information window). But since I have a big finger I always happen to hit the wrong location, so I find it faster to pass through the search list.
Hope somebody finds this guide useful, and do let me know if you find a way to make OsmAnd recognize additional POI types. For now, be careful not to head to a real glacier thinking it's a swinger club on top of a mountain!
OsmAnd (http://OsmAnd.net)
Free mapping application on my Android phone, and while brothels are already a POI presets in the available maps, I always missed the chance to search and display Swinger clubs.
I found a way to display them, which is a bit tricky and has some drawbacks, but works well enough for me. I'll herewith describe the procedure, in case anybody is interested. I assume that you have the latest version of OsmAnd application already installed on your Android. I also advice to download for offline use all the regions of interest (the map of Germany is splitted into individual states, so you don't have to download the whole country unless you don't need it).
1) Create the data:
First, you must extract an up to date list of swinger clubs from OSM database. Insert the following link in your internet browser:
http://overpass-api.de/api/xapi_meta?
*[amenity%3Dswingerclub]
The processing will last a few seconds, and then you will be offered the option to save a file. Save it with name "swingerclub. Osm" (or any name you like, with. Osm extension). It's a small text file (currently 120KB).
OsmAnd doesn't know what a swinger club is; therefore we must make it think that it is some feature that it already knows. OsmAnd will then mix the swinger clubs with its POIs of this feature. So we'd better choose an uncommon feature. I found "glacier" good enough for Germany, as chances of getting a real glacier in regions of interest are small. Name and location should help in case of doubt. It's inconvenient, but I haven't yet found a better way.
Open the file "swingerclub. Osm" with any text editor and replace any occurrence of the text:
<tag k="amenity" v="swingerclub"/
With:
<tag k="amenity" v="swingerclub"/<tag k="natural" v="glacier"/
And save the modified file in plain text format. Now all the swinger clubs are also glaciers in our data.
3) Index the data for OsmAnd.
Now we must transform the data in a format that OsmAnd understands. To this purpose we use a Java application named.
OsmAnd Map Creator (http://download.OsmAnd.net/latest-night-build/OsmAndMapCreator-development.zip)
Launch the application. On the top row deselect all check boxes except "Build POI Index" and "Build Address Index". Select "File. Specify working directory." and select the folder where the result will be saved. Select "File. Create. Obf from osm file" and open the file "swingerclub. Osm". If everything goes fine, after a few seconds the "Generation data" window will inform you that the process has been completed. Press OK and close the application. In the working directory you'll find a file named "swingerclub. Obf"
4) Copy the data to Android device.
Copy the file "swingerclub. Obf" to your Android device in the "OsmAnd" folder.
5) Save a search preset for swinger clubs.
Launch OsmAnd, press the "Search" button, select "Custom filter" on top of the list, press on "Natural" and check only the check box for "Glacier". Press "Close", press the "save" button (the icon at the right of the "Filter" button) , save the preset as "Swingerclubs" (or any name you like).
6) Search for swinger clubs.
Now on the search list, will appear a favorite preset "Swingerclubs" (preceded by an asterisk). Selecting it, the application will start to search for Glaciers, which we know are really swinger clubs in disguise.
7) Displaying icons for swinger clubs over the map.
Go to the map screen. Press the "option key" (left key) on your device, press the "Define view" button, press "POI", in the list select "Swingerclubs". Now the swingerclubs appear on the map highlighted with a square greyish clickable icon.
8) Displaying information about a Swinger club.
Find the entry in the search list and press. From the dialogue which opens, press on "Show POI description": when available you'll be shown additional informations (like opening times, a short description, website, phone number).
9) Actions for a Swinger club.
Once you have found a swinger club of interest, you can perform several actions, like showing it on the map, navigating, phone calling, opening the homepage.
I find OsmAnd interface not so intuitive, so I'll spend a few words. Once you have found the club in the search list, press on it. From the dialogue which opens, press "Show on map". The map will center on the club, and a small window with a grey background will appear on top. Short press within the window and a menu of all possible actions will appear. It's also possible to make the small window with a grey background appear by long pressing on the icon on the map (a short press will instead only show a subset of the information window). But since I have a big finger I always happen to hit the wrong location, so I find it faster to pass through the search list.
Hope somebody finds this guide useful, and do let me know if you find a way to make OsmAnd recognize additional POI types. For now, be careful not to head to a real glacier thinking it's a swinger club on top of a mountain!