Skip to content

Instantly share code, notes, and snippets.

Request: {
points: [],
controls: {
optimize: [true|false],
mode:["driving"|"bicycling"|"walking"|"transit"],
time:{
departure:"",
arrival:""
}
drivingControls:{
Request: {
...RouteStops...
routeOptions: {
language: "",
vehicle: {},
routeLine: [],
routeDetails: {
optimizeRoute: true,
@gustavompo
gustavompo / routeapi-result.js
Created February 9, 2015 13:41
Result from a single route request with default 'result' elements
{
Status: {
Code: "OK"
},
Routes: [{
RouteIdentification: "main-route",
Summary: {
Duration: 1841.84,
Distance: 21477,
Origin: {
@gustavompo
gustavompo / package.json
Created October 27, 2015 16:39
Routes for free
{
"name": "testing",
"version": "1.0.0",
"description": "",
"main": "index.js",
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.13.3",
"request-promise": "^1.0.2"
@gustavompo
gustavompo / maplinkapi.revgeo.result-specification.js
Last active April 28, 2016 21:15
Specification of the result of the reverse geocode
{
/* The array containing all the results (the amount of results is the same as the amout of requested items in the query string) */
"results": [{
/*The id informed in the request (for example location.0.id=firstItem)*/
"id": "firstItem",
/*Address with all attributes obtained for this specific item (not all attributes are always returned)*/
"address": {
"country": {
/* The ISO 3166-1 alpha-2 code for the country of the result */
"countryCode": "BRA"
[{url: "https://emoji.slack-edge.com/T6CU2169Z/100sual/b3a1531ff45f2acd.jpg", name: ":100sual:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/1_don%2527t_pick_up_the_phone/8dd1f635352780e8.png", name: ":1_don't_pick_up_the_phone:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/1hokage/9e66cda3a2ecf310.jpg", name: ":1hokage:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/2_don%2527t_let_him_in/eb898e174fa62821.png", name: ":2_don't_let_him_in:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/2hokage/63f4935ed5608b8c.gif", name: ":2hokage:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/3_don%2527t_be_his_friend/68b9721a15ed8aeb.png", name: ":3_don't_be_his_friend:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/3hokage/765b9b0f9d994981.jpg", name: ":3hokage:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/4hokage/39a0745cfb994d6c.jpg", name: ":4hokage:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/5hokage/0e9dcea089de5b8b.jpg", name: ":5hokage:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/6hokag
@gustavompo
gustavompo / atividadenovacilo.js
Created August 22, 2018 21:56
atividadenovacilo.js
[{url: "https://emoji.slack-edge.com/T6CU2169Z/100sual/b3a1531ff45f2acd.jpg", name: ":100sual:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/1_don%2527t_pick_up_the_phone/8dd1f635352780e8.png", name: ":1_don't_pick_up_the_phone:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/1hokage/9e66cda3a2ecf310.jpg", name: ":1hokage:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/2_don%2527t_let_him_in/eb898e174fa62821.png", name: ":2_don't_let_him_in:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/2hokage/63f4935ed5608b8c.gif", name: ":2hokage:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/3_don%2527t_be_his_friend/68b9721a15ed8aeb.png", name: ":3_don't_be_his_friend:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/3hokage/765b9b0f9d994981.jpg", name: ":3hokage:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/4hokage/39a0745cfb994d6c.jpg", name: ":4hokage:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/5hokage/0e9dcea089de5b8b.jpg", name: ":5hokage:"}
,{url: "https://emoji.slack-edge.com/T6CU2169Z/6hokag