-
當(dāng)前位置:首頁 > 創(chuàng)意學(xué)院 > 技術(shù) > 專題列表 > 正文
地圖url是什么意思(地圖url是什么意思呀)
大家好!今天讓創(chuàng)意嶺的小編來大家介紹下關(guān)于地圖url是什么意思的問題,以下是小編對此問題的歸納整理,讓我們一起來看看吧。
開始之前先推薦一個非常厲害的Ai人工智能工具,一鍵生成原創(chuàng)文章、方案、文案、工作計劃、工作報告、論文、代碼、作文、做題和對話答疑等等
只需要輸入關(guān)鍵詞,就能返回你想要的內(nèi)容,越精準(zhǔn),寫出的就越詳細(xì),有微信小程序端、在線網(wǎng)頁版、PC客戶端
官網(wǎng):https://ai.de1919.com。
創(chuàng)意嶺作為行業(yè)內(nèi)優(yōu)秀的企業(yè),服務(wù)客戶遍布全球各地,如需了解SEO相關(guān)業(yè)務(wù)請撥打電話175-8598-2043,或添加微信:1454722008
本文目錄:
一、請問百度地圖的tiles url(地圖瓦片/切片)是什么?
這就是圖片的網(wǎng)絡(luò)地址
二、如何在公司網(wǎng)站中加入百度地圖,百度API設(shè)置的url是什么?求詳細(xì)解答
網(wǎng)上制作個html地圖放在首頁即可
三、高德地圖,百度地圖位置共享那個url地址怎么生成的
以我在開發(fā)中使用導(dǎo)航功能為例,我就沒有使用 SDK 進(jìn)行開發(fā),而是直接調(diào)用 (百度,高德,系統(tǒng)自帶高德)APP。這樣還給了客戶多重選擇。更加減少了引入 SDK 使 APP 臃腫的問題。如果使用百度或高德的調(diào)起方法配置起來感覺比較麻煩 ,他們都提供了 URL API 的方式,這種方式覺得稍微簡單一點
四、Apple Scheme URL Reference
This document describes several URL schemes that are supported by system apps on iOS, macOS, and watchOS 2 and later. Native iOS apps and web apps running in Safari on any platform can use these schemes to integrate with system apps and provide a more seamless experience for the user. For example, if your iOS app displays telephone numbers, you could use an appropriate URL to launch the Phone app whenever someone taps one of those numbers. Similarly, clicking an iTunes link launches the iTunes app and plays the song specified in the link. When a user clicks a link, what happens depends on the platform and the installed system apps.
本文檔介紹了在 iOS、macOS 和 watchOS2 及以上版本的 watchOS 中所支持的幾種系統(tǒng) URL scheme。在任何平臺上運(yùn)行的 iOS 原生 app 或者 Safari 中的 web app 都可以使用這些 scheme 來提供一種無縫連接的用戶體驗。打個比方,如果你的 iOS app 顯示了一串電話號碼,你可以在用戶點擊電話號碼的時候調(diào)用適當(dāng)?shù)腢RL來啟動“電話”這個系統(tǒng) app 來打電話。同樣的,在點擊一個 iTunes 鏈接的時候啟動 iTunes app 并播放鏈接中指定的歌曲。當(dāng)一個用戶點擊鏈接時,具體發(fā)生什么事情取決于當(dāng)前操作系統(tǒng)和系統(tǒng)app。
This document describes those schemes that require special attributes or special formatting in order to be understood by the associated system app. As a result, this document does not describe all URL schemes supported on different Apple platforms.
這個文檔的目的是幫助讀者理解那些必須使用特殊格式才能和系統(tǒng) app 關(guān)聯(lián)的 scheme。所以,這個文檔并沒有把所有 Apple 平臺上支持的 URL scheme 都列舉出來。
You should read this document if you want to launch a system app from your iOS or macOS app, or from your web app running in Safari. This document contains both Cocoa Touch sample code—using the openURL:options:completionHandler: method of the shared UIApplication object to open URLs—and HTML samples.
如果你想在 iOS app、macOS app 以及 Safari 的 web app 中啟動系統(tǒng) app,那么應(yīng)該先讀該文檔。這個文檔包含了 Cocoa Touch 中的例子——使用 UIApplication 單例中的 openURL:options:completionHandler: 方法,以及HTML中的例子。
Use the mailto scheme to open the Mail app and populate a new email with information.
使用 mailto scheme 打開郵件 app 并使用附帶的信息生成新的郵件。
The mailto scheme is used to launch the Mail app and open the email compose sheet. When specifying a mailto URL, you must provide the target email address. The following examples show strings formatted for Safari and for native apps.
mailto scheme 用來啟動 郵件 app 并打開郵件編寫頁面。當(dāng)指定一個 mailto URL的時候,你必須提供目標(biāo)郵件的地址。以下的例子里列舉了 Safari 和 原生 app 中的 scheme 格式:
<a href="mailto:frank@wwdcdemo.example.com">John Frank</a>
mailto:frank@wwdcdemo.example.com
You can also include a subject field, a message, and multiple recipients in the To, Cc, and Bcc fields. (In iOS, the from attribute is ignored.) The following example shows a mailto URL that includes several different attributes:
你還可以在scheme中包含主題、郵件內(nèi)容、多個收件人、多個抄送以及密送人。以下例子中展示了一個包含多種不同屬性的 mailto scheme:
For detailed information on the format of the mailto scheme, see RFC 2368 .
有關(guān) mailto scheme 的詳細(xì)格式方案信息,請參閱 RFC 2368 。
Use the tel and facetime schemes to initiate telephone or video conversations.
使用 tel 和 facetime scheme 開始通話或發(fā)起一個視頻會話。
The tel URL scheme is used to launch the Phone app on iOS devices and initiate dialing of the specified phone number. When a user taps a telephone link in a webpage, iOS displays an alert asking if the user really wants to dial the phone number and initiates dialing if the user accepts. When a user opens a URL with the tel scheme in a native app, iOS 10.3 and later displays an alert and requires user confirmation before dialing. (When this scenario occurs in versions of iOS prior to 10.3, iOS initiates dialing without further prompting the user and does not display an alert, although a native app can be configured to display its own alert.)
tel URL scheme 用來啟動 iOS 上的 電話 app 并向指定的手機(jī)號碼撥號。當(dāng)用戶點擊一個網(wǎng)頁上的手機(jī)號鏈接時,iOS系統(tǒng)會彈出一個對話框詢問用戶是否要撥打當(dāng)前這個號碼,如果用戶接受的話,就會向這個手機(jī)號撥號。當(dāng)一個用戶在 原生 app 上打開一個 tel scheme 時,如果是 iOS10.3 以及更高的系統(tǒng)版本的話,在撥打之前也會彈出一個確認(rèn)框。(當(dāng)這種情況發(fā)生在10.3以下的系統(tǒng)中時,iOS 不會提示用戶也不會顯示一個對話框,而會直接啟動 電話 app 并撥打,除非 app 中自行彈出一個對話框。)
FaceTime in macOS 10.10 and later can also use the tel URL scheme to launch the Phone app on an iOS device by using Handoff. This scenario works when FaceTime is configured to dial phone numbers (the default configuration) and the iOS device is connected to the same iCloud account as the Mac.
FaceTime 在 macOS 10.10 以及之后的系統(tǒng)中也可以使用 tel URL scheme 然后通過 Handoff 啟動 iOS 設(shè)備上的 電話 app。這種情況只有在 FaceTime 配置為撥打電話號碼(默認(rèn)配置)并且 iOS 設(shè)備和 Mac 的 iCloud 賬號為同一個賬號時才會發(fā)生。(否則在 macOS 上使用 tel scheme 會直接打開 FaceTime app)。
You can specify phone links explicitly in both web and native iOS apps using the tel URL scheme. The following examples show the strings formatted for Safari and for a native app:
在 web 和 原生 iOS app 上你都可以使用 tel URL scheme。以下的例子展示了該 scheme 的規(guī)則:
<a href="tel:1-408-555-5555">1-408-555-5555</a>
tel:1-408-555-5555
To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone app supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone app does not attempt to dial the corresponding phone number. If your app receives URL strings from the user or an unknown source, you should also make sure that any special characters that might not be appropriate in a URL are escaped properly. For native apps, use the stringByAddingPercentEscapesUsingEncoding: method of NSString to escape characters, which returns a properly escaped version of your original string.
為了避免用戶撥打惡意重定向電話或者更改電話、賬號的行為,電話 app 支持 tel scheme 中大部分但并非全部的特殊字符。具體來說,如果 URL 中包含 * 或者 # 字符,電話 app 不會嘗試撥打相應(yīng)的手機(jī)號碼。如果你的 app 收到用戶或者未知來源的 URL 字符串,你應(yīng)該確保 URL 中的特殊字符能夠被正確轉(zhuǎn)義。在原生 app 中,使用 NSString 類中的 stringByAddingPercentEscapesUsingEncoding: 方法來轉(zhuǎn)義,該方法會返回轉(zhuǎn)義后的字符串。
In Safari on iOS, telephone number detection is on by default. However, if your webpage contains numbers that can be interpreted as phone numbers, but are not phone numbers, you can turn off telephone number detection. You might also turn off telephone number detection to prevent the DOM document from being modified when parsed by the browser. To turn off telephone number detection in Safari on iOS, use the format-detection meta tag as follows:
在 iOS 的 Safari 瀏覽器上,電話號碼檢測是默認(rèn)開啟的。但是如果你的網(wǎng)頁上包含一些被誤認(rèn)為電話號碼的數(shù)字,你可以關(guān)閉電話號碼檢測。為了防止瀏覽器解析DOM時篡改電話號碼,你也可以關(guān)閉電話號碼檢測功能。使用 format-detection 標(biāo)簽來關(guān)閉 iOS 中的 Safari 電話檢測功能,如下所示:
<meta name = "format-detection" content = "telephone=no">
Listing 2-1 shows a simple webpage in which automatic telephone number detection is off. When displayed in Safari on iOS, the 408-555-5555 telephone number does not appear as a link. However, the 1-408-555-5555 number does appear as a link because it is in a phone link.
2-1 清單展示了一個關(guān)閉電話檢測的簡單網(wǎng)頁。當(dāng)網(wǎng)頁展示在 iOS 的 Safari 中時, 408-555-5555 并不會展示成鏈接的樣子。然而, 1-408-555-5555 會被顯示成一個鏈接因為它確實是一個超鏈接(標(biāo)簽)。
Listing 2-1 Turning telephone number detection off
For more information about the tel URL scheme, see RFC 2806 and RFC 2396 .
有關(guān) tel URL scheme 的詳細(xì)信息,請參閱 RFC 2806 和 RFC 2396 。
The facetime URL scheme is used to initiate a FaceTime call to a specified user. You can use the phone number or email address of a user to initiate the call. When a user taps a FaceTime link in a webpage, iOS confirms that the user really wants to initiate a FaceTime call before proceeding. When an app opens a URL with the facetime scheme, iOS opens the FaceTime app and initiates the call without prompting the user. When opening FaceTime URLs on macOS, the system always prompts the user before initiating a call.
faceTime URL scheme 用來給指定用戶發(fā)起 FaceTime 通話。你可以用戶的使用電話號碼或者郵件地址來發(fā)起。當(dāng)用戶點擊一個網(wǎng)頁上的 FaceTime 鏈接時, iOS 系統(tǒng)會在繼續(xù)之前讓用戶進(jìn)行確認(rèn)。當(dāng)一個 app 打開 facetime URL時, iOS 不會提示用戶而是直接打開 FaceTime app。(實測iOS10以下不會提醒,iOS10及以上會彈出確認(rèn)框)在 macOS 上打開 FaceTime URL 的時候,系統(tǒng)總是會在打開之前提醒用戶。)
You can specify FaceTime links explicitly in both web and native iOS apps using the facetime URL scheme. The following examples show the strings formatted for Safari and for a native app:
在 web 和 原生 iOS app 上你都可以使用 facetime URL scheme 來制定一個 FaceTime 鏈接。以下的例子展示了該格式的字符串:
To prevent users from maliciously redirecting calls or changing the behavior of a phone or account, the FaceTime app supports most, but not all, of the special characters in the facetime schemes. Specifically, if a URL contains the * or # characters, the app ignores those characters when they are included after the phone number. If your app receives URL strings from the user or from an unknown source, use the stringByAddingPercentEscapesUsingEncoding: method of NSString to generate a properly escaped version of the original string before opening the URL.
為了避免用戶撥打惡意重定向電話或者更改電話、賬號的行為,F(xiàn)aceTime app 支持 facetime scheme 中大部分但并非全部的特殊字符。具體來說,如果 URL 中包含 * 或者 # 字符,并且當(dāng)這些字符都在電話號碼后面時,F(xiàn)aceTime app會忽略他們 。如果你的 app 收到用戶或者未知來源的 URL 字符串,你可以使用 NSString 類中的 stringByAddingPercentEscapesUsingEncoding: 方法來轉(zhuǎn)義后在進(jìn)行打開。
Use the sms scheme to compose a text message and specify a recipient.
使用 sms scheme 來編寫短信并指定接收人。
The sms scheme is used to launch the Messages app. The format for URLs of this type is “ sms: <phone> ”, where <phone> is an optional parameter that specifies the target phone number of the SMS message. This parameter can contain the digits 0 through 9 and the plus ( + ), hyphen ( - ), and period ( . ) characters. The URL string must not include any message text or other information.
sms scheme 用來啟動 短信 app。這個 URL 的格式是 “ sms: <手機(jī)號> ”, <手機(jī)號> 是一個可選參數(shù),這是用來指定短信發(fā)送到誰的手機(jī)號上。這個參數(shù)里可以包含數(shù)字0~9, + , - , . 。這個 URL 字符串中不能包含包括短信文本在內(nèi)的其他信息。
The following examples show strings formatted for Safari and for native apps.
Use specially formatted URLs to open the Maps app and display directions or locations.
用特定格式的 URL 來打開 地圖 app 并顯示指定方向或者坐標(biāo)。
The maps URL scheme is used to show geographical locations and to generate driving directions between two points. If your app includes address or location information, you can use map links to open that information in the Maps app in iOS or macOS.
地圖 URL scheme 用來顯示地理位置以及兩個地點之間的導(dǎo)航。如果你的 app 包含地址或者位置信息,你可以使用 map 鏈接在 iOS、macOS 地圖 app 上打開該地址或位置。
Unlike some schemes, map URLs do not start with a “maps” scheme identifier. Instead, map links are specified as regular http links and are opened either in Safari or the Maps app on the target platform.
map URL 不像其他一些 scheme 使用 "maps" 開頭。取而代之的是使用常規(guī)的 http 鏈接,并在 Safari 或者其他平臺的 地圖 app 中打開。
Table 5-1 lists the supported parameters along with a brief description of each.
表格 5-1 列舉了每個支持的參數(shù)以及其簡要說明。
Table 5-1 Supported Apple Maps parameters
You can use the maps URL scheme to help the user:
你可以使用地圖 URL scheme 幫助用戶完成下面這些操作:
To perform a search, supply a properly encoded URL string as the value of the q parameter. For example:
使用一個經(jīng)過編碼的正確的URL字符串作為 q 參數(shù)的值來執(zhí)行搜索。舉個例子:
http://maps.apple.com/?q=Mexican+Restaurant
To specify a location for search, you can supply a value for the near parameter, or combine the sll parameter with either the z or sspn parameters. You can also set the map type using the t parameter, as shown here:
在搜索指定位置時,你可以使用 near 參數(shù),或者結(jié)合 z 或者 sspn 和 sll 參數(shù)共同使用。當(dāng)然你也可以使用 t 參數(shù)來指定地圖類型,比如這樣:
http://maps.apple.com/?q=Mexican+Restaurant&sll=50.894967,4.341626&z=10&t=s
To provide navigation directions from one location to another, supply the start and destination addresses in the saddr and daddr parameters as shown below. You can also supply much more detail for the start and destination addresses than is shown here.
使用 saddr 和 daddr 參數(shù)來指定起始以及目的地位置,從而提供導(dǎo)航功能。你還可以提供比如下示例中更多的詳細(xì)參數(shù)。
http://maps.apple.com/?saddr=Cupertino&daddr=San+Francisco
To specify a transport type, you can use the dirflg parameter as shown here:
如下所示,你可以使用 dirflg 參數(shù)指定交通方式:
http://maps.apple.com/?saddr=San+Jose&daddr=San+Francisco&dirflg=r
You can omit the start address when you want to provide directions “from here.” The following example shows a search from here that provides driving directions in a hybrid map.
當(dāng)你想從當(dāng)前位置開始查詢線路時,你可以忽略起始位置參數(shù)。下面這個例子展示了在混合地圖中使用駕車到達(dá)指定地點的線路。
http://maps.apple.com/?daddr=San+Francisco&dirflg=d&t=h
To display a specific location, use the ll parameter to center the map at the specified position as shown here:
要顯示特定的位置,那么使用 ll 參數(shù)來指定地圖中心點的坐標(biāo),如下所示:
http://maps.apple.com/?ll=50.894967,4.341626
Another way to display a location is to specify an address, such as:
另一種顯示特定位置的方式是使用指定的地址,如下所示:
http://maps.apple.com/?address=1,Infinite+Loop,Cupertino,California
If you use both the ll and address parameters, ll takes precedence over address . If you include a name in the value of the q parameter, Maps tries to match the name at the specified location.
如果你同時使用了 ll 和 addres 參數(shù),那么會優(yōu)先使用 ll 參數(shù)。如果你的參數(shù)中包含了 q 參數(shù),那么 地圖 app 會嘗試在指定位置處匹配這個名稱。
Use specially formatted URLs to open iTunes and display items in the iTunes Music Store.
用特定格式的 URL 來打開 iTunes app 并顯示 iTunes 音樂商店中的指定項目。
The iTunes URL scheme is used to link to content on the iTunes Music Store. The iTunes URL format is complicated to construct, so you create it using an online tool called iTunes Link Maker. The tool allows you to select a country destination and media type, and then search by song, album, or artist. After you select the item you want to link to, it generates the corresponding URL.
iTunes URL scheme 用來鏈接到 iTunes 音樂商店。由于 iTunes URL 的格式比較復(fù)雜,所以你可以使用 iTunes Link Maker 這個在線工具來創(chuàng)建。通過該工具,你可以對國家、媒體類型進(jìn)行篩選并搜索歌曲、專輯或藝術(shù)家。當(dāng)你選擇了項目后會生成相應(yīng)的 URL 。
The following examples show the strings you would use in Safari and in a native iOS app to link to a song on the iTunes Music Store. The HTML example includes the complete link returned by the iTunes Link Maker tool, which includes a link to any appropriate artwork for the target link.
下面這個例子展示了一個在 Safari 和 原生 iOS app 中可以使用的 URL 字符串。 HTML 例子中就包含了一個使用 iTunes Link Maker 工具生產(chǎn)的指向合適圖片的鏈接。
http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?i=156093464&id=156093462&s=143441
For more information on creating iTunes links, see iTunes Link Maker FAQ . That webpage contains a link to the iTunes Link Maker tool.
有關(guān) iTunes 鏈接 的詳細(xì)格式方案信息,請參閱 iTunes Link Maker FAQ 。該網(wǎng)站中包含了 iTunes Link Maker 工具的鏈接。
Use specially formatted URLs to open YouTube videos in Safari.
在 Safari 中使用指定格式的 URL 打開 YouTube 視頻。
The YouTube URL scheme is used to connect to the YouTube website to play the specified video. If your app links to YouTube content, you can use this scheme to play videos from your app.
YouTube URL scheme 用來打開 YouTube 網(wǎng)站并播放指定的視頻。如果你的 app 有鏈接到 YouTube 的內(nèi)容,那么你可以從 app 中跳轉(zhuǎn)并播放視頻。
Unlike some schemes, YouTube URLs do not start with a “youtube” scheme identifier. Instead, they are specified as regular http links but are targeted at the YouTube server. The following examples show the basic strings you would use in Safari and in an app to show a YouTube video. In each example, you would need to replace the VIDEO_IDENTIFIER value with the identifier of the video you wanted to display:
YouTube URL 并不像其他 scheme 一樣以 "youtube" 開頭。而是使用指向 YouTube 服務(wù)的常規(guī) http 鏈接。以下例子中展示了在 Safari 和 app 中用來展示 YouTube 視頻的基本字符串。在每個例子中你需要將 VIDEO_IDENTIFIER 替換成你想要播放的視頻 id :
以上就是關(guān)于地圖url是什么意思相關(guān)問題的回答。希望能幫到你,如有更多相關(guān)問題,您也可以聯(lián)系我們的客服進(jìn)行咨詢,客服也會為您講解更多精彩的知識和內(nèi)容。
推薦閱讀:
公司位置怎么定位到微信地圖上(公司位置怎么定位到微信地圖上呢)
黃浦區(qū)景觀設(shè)計效果圖推薦(黃浦區(qū)景點地圖)
家用空調(diào)排行榜前十名(家用中央空調(diào)排行榜前十名)