5export async function nowCastPMAQI({ location_id }) {
6 const { results } = await fetchJSON(
7 "https://api.openaq.org/v2/measurements?" +
8 new URLSearchParams({
9 limit: "100",
8 }
9 const res = await fetchJSON(
10 "https://api.val.town/v1/me/likes",
11 {
12 headers: {
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
3export let map = async (zipA, latB, longB) => {
4 let f = await fetch(
5 `https://maps.googleapis.com/maps/api/staticmap?auto=&scale=2&size=600x300&maptype=roadmap&format=png&key=AIzaSyBkrVgpa0Ul-_LN7cVq8ws6oYfQi3zCjuU&markers=size:mid%7Ccolor:0xdc2626%7Clabel:1%7CLos%20Angeles%2CCA%2C${zipA}&markers=size:mid%7Ccolor:0xdc2626%7Clabel:2%7C${latB}%2C${longB}`
6 );
7 let res = await f.blob();
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// Explore the Star Wars universe, from StarWarsAPI
4export let starWars = fetchJSON(
5 "https://swapi.dev/api/people/1/"
6);
1export function myApi(name) {
2 return "hi " + name;
3}