with AccuWeather and Google Maps (Places API)?
Retrieve current weather conditions for a specific location using its location key. See the documentation
Retrieves detailed information for a specific place using its Place ID. See the documentation
Get daily weather forecast for a specific location with temperature, precipitation, and conditions. See the documentation
Searches for places based on location, radius, and optional filters like keywords, place type, or name. See the documentation
Retrieve historical weather data for a specific location and date range. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
accuweather: {
type: "app",
app: "accuweather",
}
},
async run({steps, $}) {
return await axios($, {
url: `http://dataservice.accuweather.com/locations/v1/regions`,
params: {
apikey: `${this.accuweather.$auth.api_key}`,
},
})
},
})
The Google Maps (Places API) offers detailed information about physical locations, including places of interest, reviews, and other metadata. In Pipedream, you can leverage this API to create dynamic workflows that respond to location data. Whether you're building apps that track asset locations, automate location-based alerts, or provide users with local info, integrating with Google Maps can add a powerful spatial context to your services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_maps_platform: {
type: "app",
app: "google_maps_platform",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://maps.googleapis.com/maps/api/place/findplacefromtext/json`,
params: {
key: `${this.google_maps_platform.$auth.api_key}`,
input: `Museum of Contemporary Art Australia`,
inputtype: `textquery`,
},
})
},
})