Search
User status
You are not logged in.
Related topics
- JSONP Web Service
- Location Web Service Version 1.4
- Route Comparison
- Route Web Service Version 1.1 (deprecated)
- Route Web Service Version 1.2
- RouteList linking with RouteViewer
- RoutePlanner Plugin
- Routing Web Service Version 1.2
- Web Services
- XML-RPC Web Service
How helpful was this?
Can't find the solution to your problem ? Email us for help on .
Info
- Service name : Route
- Version : 1.4
- Status : This has to be activated for specific accounts (please contact //';l[1]='a';l[2]='/';l[3]='<';l[4]='|109';l[5]='|111';l[6]='|99';l[7]='|46';l[8]='|117';l[9]='|111';l[10]='|121';l[11]='|101';l[12]='|116';l[13]='|117';l[14]='|111';l[15]='|114';l[16]='|64';l[17]='|115';l[18]='|101';l[19]='|108';l[20]='|97';l[21]='|115';l[22]='>';l[23]='"';l[24]='|109';l[25]='|111';l[26]='|99';l[27]='|46';l[28]='|117';l[29]='|111';l[30]='|121';l[31]='|101';l[32]='|116';l[33]='|117';l[34]='|111';l[35]='|114';l[36]='|64';l[37]='|115';l[38]='|101';l[39]='|108';l[40]='|97';l[41]='|115';l[42]=':';l[43]='o';l[44]='t';l[45]='l';l[46]='i';l[47]='a';l[48]='m';l[49]='"';l[50]='=';l[51]='f';l[52]='e';l[53]='r';l[54]='h';l[55]=' ';l[56]='a';l[57]='<'; for (var i = l.length-1; i >= 0; i=i-1){ if (l[i].substring(0, 1) == '|') document.write(""+unescape(l[i].substring(1))+";"); else document.write(unescape(l[i]));} //]]> if you would like to make use of this functionality for your set of routes).
Technical
The web service is accessible using:- XML-RPC : Info on how to use
- JSONP : Info on how to use
Overview of provided functions
getMedia
Get the media from a route. Extra conditions can be set.Input
- id (integer) : The id of the route for which to find media.
- conditions (object): conditions a media has to satisfy
- order (object): order-criteria of the media
- limit (integer): the number of media to return
- offset (integer): skip this number of media
Output
Result (object):- total: total number of media that satisfy the conditions.
- limit: the limit
- start: the offset
- results: array of media-objects
getCoinciding
Get the routes that coincide (matching routes or partly matching routes) with the specified route. Extra conditions can be set.Input
- id (integer) : The id of the route for which to find coinciding routes.
- conditions (object): conditions a coinciding route has to satisfy
- order (object): order-criteria of the coinciding routes
- limit (integer): the number of coinciding routes to return
- offset (integer): skip this number of coinciding routes
Output
Result (object):- total: total number of coinciding routes that satisfy the conditions.
- limit: the limit
- start: the offset
- results: array of coinciding route-objects
object {
["route"]=> Route-object with id, title,...
["similarity"]=> Percentage of given route that is similar with the result-route. (float between 0 and 1)
["similarityReverse"]=> Percentage of the result-route that is similar with the given route. (float between 0 and 1)
["similarityMeter"]=> Number of meters that are similar (integer)
}
Sample
Ask x coinciding routes from a certain user, order by similarity descending:Parameters
- id: the id of the route for which you want to find the coinciding routes
- conditions:
- order:
- limit: x, the number of routes you want.
- offset: 0
array(
'type' => 'EqualTo',
'operands' => array(
array(
'type' => 'Property',
'value' => 'route.owner.id'
),
array(
'type' => 'Constant',
'value' => <id of the user>
)
)
);
array(
'type' => 'Descending',
'operand' => array(
'type' => 'property',
'value' => 'similarity'
)
);