Ntxiv koj cov ntaub ntawv Geographic rau koj qhov Sitemap nrog KML
Yog tias koj lub vev xaib tsom mus rau thaj chaw cov ntaub ntawv, KML sitemap tuaj yeem yog cov cuab yeej muaj txiaj ntsig rau kev koom ua ke nrog cov kev pabcuam hauv daim duab qhia thiab qhia meej cov ntaub ntawv spatial. A KML (Keyhole Markup Language) Sitemap yog ib daim ntawv qhia chaw tshwj xeeb siv rau cov vev xaib uas muaj cov ntaub ntawv thaj chaw.
thaum nplua nuj snippets thiab Teem Taub markup tuaj yeem txhim kho koj qhov chaw dav dav SEO, KML sitemap tuaj yeem pab tshwj xeeb hauv kev nthuav qhia thiab teeb tsa cov ntaub ntawv thaj chaw. Ntawm no yog ib qho kev sib cais:
KML Sitemap yog dab tsi?
- lub hom phiaj: KML Sitemap yog siv los qhia rau cov kws tshawb fawb txog qhov chaw raws cov ntsiab lus ntawm lub vev xaib. Lawv muaj txiaj ntsig tshwj xeeb rau cov chaw uas muaj cov duab qhia chaw, xws li vaj tse, mus ncig, lossis cov lus qhia hauv zos.
- Hom ntawv: KML yog ib XML Cov ntawv sau rau thaj chaw annotation thiab pom pom hauv Internet raws li daim ntawv qhia (xws li Google Maps). Ib cov ntaub ntawv KML cim qhov chaw, cov duab, thiab lwm yam kev piav qhia ntawm thaj chaw.
Qhov no puas yog Sitemap Standard?
- Standardization: KML yog ib hom qauv tsim thaum chiv thawj tsim rau Google ntiaj teb, tab sis nws tsis yog tus qauv sitemap hom zoo li XML sitemap rau nplooj ntawv web. Nws yog tshwj xeeb tshaj.
- pab: Nws tau dav siv rau thaj chaw cov ntaub ntawv tab sis tsis siv rau txhua lub vev xaib.
- Cov npe hauv robots.txt: Sau npe KML Sitemap hauv robots.txt tsis yog yuav tsum tau. Txawm li cas los xij, suav nrog qhov chaw nyob hauv daim duab qhia chaw hauv koj li robots.txt tuaj yeem pab tshawb nrhiav hauv kev tshawb pom thiab ntsuas koj cov ntaub ntawv thaj chaw. Yog tias koj suav nrog nws, cov syntax yog:
Sitemap: https://yourdomain.com/locations.kml
Format yog dab tsi?
- Basic Structure: KML cov ntaub ntawv yog XML-raws li thiab feem ntau muaj cov ntsiab lus zoo li
<Placemark>
, uas suav nrog lub npe, kev piav qhia, thiab kev ua haujlwm (longitude, latitude). - extensions: Lawv kuj tuaj yeem muaj ntau cov qauv zoo li polygons thiab cov qauv rau kev kho kom zoo nkauj ntawm daim duab qhia chaw.
Piv txwv ntawm KML Sitemap Elements:
- Piv txwv Placemark:
<Placemark>
<name>Example Location</name>
<description>This is a description of the location.</description>
<Point>
<coordinates>-122.0822035425683,37.42228990140251,0</coordinates>
</Point>
</Placemark>
- Polygon Piv txwv:
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>
-122.084,37.422,0 -122.086,37.422,0 -122.086,37.420,0 -122.084,37.420,0 -122.084,37.422,0
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
Cov piv txwv no qhia txog yuav ua li cas KML cov ntaub ntawv raug teeb tsa los sawv cev rau lub vev xaib thaj chaw cov ntaub ntawv. Lawv siv tau zoo heev rau cov chaw uas cov ntaub ntawv chaw nyob yog cov ntsiab lus tseem ceeb.