Tagged: Geolocation

Introduction to Mapping with HTML5 Geolocation

You can use maps with HTML5 Geolocation.

In this post, you will see how to use Bing Maps and Google Maps in your HTML5 Geolocation application.

Map APIs allow you to go deeper. For example, you can:

  • Create pushpins
  • Provide infoboxes
  • Tile layers
  • Show a traffic layer
  • Provide turn-by-turn directions
  • Search
  • and much more.

Let’s get started.

Continue reading

Advertisements

HTML5 Tutorial – Geolocation

The HTML5 Geolocation API is used to get the geographical position of a user.

Geolocation API defines a high-level interface to location information associated only with the device hosting the implementation, such as latitude and longitude.

Common sources of location information include Global Positioning System (GPS) and location inferred from network signals such as IP address, RFID, WiFi and Bluetooth MAC addresses, and GSM/CDMA cell IDs, as well as user input. No guarantee is given that the API returns the device’s actual location.

Since this can compromise user privacy, the position is not available unless the user approves it.

Continue reading