台灣地址、地號經緯度查詢
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
.gitignore
LICENSE
README.md
build-sec.ls
package.json
posland.js
posland.ls
section.json

README.md

posland

台灣地址/地號經緯度查詢

Base url

http://posland.g0v.io

地號

Sample Request:

/?landno=臺中市北區水源段282之5
/?address=台北市大安區羅斯福路四段1號

Sample URL:

Sample Response:

[
  {
    sectStr:"5rC05rqQ5q61",
    sect:"0301",
    officeStr:"5Lit5q2j",
    office:"BB",
    landno:"02820005"
  },
  {
    image:"iVBORw0KGgoAAAANSUhEUgAAA78AAAKmCAYAAACFTil9AAATg0lEQVR42u3XMVLDUBQEQd3cRzcRmRMMhfVnu6v2Ak9GaK7rcM/rerzaBQAAAKdG7U/migAAAPxJiH4iasUvAAAA/xq/d5+nBwAAgPgFAAAA8QsAAID4FcAAAACIX/ELAACA+BXAAAAAiF/xCwAAgPgVwAAAAIhf8QsAAMBIAHuKAAAA5ONXAAMAACB+AQAAEL8CGAAAAPErfgEAABC/4hcAAADxK4ABAAAQv+IXAAAA8SuAAQAAEL/iFwAAgKH4FcAAAACIXwAAAMSv+AUAAED8CmAAAADEr/gFAABA/ApgAAAAxK/4BQAAQPyKXwAAAMSvAAYAAED8AgAAIH4FMAAAAOJX/AIAACCABTAAAADiV/wCAAAgfsUvAAAA4lcAAwAAIH7FLwAAAHPxK4ABAADEr/gFAABA/IpfAAAAxK8ABgAAQPyKXwAAAMSvAAYAAED4il8AAACEr/gFAABA/ApgAAAA4St+AQAAEL4CGAAAAOErfgEAABC+AhgAAADxK34BAAAQvuIXAAAA4SuAAQAAxK+JXwAAAOErgAEAABC/4hcAAADhK34BAAAQvwIYAAAA4St+AQAAEL8CGAAAQAALWfELAAAgfk0AAwAAiF/xCwAAgAAWvwAAAIhfAQwAAIAAFr8AAACIXwEMAACA+BW/AAAACGDxCwAAIH5NAAMAAIhf8QsAAIAAFsAAAACIX/ELAACAABbAA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WuiFwAAQPyKXgAAAPFrghcAAED8mugFAAAQvyZ6AQAAxK8JXgAAAPFrohcAAED8il4AAADEr+AFAABA/IpeAAAA8WuiFwAAQPya4AUAABC/JnoBAADEr+gFAABA/ApeAAAAxK/oBQAAQPwKXgAAAPFrohcAAED8mugFAAAQv4IXAAAA8St6AQAAEL+iFwAAAPEreAEAABC/ohcAAADxK3oBAADEr+AFAABA/IpeAAAAxK/oBQAAQPwKXgAAAMSv6AUAAED8il4AAAAm49dTBAAAIBu/nh4AAADZ+PXUAAAASMavJwUAAEA2fj0hAAAAkvHrqQAAAJCNX08DAACAbPx6CgAAACTj1+UBAADIxq+LAwAAkI1flwYAACAZv64LAABANn5dFQAAgGz8uiYAAADJ+HVBAAAAsvHrcgAAACTj17UAAADIxq8rAQAAkI1f1wEAACAZvy4CAABANn5dAuC1L2X6Yw7aADaoAAAAAElFTkSuQmCC",
    cx:120.68290203809738,
    cy:24.154537684453814,
    lx:120.68161725997925,
    ly:24.15370925023539,
    rx:120.68418681621553,
    ry:24.15536611867224
  },
  "source: http://landmaps.nlsc.gov.tw/S_Maps/qryTileMapIndex?flag=2&office=BB&sect=0301&landno=282-5"
]

地址

TODO:

  • 直接用 maps.nlsc.gov.tw 進行地址座標反查
  • 模糊定位

Sample Request:

/?address=臺北市信義區市府路1號

Sample URL:

Sample Response:

{
  results:[
    {
      address_components:[
        {
          long_name:"1",
          short_name:"1",
          types:[
            "street_number"
          ]
        },
        {
          long_name:"市府路",
          short_name:"市府路",
          types:[
            "route"
          ]
        },
        {
          long_name:"西村里",
          short_name:"西村里",
          types:[
            "sublocality",
            "political"
          ]
        },
        {
          long_name:"信義區",
          short_name:"信義區",
          types:[
            "locality",
            "political"
          ]
        },
        {
          long_name:"台北市",
          short_name:"北市",
          types:[
            "administrative_area_level_2",
            "political"
          ]
        },
        {
          long_name:"台灣",
          short_name:"TW",
          types:[
            "country",
            "political"
          ]
        },
        {
          long_name:"110",
          short_name:"110",
          types:[
            "postal_code"
          ]
        }
      ],
      formatted_address:"110台灣台北市信義區市府路1號",
      geometry:{
        location:{
          lat:25.037525,
          lng:121.563782
        },
        location_type:"ROOFTOP",
        viewport:{
          northeast:{
            lat:25.0388739802915,
            lng:121.5651309802915
          },
          southwest:{
            lat:25.0361760197085,
            lng:121.5624330197085
          }
        }
      },
      partial_match:true,
      types:[
        "street_address"
      ]
    }
  ],
  status:"OK",
  source:"http://maps.google.com/maps/api/geocode/json?sensor=false&language=zh-tw&region=tw&address=臺北市信義區市府路1號"
}