#!/usr/bin/perl use strict; use warnings; use utf8; use YAML; use WebService::Simple; my $key = 'hoge'; my $service = WebService::Simple->new( base_url => 'http://maps.google.com/maps/', param => { key => $key, output => 'xml', }, ); my $res = $service->get('geo', {q => 'æ±äº¬é½å代ç°åºå代ç°1-1'})->parse_response; warn Dump $res; âãããªã£ãã - Response: Placemark: AddressDetails: Accuracy: 8 Country: Administra
æºå¸¯ãã使ã£ã¦ã¿ãGoogleMapsã®éã¸ãªã³ã¼ãçµæãã¢ã¬ãªã®ã§ãä»ã«ä½¿ãããµã¼ãã¹ããªããæ¢ãã¦ã¿ã¾ããã ãªããªãè¯ãããªãµã¼ãã¹ãè¦ã¤ãã£ãã®ã§ã¾ã¨ãã¦ããã¾ãã ï¼ããã¾ã§æºå¸¯çGoogleMapsã®éã¸ãªçµæä½ææååã使ãã¥ããã£ã¦ã ãã®è©±ãPCã ã¨ããã»ã©åé¡ãªããã¨ï¼ â»ãããä¸ã§ãGoogleMapsã®ãªãã¼ã¹ã¸ãªã³ã¼ãã¼ã使ãã¥ããã¨ããæè¦ãã Googleã«ã¯æ©ãã¨ãä½ã¨ããã¦ã»ããã§ããã ã£ã¦ããã ã§ä½¿ã£ã¦ãããæå¥è¨ãçåãããªããã§ããã ã»google mapsã®éã¸ãªã³ã¼ãã£ã³ã°ä½¿ãè¾ã£! ã»GoogleMapsAPI ã®éã¸ãªã³ã¼ãã¼æ©è½ãï½ç¶ç·¨ï½ ã»ã»ã»ã¨ãæã£ããã¸ãªãéçºè ã®æ¹ãéã¸ãªã³ã¼ãã®æ£ããå¦çæ¹æ³ãç´¹ä»ããã¦ã¾ããã Googleã®éã¸ãªã³ã¼ãã£ã³ã°ããããã¦ã¿ã ãåºæ¬çã«è©³ç´°ãªä½æã»ã©ãå é ã«ããã®ã§Placemark[0]ãè¦
ããªã¼ãæã«ã緯度çµåº¦ããä½æãéµä¾¿çªå·ãå¼ããã便å©ã ããã¨ãããã¨ã§ãéã¸ãªã³ã¼ãã£ã³ã°ã§ãããµã¼ãã¹ãå©ç¨ãã¦ãGoogle Earthä¸ã§ãããå®ç¾ããKMLãä½ãã¾ããããããããä¸è¬ã®äººã«ã¨ã£ã¦éã¸ãªã³ã¼ãã£ã³ã°ã£ã¦ãªãããï¼ã¨ããã®ãå½ããåã§ãã£ã¦ãèªåãããã§ãããé常ãä½æã緯度çµåº¦ã«å¤æãããã¨ãã¸ãªã³ã¼ãã£ã³ã°ã¨å¼ã³ã¾ãããéå¼ãããããã®ãéã¸ãªã³ã¼ãã£ã³ã°ã¨ãããã©ã¡ãã精度ã¯åãã£ã½ãã ã§ãããä¸å¿ç¹ã®ä½æãç¥ãããã®ã ã¨ãã£ã¦ããä½æã¯ç·¯åº¦çµåº¦ã¨éãã寸åéãã¬ã»ã©ç²¾å¯ã«ã¯ã§ãã¦ããªãã®ã§ããã®åºç»ãæå±ããä½æãè¨ããã¾ããçµæãã¹ã¯ãªã¼ã³ã·ã§ããã®ãããªå³ã«ãªãããã§ãã ãã¦ããã®ã¹ã¯ãªã¼ã³ã·ã§ããã®ä¸æ ¼å¥½ãªå³ãªã®ã§ãããä»åãGoogle Maps APIã«è£ åãããéã¸ãªã³ã¼ãã£ã³ã°APIã使ãã¾ããããããããããªãã ãå¤ã§ããããããã¡ããåº
ä¸æåã«ãGoogleMapsããéµä¾¿çªå·ã«çµåº¦ç·¯åº¦æ å ±ã«å¤æããããã°ã©ã ãæ¸ãã¾ããããã®ãã¼ã¿ã使ããã¨æã£ãã®ã§ãããè¦å½ããã¾ããã確ãããã°ã«ã³ã¼ãæ¸ãã¦ãããªãã¨æã£ã¦ãéå»ã®è¨äºãéµä¾¿çªå·ãã緯度çµåº¦æ å ±ãåå¾ããããè¦ãã®ã§ãããæãªããããã¯ã²ã©ãï½ ç·¯åº¦çµåº¦ãåãã«ã¯ãä½æããæ¤ç´¢ããå¿ è¦ãããã¾ããéµä¾¿çªå·ç´ã§ã¯åºæ¥ãªãã®ã§æ³¨æãã¦ãã ãããä¸é£ã®ãã¼ã¿ãä½ãæ¹æ³ã¯æ¬¡åæ¸ãã¾ãã ç¶ããæ¸ãã¦ãã¾ããããã¨è¨ã訳ã§ããã®å½æã©ããªã½ã¼ã¹ãæ¸ãããè¬ã§ãããããã£ã¨ããä¸åº¦ä½ãã¾ããã以ä¸æé ã¨ããã°ã©ã ã§ãã ã¾ãã¯éµä¾¿çªå·ãã¼ã¿ããã¦ã³ãã¼ããã¦ãã¦ãå¿ è¦ãªå½¢ã«æ´å½¢ãã¾ãã utf8ã«å¤æãã¦ãå¿ è¦ãªé ç®ã®ã¿ããã¯ã¢ãããã¾ããã¤ãã§ã«ãå°ãã ãé ç®ã®è£æ£ããã¾ããè£æ£å¦çã¯ãã£ã¨ãã£ã¨è²ã ããªãã¨ãããªããã¨ãããã®ã§ãããããã§ã¯å²æãã¾ãã nkf -w K
京é½éãåã®åºæ¬ ãBéAæ±å ¥ã«ã 建ç©ï¼çé¢ï¼é¢ãã¦ããéãåãå ï¼Bï¼ã§ãè¿ãã®äº¤å·®ç¹ã®éãï¼Aï¼ãåºç¹ã«ã ã©ã¡ãã«è¡ãã°ç®çå°ããããã®æ¹è§ããä¸ã«ï¼åï¼ä¸ã«ï¼åï¼æ±å ¥ã«ãè¥¿å ¥ã«ã¨è¡¨ããã¢ã¬ã«ããµã¬ã«ããã¬ã·ã¤ã«ããã·ã¤ã«ãã¨èªãã 京é½ã®éãå表è¨ã¯åããåºã«ããä¸ç¨®ã®ããã²ã¼ã·ã§ã³ã§ãã£ã¦ãããã®ã¨ããã«åãã°ã¨ããã®ã©ã¡ãå´ãã«è¦ã¤ãããã¨ãããã®ã§ãä¸ç¹ã表ããã®ã§ã¯ããã¾ããã ããç¨åº¦ã®ç¯å²ã¯ç¹å®ã§ãã¾ãããå³å¯ãªä½ç½®ã®æå®ã¯ä¸å¯è½ã§ãã ãã¸ãªã©ããã§ã¯ãéãä¸ã§ãåºç¹ãã次ã®äº¤å·®ç¹ã¾ã§ã®ä¸éå°ç¹ã便å®çã«è¿ãããã«ãã¦ãã¾ããèã赤è²ã®ã¨ãªã¢ã¯å ´æã®äºæ³ç¯å²ã§ããããããã®ç¯å²å ã«ããã¨ãããã®ã§ããã¸ãªã©ãã§ã¯äºæ³ç¯å²ãè¿ãããã«ãã¦ãã¾ãã 京é½å¸å èãè¾¼ã¿èª¿æ»çµæ 調æ»ãèãè¾¼ã¿ã®çµæã以ä¸ã®ãã¨ãåããã¾ããã ã»éãã®ã©ã¡ãå´ã«ç®çå°ããããã¯å¤å®ã§ããªã
ããã¡ã¯ãæ¾ç°ã§ãã ãã¬ã¤ã³ã»ãã¬ã¤ã³ã§ä½¿ç¨ãã¦ããGoogleMapãããã£ã¦ããæã«åº§æ¨ï¼ç·¯åº¦ã»çµåº¦ï¼ããå°åãåå¾ããå¿ è¦ãåºã¦ããã®ã§ããã®éã«èª¿ã¹ãéGeocodingæ©è½ãå®è£ ããAPIãã¾ã¨ãã¦ã¿ã¾ããã GoogleMapsAPIãªã©å°å³ã使ã£ãã·ã¹ãã ã使ç¨ãã¦ããã¨ãä½æãã緯度çµåº¦ãªã©ã®æ å ±ãåå¾ããæ¹æ³ãå¿ è¦ã«ãªãã¾ããããã¯Geocodingã¨å¼ã°ããæè¡ã§ãGoogleMapsAPIã§ã¯ãã§ã«å ¬å¼ãªAPIãåå¨ãã¦ãã¾ãã ããã¨ã¯éã«ãã¦ã¼ã¶ã¼ã«ç»é²ãããã¹ãããã®å°åãèªåå ¥åããããããå ´åãªã©ã座æ¨ããå°åæ å ±ãåå¾ãããå ´åãããã¾ãããããã¯ãéGeocodingããããReverse Geocodingããªã©ã¨å¼ã°ãã¦ãã¾ãããç¾å¨ã®ã¨ããGoogleMapsã®APIã¯æä¾ããã¦ãã¾ããã ãã®éGeocodingæ©è½ã使ãããµã¼ãã¹ãããã¤ãç´¹
ãã¼ã¨ã ã©ãããããã®éã®å°é家ã®äººãã¡ã¯ã ãä½ææååããããã®å ´æã®ç·¯åº¦ã»çµåº¦ãæ±ããäºãã¸ãªã³ã¼ãã£ã³ã°ï¼Geocodingï¼ãã¨å¼ã³ã å対ã«ã ã緯度ã»çµåº¦ããããã®å ´æã®ä½æãå²ãåºãäºãéã¸ãªã³ã¼ãã£ã³ã°ãã¨å¼ãã§ãã¦ã æè¿ããã¶ãã¨èå ããã³ã¦ããããã§ããã ç§ã¨ãã¦ã¯å å¿ ãã½ããã¦ã§ã¢ãã©ããªã«é²æ©ãã¦ããããå ã®åºç¤ãã¼ã¿ãã¢ã¬ãªããã ã¯ãç ä¸ã®æ¥¼é£ãï¼ã ã£ã¦æãè¾¼ãã§ãã¾ããã ã§ããã®ç§ã®èãã¯ééã£ã¦ããããã§ãã âç¾ã«çªå°ã¬ãã«ã§ã®æ¬æ ¼çãªéã¸ãªã³ã¼ãã£ã³ã°ãè¡ãªããã¦ããâäºã«æ°ãä»ãã¾ããã ã¨äºã£ã¦ãã ç§ãããã§ãæ¬æ ¼çãªéã¸ãªã³ã¼ãã£ã³ã°ãã¨å¼ãã§ããã®ã¯ãå¤è§å½¢ã®å½¢ãããåå°ã®å¤å¨ä¸ã®å ¨ã¦ã®è§ã®ç¹ã®åº§æ¨ããã¼ã¿ãã¼ã¹ã«æã£ã¦ãã¦ãä¸ããããçµç·¯åº¦ã®å ´æããã®å¤è§å½¢ã®ä¸ã«ä½ç½®ãã¦ãããå¦ãããã£ããå¤å®ããä¸ã§ãä½ã çªå°ã§ãããã£ã¦çãã¦
å½ãµã¤ãã®ãµã¼ãã¹ãã使ç¨ã«ãªãå ´åã«ã¯ã使ç¨æ¡ä»¶(2007å¹´12æ28æ¥) ãã覧ä¸ããã ãã®ãµã¼ãã¹ã«ã¯åå¥ä½¿ç¨æ¡ä»¶ãããã¾ãã ç°¡æçãªéã¸ãªã³ã¼ãã£ã³ã°(ãªãã¼ã¹ã¸ãªã³ã¼ãã£ã³ã°)ãµã¼ãã¹ã§ãã å ¨å½åå°ã®é¸å°(ç¡äººå³¶çã®ä¸é¨ã¯é¤ã)ã®ç·¯åº¦çµåº¦åº§æ¨ãæå®ããã¨ããã®å°ç¹ã®å±ããé½éåºçãå¸åºçºæåãæ¤ç´¢ãããã¨ãã§ãã¾ãã ã¾ããé½å¸è¨ç»åºåå ã«ããã¦ã¯ãããããã®çºä¸ç®ã»åãçªå°ãæ¤ç´¢ãããã¨ãã§ãã¾ãã URL㯠http://refits.cgk.affrc.go.jp/tsrv/jp/rgeocode.php ã§ãã
grat·i·cule, |ËgratÉËkyoÅl|, n. technical Navigation. a network of parallels and meridians on a map or chart. Graticule is a geocoding API for looking up address coordinates and performing distance calculations. It supports many popular APIs, including: Yahoo Google Geocoder.ca Geocoder.us PostcodeAnywhere MetaCarta There is a companion Rails plugin that makes geocoding seem like magic. Example re
This site features tools and libraries developed for and used by the websites of The Robot Co-op including www.43things.com, www.43places.com, www.43people.com, www.allconsuming.net. Libraries cached_model An Rails ActiveRecord::Base abstract class that caches ActiveRecord objects. memcache-client A fast Ruby memcache client. mogilefs-client A Ruby MogileFS client. socket_accept_filter Makes it ea
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}