Using an iPhone as a GPS for JOSM (on Windows)
If you wanna see your current position in JOSM (Java OpenStreetMap Editor), but your mobile computing device lacks a GPS chip, this could help:
You need:
an iOS device
enabled tethering
the GPS 2 IP app
installed JOSM
We're going to install gpsd (and cygwin, socat) on windows and connect it with your iOS device and JOSM.
First, download and install the GPS 2 IP app to your iOS device. Enable tethering, then open the app and use following settings:
NMEA messages to send:
GGA
RMC
Connection method: Socket
iPhone IP selection: Hotspot
Then, install cygwin: Download and run the setup-x86.exe and use the defaults until you reach the Select Packages step. (you'll have to use the 32 bit version, else you have to compile gpsd yourself)
Search for socat, open the Net category and mark it for installation with one click. Then continue with next. A lot of dependencies will be installed, too.
Now download the gpsd binaries from http://home.arcor.de/ulf.lamping/gpsd/gpsd.html (look for gpsd-2.37-1-win32-bin.zip). Extract the contents of that .zip directly into your cygwin\bin dir.
Open the cygwin terminal twice. In the first one, input
socat GOPEN:/dev/gps,ignoreeof TCP:172.20.10.1:11123
(where 172.20.10.1 is the IP displayed by the app).
In the second one, run
gpsd -n -N -D 1 /dev/gps
You can check if everything works correctly by opening a third cygwin terminal and typing gpspipe -w.
Now, open JOSM and install the LiveGPS plugin (Go to Edit > Preferences > Plugins and look for LiveGPS. Enable it, then close the window with OK. The plugin gets downloaded and JOSM restarts itself.
Enable the display of the gps status information panel by enabling Windows > LiveGPS. Then activate the gps position tracking with GPS > Capture GPS track. If everything works correctly, the status field in the panel should read Connected and a new Live GPS Layer should appear in your layer list.
Have fun :)










