Firefo...cation(3pm)
π NAME π
okay so bestie, <pink>Firefox::Marionette::GeoLocation</pink> β it's a Perl module (that's the <cyan>3pm</cyan> manual vibe, for all my fellow perl girlies π«Ά) that represents a GeoLocation for Firefox. that's it, that's the whole thing, and it's lowkey iconic β¨
πΈ VERSION πΈ
Version 1.63 π
β¨ SYNOPSIS β¨
like, here's the whole mood, fr fr:
use Firefox::Marionette();
my $firefox = Firefox::Marionette->new(geo => { lat => -37.814, lng => 144.96332 };
...
π¦ DESCRIPTION π¦
this module gives you a super easy interface to the GeoLocationCoordinates object in Firefox β that's the one documented over at https://developer.mozilla.org/en-US/docs/Web/API/GeolocationCoordinates π
π SUBROUTINES/METHODS π
π accuracy
returns the accuracy of the latitude and longitude properties, expressed in meters. cute and precise, we love that for her π
π altitude
returns the position's altitude in meters, relative to nominal sea level. heads up though β this value may not be defined π
π altitude_accuracy
returns the accuracy of the altitude expressed in meters. and again β this value may not be defined π
π country_code
returns the country_code (that's ISO 3166-1 alpha-2, https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the location. this value may not be defined π
π heading
returns the direction towards which the device is facing. this value, specified in degrees, indicates how far off from heading true north the device is. 0 degrees represents true north, and the direction is determined clockwise (which means that east is 90 degrees and west is 270 degrees). this value may not be defined β¨
π latitude
returns the position's latitude in decimal degrees. periodt π
π longitude
returns the position's longitude in decimal degrees. also periodt π
π new
accepts an optional hash as a parameter. the allowed keys are right down here, bestie π
accuracyβ the accuracy of thelatitudeandlongitudeproperties, expressed in meters.altitudeβ the accuracy of the altitude expressed in meters.altitude_accuracyβ accuracy of the altitude expressed in meters.headingβ the direction towards which the device is facing. this value, specified in degrees, indicates how far off from heading true north the device is.0degrees represents true north, and the direction is determined clockwise (which means that east is90degrees and west is270degrees).latβ seelatitude.latitudeβ the position'slatitudein decimal degrees.lonβ seelongitude.longβ seelongitude.longitudeβ the position'slongitudein decimal degrees.lngβ seelongitude.speedβ the velocity of the device in meters per second.tzβ the timezone as an Olson TZ identifier,https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List.
not me noticing altitude says "the accuracy of the altitude" π i am not editing that, i am just the messenger, and the messenger is respectfully keeping it exactly as written π
this method returns a new Firefox::Marionette::GeoLocation object π
π speed
returns the velocity of the device in meters per second. this value may not be defined πββοΈ
π timezone_offset
returns the timezone offset in minutes from GMT. this value may not be defined β°
π tz
returns the timezone as an Olson TZ identifier, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List. this value may not be defined π
π TO_JSON
required to allow JSON serialisation (https://metacpan.org/pod/JSON#OBJECT-SERIALISATION) to work correctly. this method should not need to be called directly, so like, hands off bestie π
π uri
this method returns the object encoded as a new URI. slay π₯
π©Ί DIAGNOSTICS π©Ί
None. literally nothing. silence. the calmest girl in the group chat π€«
βοΈ CONFIGURATION AND ENVIRONMENT βοΈ
Firefox::Marionette::GeoLocation requires no configuration files and no environment variables. she's low maintenance, she's self-sufficient, she's that girl π
π¦ DEPENDENCIES π¦
None. π
π INCOMPATIBILITIES π
None reported. no drama, no beef, we love a peaceful queen πΈ
π BUGS AND LIMITATIONS π
to report a bug, or to view the current list of bugs, please visit https://github.com/david-dick/firefox-marionette/issues π«Ά
π AUTHOR π
David Dick "<ddick@cpan.org>" β¨
π LICENSE AND COPYRIGHT π
Copyright (c) 2024, David Dick "<ddick@cpan.org>". All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perlartistic" in perlartistic.
π¨ DISCLAIMER OF WARRANTY π¨
okay bestie, deep breath, this part is in all caps because it MEANS it, i'm keeping every word exactly as-is π
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
and that's the whole page bestie!! π this lil cutie shipped with perl v5.40.1, dated 2025-03-16, and it lives in the Firefo...cation(3pm) corner of the manual β go be a main character with your geolocation data, ilysm, bye πβ¨π
π¦ where this page comes from
- debian trixie: libfirefox-marionette-perl 1.63-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms