[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f8PpolGg5csEiseJ4RuAAdQ488AOPw-eMP2edIj6mi-4":3},{"slug":4,"display_name":4,"profile_url":5,"plugin_count":6,"total_installs":7,"avg_security_score":8,"avg_patch_time_days":9,"trust_score":10,"computed_at":11,"plugins":12},"ochrelabs","https:\u002F\u002Fprofiles.wordpress.org\u002Fochrelabs\u002F",1,10,85,30,84,"2026-04-05T18:22:25.578Z",[13],{"slug":14,"name":15,"version":16,"author":4,"author_profile":5,"description":17,"short_description":18,"active_installs":7,"downloaded":19,"rating":20,"num_ratings":20,"last_updated":21,"tested_up_to":22,"requires_at_least":23,"requires_php":24,"tags":25,"homepage":31,"download_link":32,"security_score":8,"vuln_count":20,"unpatched_count":20,"last_vuln_date":33,"fetched_at":34},"ochre-w3c-geolocation-services","Ochre W3C Geolocation Services","0.04","\u003Cp>\u003Ca href=\"http:\u002F\u002Fwww.ochrelabs.com\u002Fwordpress-plugins\u002Fochre-geolocation\" title=\"Ochre's Geolocation Services plugin for WordPress\" rel=\"nofollow ugc\">Ochre’s Geolocation Services plugin for\u003Cbr \u002F>\nWordPress\u003C\u002Fa>  utilizes the \u003Ca href=\"http:\u002F\u002Fdev.w3.org\u002Fgeo\u002Fapi\u002Fspec-source.html\" title=\"Geolocation API Specification\" rel=\"nofollow ugc\">W3C Geolocation API\u003C\u002Fa> to retrieve a visitor’s physical location, enabling a\u003Cbr \u002F>\nWordPress website to present content relevant to a visitors current physical location such as local maps, event listings, branch and franchise locations, social media and other information that is geographically\u003Cbr \u002F>\ninteresting.\u003C\u002Fp>\n\u003Cp>The plugin provides three “back end” action hooks for use by your or third party plugins or theme actions, and AJAX actions for “front end” customization such as executing javascript with the resolved Location information, redirecting to a new page, or refreshing the current page.\u003C\u002Fp>\n\u003Ch3>Configuration\u003C\u002Fh3>\n\u003Cp>Global Configuration is available from the WordPress settings->Ochre Geolocation page:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Global or per-post\u002Fper page geolocation behavour\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Per-page and per-post configurations include:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Executing custom javascript\u003C\u002Fli>\n\u003Cli>Redirecting to a URL\u003C\u002Fli>\n\u003Cli>Performing a page refresh\u003C\u002Fli>\n\u003Cli>Firing off the ochregeo actions but doing nothing on the front end\u003C\u002Fli>\n\u003Cli>Disabling completely\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>Actions\u003C\u002Fh3>\n\u003Cp>The following actions for do_action() are fired when a Geolocation update is received:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>ochregeo_received_nosupport : No Geolocation support in the device\u002Fbrowser\u003C\u002Fli>\n\u003Cli>ochregeo_received_unknownpos : A position could not be retrieved\u003C\u002Fli>\n\u003Cli>ochregeo_received_location : Position was received.  This action is passed the OCHRELABS_WP_Geolocation object as its only argument\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>AJAX actions\u003C\u002Fh3>\n\u003Cp>The following AJAX actions are implemented:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>(nopriv) ochregeo_ochregeos : Transmits location information and executes an action based on a per-post\u002Fpage or global setting.\u003C\u002Fli>\n\u003Cli>(nopriv) ochregeo_get_coordinates : Retrieves last received location information. (we haven’t tested this)\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>Executing custom javascript after a succesful Geolocation update\u003C\u002Fh3>\n\u003Cp>Javascript executed on a per-page\u002Fpost or global basis has access to a \u003Ccode>res\u003C\u002Fcode> object\u003Cbr \u002F>\ncontaining information from the Geolocation Service plugin.\u003C\u002Fp>\n\u003Cp>Properties of this object are:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>res.la; \u002F\u002F latitude\nres.ll; \u002F\u002F longitude\nres.ev; \u002F\u002F elevation (not always available - do not rely on)\nres.ac  \u002F\u002F accuracy (not always available - do not rely on)\n\nIf reverse geo coding is enabled, the object may also contain:\n\nres.country  \u002F\u002F country\nres.countryc \u002F\u002F country code\nres.state    \u002F\u002F state\nres.statec   \u002F\u002F state code\nres.city     \u002F\u002F city\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>El Quickie API Reference\u003C\u002Fh3>\n\u003Cp>`\u003Cbr \u002F>\n\u002F\u002F This is the Ochre Geo object instantiated by the plugin.\u003Cbr \u002F>\n$ochre_geo = new OCHRELABS_WP_Geolocation();\u003C\u002Fp>\n\u003Cp>\u002F\u002F Get status of the current geolocation request.  $ochre_geo::STATUS_UPDATED means you have “valid” coordinate data.\u003Cbr \u002F>\n\u002F\u002F Constants are:\u003Cbr \u002F>\n  $ochre_geo::STATUS_QUERY;        \u002F\u002F waiting for update from client\u003Cbr \u002F>\n  $ochre_geo::STATUS_UPDATED;      \u002F\u002F received coordinate update from client\u003Cbr \u002F>\n  $ochre_geo::STATUS_NOTSUPPORTED; \u002F\u002F client does not support geo location\u003Cbr \u002F>\n  $ochre_geo::STATUS_ERROR;        \u002F\u002F an error was returned from the client\u003Cbr \u002F>\n  $ochre_geo::STATUS_UNKNOWNPOS;   \u002F\u002F location was unknown\u003Cbr \u002F>\n  $ochre_geo::STATUS_DISABLED;     \u002F\u002F module has been told not to present geolocation query\u003C\u002Fp>\n\u003Cp>$ochre_geo->get_status();\u003C\u002Fp>\n\u003Cp>\u002F\u002F Set the location information manually (not normally needed)\u003Cbr \u002F>\n$ochre_geo->set_coordinates($latitude,$longitude,$elevation=0,$accuracy=0);\u003C\u002Fp>\n\u003Cp>\u002F\u002F get the current resolved location information – check get_status() first before relying on this data!\u003Cbr \u002F>\n\u002F\u002F the returned array will be something like: array(“latitude”=>49.1234, “longitude”=>”-123.1234″,”elevation”=>0,”accuracy”=>0);\u003Cbr \u002F>\n$ochre_geo->get_coordinates();\u003C\u002Fp>\n\u003Cp>\u002F\u002F geocodes the current resolved location information and returns it as an array like array(“city”=>”Vancouver”,”country”=>”Canada”,”state”=>”British Columbia”,”statec”=>”BC”,”country”=>”Canada”,”countryc”=>”CA”)\u003Cbr \u002F>\n$ochre_geo->geocode();\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003Ch3>Reverse Geo Coder\u003C\u002Fh3>We've thrown in Yahoo! place finder Geocoding support.  The geocoder()\nreturns an array consisting of something like:\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>array(\u003Cbr \u002F>\n    “city”=>”Vancouver”,”\u003Cbr \u002F>\n    “country”=>”Canada”,\u003Cbr \u002F>\n    “state”=>”British Columbia”,\u003Cbr \u002F>\n    “statec”=>”BC”,\u003Cbr \u002F>\n    “country”=>”Canada”,\u003Cbr \u002F>\n    “countryc”=>”CA”\u003Cbr \u002F>\n    )\u003Cbr \u002F>\n`\u003C\u002Fp>\n\u003Cp>Geo Coding support is still young and subject to change.  It’s not hooked into the Javascript API, and since there are at least a few geo coder javascript api’s already out there we haven’t decided whether to do this or not.\u003C\u002Fp>\n","Geolocation Services attempts to retrieve a visitor's physical location, allowing for geographically relevant content to be delivered.",2451,0,"2012-01-09T20:58:00.000Z","3.3.2","3.0.0","",[26,27,28,29,30],"geo-location","geolocation","location","ochre","w3c","http:\u002F\u002Fwww.ochrelabs.com\u002Fwordpress-plugins\u002Fochre-geolocation","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fochre-w3c-geolocation-services.zip",null,"2026-03-15T15:16:48.613Z"]