FR:Gosmore

From OpenStreetMap Wiki
Jump to: navigation, search
Help
Available languages
English Français

Traduction en cours ! (ajouter le Template approprié... s'il existe). Version basée sur la version EN d'octobre 2008.

Gosmore Screenshot

Gosmore est un logiciel de routage et de visualisation de données OSM XML comme le planet.osm, [1] ou [2].

Contents

Fonctionnalités

Téléchargement et lancement

Android

Aller directement ici : Android Market

Linux, FreeBSD, MacOSX

svn co http://svn.openstreetmap.org/applications/rendering/gosmore/
cd gosmore
make
bzcat planet-...osm.bz2 | ./gosmore rebuild 

Cette dernière étape peut prendre près de 5 heures pour le fichier planétaire (toute la planète) sur un ordinateur équipé d'un processeur Intel Dual Core en 64 bits avec 2 Go de mémoire vive et 20 Go d'espace disque dur de libre.

Sous FreeBSD et MacOSX, vous aurez besoin de l'outil GNU Make (gmake) pour construire le fichier Makefile au format GNU Make au lieu du format traditionnel BSD Make.

Sous MacOSX, vous devrez installer le serveur X11, les outils de développement et probablement des paquets additionnels qui ne sont pas listés ici mais sont surement nécessaires pour une compilation réussie. Nous vous laissons la liberté de les ajouter ici s'ils ne sont pas listés.

Après avoir construit l'application, elle sera exécutée correctement sur une machine de 256 Mo de mémoire vive.

Une installation alternative existe en utilisant les paquets Debian mais ils sont probablement obsolètes.

Windows CE / Windows Mobile

Alternatively build it with eMbedded Visual C++ or cegcc.

Windows

Download gosmore.zip from the same site as above. Unzip it to a directory somewhere on your machine. No registry settings are used.

Maemo

maemo devices from Nokia: See Gosmore for Maemo.

Gosmore on WinCE

GTK+ Interface (Linux / Windows)

The main window consists of

Windows CE Interface

Gosmore starts in menu mode. You can cycle through the options with the 'O' button and change (or activate) them using the '+' and '-' buttons:

  1. To add a node, activate the AddWayOrNode option and click on the location of the node.
  2. If you then click on 'O', a dialog will appear where you can enter the name and type of the node. To add a way, follow the same procedure, but click multiple times on the map.
  3. Exit gosmore and sync with your PC.
  4. Open '\My Documents\YYMMDD-HHMMSS.osm' and '\My Documents\YYMMDD-HHMMSS.gpx' with JOSM. If gosmore.opt was found in the same directory as gosm_arm.exe, then all files will be written to that directory instead.
  5. Download data to the same layer.
  6. Edit. To find the changes pending, click on search and enter 'id:'.
  7. Upload

The last display in the cycle is the map mode. There you can use the '+' and '-' buttons to zoom or click on the map to pan.

On phones and other devices without a mouse and a touchscreen, use the arrow keys and '9' as '+', '8' as '-' and '0' as 'O'.

Cgi Routing Interface

Set the QUERY_STRING environment variable to e.g. "flat=-33.928889&flon=18.417222&tlat=-25.778618&tlon=28.290682&fast=0&v=motorcar" and run the executable. The parameters must be in this exact order.

Gosmore will produce one line for each node. The first 2 fields are the latitude and longitude. The third field is the junction type : Lower case when only 2 segments connect to that node (trivial junction), upper case otherwise. 't' for traffic_signals, 'm' for mini_roundabout and 'j' otherwise.

Fourth field is 'v' of the way. Fifth field is name (if present, otherwise ref).

If no route was found, the output will start with a 'jump' line followed by the best incomplete route.

Visit the openstreetmap web routing page.

Devices

Device CommPort BaudRate Notes Date
Binatone Carrera X350 7 38400 Works well. Problem: No search window 2008-08-22
ETEN M500 (w/BT GPS) 7 4800 Works well, but some of the dialogs don't work very well in a portrait-orientated screen 2008-07-26
HP iPaq hw6915 7 38400 Works well. 2008-08-22
HTC Kaiser/P4550/TyTN II 4 4800 Seems to work fine, though some dialogues don't work that well in portrait orientation, and switching orientations once the program is already open (by sliding the keyboard) appears not to be supported. 2008-09-09
HTC P3600 9 9600 Taskbar gets a little bit in the way 2008-06-28
JNC 578 7 38400 Works well. 2008-08-20
Lark 35.3 (w/SiRFstar III) 1 9600 Works fine 2008-08-08
Mio C230 (running MioPocket) 2 4800 Works well. 2008-08-20
Mio P350 4 4800 Works well. 2008-09-03
Mio A510 Digiwalker / PDA with WM 5 2 57600 Seems to work ok 2008-09-14
MyRoad 4308T 2 38400 Works fine 2008-07-15
Navigon Transonic 6000T 2 4800 Works well. Apparently the same hardware as Medion 510T, but I haven't verified this. 2008-09-02
Navigon 5110  ?  ? Only works when .pak files of 23MB and smaller and only after reducing the storage memory. 2008-08-31
TGPS 374 1 0 Works perfectly 2008-08-20
XRoad v4150 5 9600 Use SurfTech first to ensure that GPS is talking NMEA [3] 2008-08-20

Tips and tricks

cat MyArea.osm | ./gosmore rebuild
 mv gosmore.pak master.pak
 bzcat planet...osm.bz2 | ./gosmore rebuild -83 -30 83 179

Bugs

In order of importance:

Internals

Gosmore makes extensive use of sorted arrays, integers and fixed point numbers. See the current file format [4]

The source code has a low complexity (measured by Halstead Metric or SLOC), reducing the number of bugs.

Why isn't there an OpenMoko, Java, Nokia, iPhone, OpenTom or Palm port ?

Because

Personal tools
Namespaces
Variants
Actions
site
Toolbox