HTML5 Tutorial (Section 5-Geolocation in HTML5)

preview_player
Показать описание
HTML5 Tutorial (Section 5-Geolocation in HTML5)

The geolocation API lets you share your location with trusted web sites. The latitude and longitude are available to JavaScript on the page, which in turn can send it back to the remote web server and do fancy location-aware things like finding local businesses or showing your location on a map.

As you can see from the following table, the geolocation API is supported by most browsers on the desktop and mobile devices. Additionally, some older browsers and devices can be supported by wrapper libraries, as we’ll see later in this chapter.
Geolocation API support
IE 9.0+
Firefox 3.5+
Safari 5.0+
Chrome 5.0+
Opera 10.6+
iPhone 3.0+
Android 2.0+

Along with support for the standard geolocation API, there are a plethora of device-specific APIs on other mobile platforms. I’ll cover all that later in this chapter.
Рекомендации по теме
Комментарии
Автор

nice how can i save the user's location in database with this geolocation ???

hittrix