I am re-introducing a service that client developers may be interested in.
This service will deliver turn-by-turn routing information (similar to
MapQuest) between pairs of JID's (that have location information associated
with them by implementation of the GEOLOC JEP), or pairs of postal addresses
or latitude/longitude pairs. The service can be used by sending XMPP stanzas
to '[EMAIL PROTECTED]/lbs'

Currently the system can return lists of text strings that describe each
segment of the route (e.g. "Turn left at Main Street") and a URL to an
associated gif graphic that displays the segment.

The proposed protocol is listed below, but I would like feedback on the
protocol before drafting a JEP. If you have any comments please let me know,
either by replying to the post - or sending me email directly.

Requesting and Returning Routing Information with XMPP

Entities can request routing information between two jids or two locations
specified by either latitude/longitude pairs or the postal address of the
endpoints.

Entity requests routing information between jids [EMAIL PROTECTED] and
[EMAIL PROTECTED]:

<iq
    to='[EMAIL PROTECTED]/lbs'
    from=' [EMAIL PROTECTED]/balcony'
    type='get'
    id='route1'>
  <query xmlns='http://www.movsoftware.com/protocol/routing'>
    <src jid='[EMAIL PROTECTED]'/ >
    <dst jid='[EMAIL PROTECTED]'/>
  </query>
</iq>

Entity requests routing information between latitude/longitude pairs
-37.34,-33.33 and -40.433, -20.222:

<iq
    to='[EMAIL PROTECTED]/lbs'
    from=' [EMAIL PROTECTED]/balcony'
    type='get'
    id='route1'>
  <query xmlns='http://www.movsoftware.com/protocol/routing'>
    <src lat='-37.24' lon='-33.33'/ >
    <dst lat='-40.422' lon='-20.222'/>
  </query>
</iq>

Entity requests routing information between postal address pairs 4555 Main
Street,Philadelphia PA,USA,19117 and 9000 West Elm Street,Philadelphia
PA,USA,19117 :

<iq
    to='[EMAIL PROTECTED]/lbs'
    from=' [EMAIL PROTECTED]/balcony'
    type='get'
    id='route1'>
  <query xmlns='http://www.movsoftware.com/protocol/routing'>
    <src street= '4555 Main Street ' city='Philadelphia' state = 'PA'
country='USA' code='19117'/ >
    <dst street= '9000 West Elm Street ' city='Philadelphia' state = 'PA'
country='USA' code='19117'/ >
  </query>
</iq>


Routing information is returned as a series of segments:
<iq type='result' 
    id='route1'
    to='[EMAIL PROTECTED]/balcony'
    from='[EMAIL PROTECTED]/lbs'>
  <query xmlns='http://www.movsoftware.com/protocol/routing'>
    <src jid='[EMAIL PROTECTED]'/ >
    <dst jid = '[EMAIL PROTECTED]'/>
    <segment id = '1'>Depart Start on Chevy Chase Lake Dr (West)</segment>
    <segment id = '2'>Turn RIGHT (North) onto SR-185 [Connecticut
Ave]</segment>
    <segment id = '3'>Take Ramp (Right) onto I-495 [I-495
Outerloop]</segment>
    <segment id = '4'>Turn RIGHT (South) onto S Sherwood Rd [Sherwood Rd]
</segment>
  </query>
</iq>

Stephen Pendleton
mov Software


_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
https://jabberstudio.org/mailman/listinfo/jdev

Reply via email to