Getting current position

You can get the device’s current position using the getCurrentPosition() function.

Method summary

getCurrentPostion(options)

  • returns – Returns a Position object containing the location information
  • params
    •  Geolocation Options

For instance,

<cfset curpos = cfclient.geolocation.getCurrentPosition()>


Example

See Using the Geolocation APIs

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy