OS OpenSpace [logo]

OS OpenSpace Forum » OS OpenSpace » Application Gallery

Thread: Where is the path demo

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 34 - Pages: 3 [ Previous | 1 2 3 ] - Last Post: 07-Oct-2009 17:34 by: chadwickBill
azolnai

Posts: 1
Registered: 13/06/08
Re: Where is the path demo
Posted: 13-Jun-2008 14:17   in response to: EYDramblers
  Click to reply to this thread Reply

http://tinyurl.com/2w4u6h.
Hi, your web link 404's, please advise. Thanks, Andrew

EYDramblers

Posts: 8
Registered: 05/02/08
Re: Where is the path demo
Posted: 16-Aug-2008 20:05   in response to: azolnai
  Click to reply to this thread Reply

> http://tinyurl.com/2w4u6h.
> Hi, your web link 404's, please advise. Thanks, Andrew

Sorry, just noticed your message, thanks for alerting me. More content has been added - try http://tinyurl.com/5vcjh2. Tom

chadwickBill

Posts: 390
Registered: 07/02/08
Where is the path demo + GPX to GeoJson conversion
Posted: 23-Aug-2008 14:03   in response to: EYDramblers
  Click to reply to this thread Reply

Hi,

To enable cross domain AJAX reading of GPX files, I have put together
a GPX to GeoJson ( http://www.geojson.org ) converter REST web service

You can see the converter in action here :-

http://wheresthepath.googlepages.com/wheresthepath.htm?gpx=http://wheresthepath.googlepages.com/swinleyforest.gpx

I have used a FeatureCollection to represent the set of waypoints,
routes and tracks in the GPX file. The FeatureCollection's 'properties' include the
gpxversion and creator elements from the GPX file. Then I have used:

1) 'Point's for way-points with a set of 'properties' corresponding to
the waypoint's descriptive elements (name etc)

2) 'MultiLineString' for a track (one string of points per track
segment) with a set of 'properties' corresponding to the track's descriptive elements

3) 'GeometryCollection' for a route (the collection holds the set of
route points as 'Point's) with a set of properties corresponding to
the route's descriptive elements.

The Route presents a bit of a problem. I have put individual route-node
properties on each GeometryCollection child - good JSON but outside
the GeoJson spec. These properties are key for a route e.g.
"cmt":"turn left for the pub". I had to use a GeometryCollection for
the Route as a FeatureCollection can't contain a FeatureCollection.
Sadly the OpenLayers 2.5 GeoJson parser (in OpenSpace) ignores the 'properties' on the GeometryCollection members.

You can see example track+waypoint output here

http://gpx2geojson.appspot.com?gpxurl=http://wheresthepath.googlepages.com/swinleyforest.gpx&mime=text/plain

and example route output here

http://gpx2geojson.appspot.com?gpxurl=http://wheresthepath.googlepages.com/route.gpx&mime=text/plain

other parameters are

ele=1 - make 3D coords from 3D input (not compatible withOpenLayers)

mime= - mime type for reponse, default is 'application/json'

callback=cb - name of callback function

Any suggestions for a better way of handling the Route ?

Bill Chadwick

chadwickBill

Posts: 390
Registered: 07/02/08
Where's The Path - Mobile Version
Posted: 03-Oct-2009 14:52   in response to: chadwickBill
  Click to reply to this thread Reply

By using

OpenSpace
Google Gears
Opera Mobile 9.7 Beta (for Windows Mobile, free whilst in Beta)

I have put together

http://wtp2.appspot.com/mobile/mobile.htm

This is a companion to http://wtp2.appspot.com/wheresthepath.htm

Just tracked my walk to the shops on the 10K mapping quite well.

The loading of routes created on the main site not done yet.

chadwickBill

Posts: 390
Registered: 07/02/08
Re: Where's The Path - Mobile Version
Posted: 07-Oct-2009 17:34   in response to: chadwickBill
  Click to reply to this thread Reply

http://wtp2.appspot.com/mobile/mobilecr.htm

has been shown to work on an Android phone (thanks to guys in Android forum for testing) and desktop Chrome.

http://wtp2.appspot.com/mobile/mobile.htm

which includes offline storage of the app files Is OK on Firefox, MSIE and Opera
Mobile 9.7 but NOT Android/Chrome.

iPhone has its own OpenSpace + GPS solution.

Legend
Expert: 51 - 1000 pts
Advanced: 31 - 50 pts
Intermediate: 16 - 30 pts
Novice: 5 - 15 pts
Newbie: 0 - 4 pts
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums