with pdforge and GraphHopper?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pdforge: {
type: "app",
app: "pdforge",
}
},
async run({ steps, $ }) {
const data = {
"templateId": `${this.pdforge.$auth.template_id}`,
"convertToImage": false,
"data": { "email": `john@fabrikam.com` },
}
return await axios($, {
method: "post",
url: `https://api.pdforge.com/v1/pdf/sync`,
headers: {
Authorization: `Bearer ${this.pdforge.$auth.api_key}`,
},
data,
})
},
})
GraphHopper is a powerful routing engine that leverages OpenStreetMap data to provide various services like route optimization, map matching, and travel time calculation. With the GraphHopper API, you can embed routing capabilities into your apps, automate the creation of efficient travel routes, and analyze spatial data to derive insights on movement patterns. On Pipedream, you can create workflows that harness GraphHopper's features to automate logistics, streamline dispatch systems, and perform geospatial analysis in conjunction with other apps and services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
graphhopper: {
type: "app",
app: "graphhopper",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graphhopper.com/api/1/isochrone`,
params: {
key: `${this.graphhopper.$auth.api_key}`,
point: `{enter_coordinates_here}`,
},
})
},
})