2021-08-01から1ヶ月間の記事一覧

GASで楽天基地局マップの更新 ウェブアプリ化

function doGet() { const url = "https://api.github.com/repos/imabari/rakuten_map/dispatches"; let data = { "event_type": "on-demand-test" }; let options = { "method": "POST", "headers": { "Authorization": "xxxxxxxxxxxxxxxxxxxx", "Content-T…

Colaboratry

www.takapy.work

奈良用

function myFunction() { const url = "https://api.github.com/repos/denpayanara/rakuten/dispatches"; let data = { "event_type": "on-demand-test" }; let options = { "method": "POST", "headers": { "Authorization": "token xxxxxxxxxxxxxxxxxxxx",…

GitHub演習

https://kaityo256.github.io/github/

楽天モバイルの基地局のPCIをMLSと比較

eNB-LCIDとPCIの数が同じじゃないとエラーがでます !pip install geopandas !pip install rtree !pip install pygeos !wget https://www.esrij.com/cgi-bin/wp/wp-content/uploads/2012/10/japan_ver83.zip import pandas as pd import geopandas as gpd jap…

楽天モバイル基地局マップ(愛媛県)フィルタ付

<html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>楽天モバイル基地局マップ(愛媛県)</title> <meta name="description" content="楽天モバイル" /> <style> h1 { text-align: center; font-size: 30px; margin: 10px 0px 10px 0px; color: #dc7343; } #input { display: …</meta></meta></meta></head></html>

foliumポリゴン色付け

!pip install geopandas !pip install rtree !pip install pygeos !wget https://www.esrij.com/cgi-bin/wp/wp-content/uploads/2012/10/japan_ver83.zip import pandas as pd import geopandas as gpd japan = gpd.read_file("japan_ver83.zip!japan_ver83"…

スクリーンショット用地図作成

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --headless --window-size=4000,4000 --screenshot=R:\map.png R:\map.html !pip install folium import folium # 地図の中心 # 緯度 lat = 34.06604300 # 経度 lng = 132.99765800 map = fo…

folium サンプル

nbviewer.jupyter.org

コロナ用

import tweepy # 先ほど取得した各種キーを代入する CK = "" CS = "" AT = "" AS = "" # Twitterオブジェクトの生成 auth = tweepy.OAuthHandler(CK, CS) auth.set_access_token(AT, AS) api = tweepy.API(auth) # リストのID news_id = xxxxxx # リストを降…

楽天電測用マップの更新

Github Actionsでプログラム実行(定時またはWEBHOOK) フォルダmapにKMZ作成 map全体をgh-pagesにコピー、WEB公開 プログラム github.com 定時実行・Webhook github.com on: repository_dispatch: types: [on-demand-test] schedule: - cron: '0 22 * * *' …

GASでKMZを作成

// スプレッドシートのID const SheetId = "XXXXXXXXXX"; // シート名 const SheetName = "data"; let data; let row; function kml_make() { // スプレッドシート取得 sheet = SpreadsheetApp.openById(SheetId).getSheetByName(SheetName); // 最終行取得 …

GASで愛媛県の愛媛県内の状況を日付入りでバックアップ

function myFunction() { // folder id const id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; const folder = DriveApp.getFolderById(id); const url = "https://www.pref.ehime.jp/h25500/kansen/documents/kennai_link.pdf"; const options = { "muteHttpExcept…

CSVから楽天電測用のKMZを作成

楽天電測 - Google マイマップ アイコンは同梱、URLはだめ folder必要 stylemap必要 PlacemarkのdescriptionにeNB-LCID import io import pathlib import pandas as pd import simplekml data = """\ 番号,場所,場所補足,状況,sector,eNB-LCID,PCI,緯度,経度…

楽天モバイル

四国楽天モバイル基地局 - Google マイマップ www.google.com https://drive.google.com/uc?id=1kKnXK9g7m4vyBv2tGXtN728M7KSeiJ6R 投稿フォーム 香川県 https://docs.google.com/forms/d/e/1FAIpQLScqsBrLm87eUuNjLXuAMKN-uH-3tQXzzB0vjj3tdV5JQrHdww/viewf…

imabar2kmz

import pandas as pd import simplekml # スプレッドシートのURL url = "https://docs.google.com/spreadsheets/d/e/2PACX-1vRDgDbpuBUvGcK7TJKiwMSIfs5yi95qmERjZ_iXHMWSRDlarjwUoDVdvpXOB8a2zpnwpq4Vj9VBHJcf/pub?gid=592572816&single=true&output=csv" d…