/* Freewheeling Easy Mapping Application * * A collection of routines for display of trail maps and amenities * * copyright Roy R Weil 2019 - https://royweil.com * */ == 2024-06-17 deleted local .get == 10.2.19 == 2023-01-01 Faature changed google update bizAge sort from date ro bizlat security added some calls to not allowed to edit Fix-refactor how to handle the web_resource in writeup fix speeling of task to book output feature change bizId to remove spaces - ?fizxpace=true refactor chage biz id for spces change refactor edit biz to sue display_class feature added extra parameter to columnread Fix recovery on time limit Fix recoveryon extract infomation not there fix update plugin check feature book dates display duplicate trail names refactor target on problems == 10.1.7 2022-06-12 == fix missng trailname in format trail link refactor color line in change biz id fix trail nme displa in trailhead list refactor add a fix/?task=trailheads fix clean up merge msg .= enhacement add trail link to TOC page == 10.1.19 == fix messed up class invokation in error msg in buildbusinessaccess:880 Feature added limit parameter to googleupdate/?bizAge ==10.1.18 2022-11-21 feature added jigsaw tools fix used ceil, floor on bike ranges feature sorted outfillers alphbetically == 10.1.17 2022-09-23 == fix milepostpng to create the correct .png icon style == 10.1.16 2-22-06-01 == refactor updateed to github == 10.1.10 2022-06-01 == refactor split into -edit and -kml == 10.1.9 ?? refactor clean p error messages == 2022-02-07 == feature Chnaged business line to pink == 2020-12-17 == Feature added abunchof bizUsed types Feature in amenity search,if not found, add link to google update feature distancedisplay check added milepost pass Feature distance display check, added previous force miles featue edit exception database table Feature do not push fileto servr if no update feature added updateBizVerifyDisplayFix by bizId feature added lineRanges fix by linid feature updaterooute of lat,lng change == 2020.12-01 == Refactor s[lit bussiness table 2 access Feature implmented table town refactor created function is_googleID Feature Restaurant xml Tweak Distance dealing with mileposts feature Distave noe can force previous Tweak http to https Refactor create ww-include, added to master php.ini via a2 control panel, software feafure fix - rename lines refacture created function freewheelingeasy_Google::fetchURL( $url ); Tweek Adjusted google costs Feature Handled point in the box ofmitople lines Refactore made the make book routine work feature createOneAmenityRoutePage added Refactor makehymlpage to work for routes == 2020-10-25 == Fix caused error 768 to display == 202010-27 == feature Split of business trail relation ship infomation Too many changd to enumerte == 2019-11-05 Refactor Added locaton from to setGlobals Refactor rename table rrw_trailsegments to rrw_segments Fix updated the region latitudes and longitudes Refactor redid the way that the trail status repot is created. used link list refactor changed the rre_setGlobals to setGlobals Refactor Chhangedhow the trail_mile table as built Feature Added kmlClean routines for the segment data Feature Deleted empty segments Feature essed with the email routine, go it to work Feature Added code to vaarious edit routines to update related data to avoid having to recalculate Feature created distanve calculator routine too verify distance == 2019-10-07 == Fix created lodging, campling summary variable and assigned google lodging to LX Feature in kml clean - changeStle( '#kmlLineStyle', 'trailOpen' ); Feature in kml clean - check that all lne.mapstyle are known Feature in kml clean - set pluscode and pitsburgh time, distance if not set Feature in kml clean - check for names with a double space Feature in kml clean - chack the icindlink and linidlink are valid feaure in kml clean - check that all businesses have service record Feature in kml clean - Check all servce reords have a business record Featue in kml clean - compare goole_types of food and loding exist in serve record Featue in kml clean - Check for miscellous duplicate stuff Featue in kml clean - When problem occurs, give some informatin as to which item is bad Feature in kml clean - if doing continuity check, rebuild some mileage tables Featue in kml clean - Clean up some segment checking Feature in fix added routine to help update the L LX, F FX mess Fix in fix efactored so only display, no auto fix Feature added an edit line routine to fix spelling and other things Refactor in calclateMP separted oout icon, trail, group processes Feature created more page s with different milage display for trails Feature Added common datalist dropdown for trail seletion feature added search for non google entries refactor removed businessaccess table Security put detail api call behind login requiment featue Calified the google vs databse messagesrefactor Refacctor Amenity ile createion so can create route file refactor doAllThingsFora Trail() to allow updates to data files when database changed == 2019-07-07 == Fix Handling of url items Fix Remove in the directions display Feature use icon name instead as milepost location by milepost = 999.99 f Feature If nearsest icin has no milage, pick another one Feature If nearsest icin has no milage, pick another one Feature If nearest icon > 25 feet do not route Feature Add hred to the various errors from clean == 2019-07-02 == Fix CalculateMP now updates the views Feature Calculate types of miles for all the routes Update replave a couple of 1609.xx with meters2Mile Fix Change bizId with mulitple tables havong the trailId field Feature Added a specified user to the insertIntoHistory routine Feature in eidt biz, added routines to handle missing parellel table entry Feature Changed display of the milepost Feature Changed diplay off business header Fix changed display of last updated date Feature Added display/update of line data Feature Removed requirement of parameter placeid in google update Feature Added display of line and routes to verify routes Fix Routing - find cloest icon even if not at end of line Feature Added feedback icon on Amenity display Feature Blank BizVerifyDisplay goes to unverified == 2019-06-22 == refactor renameed page freewheelingeasy-google-amenity to freewheeling-amenity Fix the register_activation_hook by moving it to main routine == 2019.06.21 == feature added trail milepost to the bisness database and various displays Refactor changed formatmeters2Mile routine to handle trailmilepost Feature added "near trail" and "on trail" to business loction distance Featue Changed the link to walking map to include business name and city fix viewing mode for modes = 21,27 Fix added globls to notintable routine to fix undefines fix output value for mode = 10 fix hidden entry for test less than70 chracters feature added more debugging output if debugUpdate == rue fix setting the values for checkboxes so they maintain value in the database Feature reworked getGoogleRoute to handle incon milepost data and recalculate laucn milepost refactor getGoogleRoute to eurn both prointout and data Feature getGoogleRoute thows an error on bad input Update Handle special case ROss Ave Refactor how to handle sipping disance that are along the trail Refactor Redu routing maplin to change feom simple gogle map to /dir google map Feature Added permission checks Update ause MP number to stick together, rather than split across lines Update chenage slug editbiz to edit_biz Refactor business Access setng into icon, trails, routes Feature Added stuff to assign milepost to icons Feature added ability to create the table/view trail_icons when fieds added Feature Added routinw to edit trail information, mostly havn go do with mileposts names Feature Added find feedback data routines Feature Added distance display to the business Feature Only get google data for the sesired type, rather than all type Refactor Handling of the amenity output roroutine Update update amenty output per Mary's suggestions featue change page name from amenities to Freewheelin-amenity Feature Added red edit icon for older data = 2019.05.22 = Refactor changed the way display tables handles "view" (m__noedit, listdata_noedit) Update replace code value of 3, with 6 Feature Added resetDisplayHear to enable two displays on a page refactor removed some "extract ($globals)" Fix changed metters2miles -> meters2Mile fix removed stray 1609.xxx Feature Added route points to getDistaceDirection Feature moved start point of route from icon to cloest trail point Fix bearing calculation to be trail to biz Fiz handle bearing 0 to 22 as N featre Added ft output to the formatmeters2Mile routine Refactor Splilt and revised segement reporting/editing Feature addeed trails, regions, icons to the change id routine refactor Changed views into updated tables Feature In clean - check icos for missing latlng Feature In clean - check trails missing regions Feature In clean - check linework missing regions Feature In clean - checl region lable locains in range Feature In clean - check business are associated with an icon Feature In clean - check business are associated with an service Feature In clean - check service are associated with an business Feature In clean - check for nul latitudes Feature remove churches Feature Added advertizement to bottom of amenities = 2019.05.04 = Feature implemented Noedit in the display_table_inc Feature Added iconName search to the Amenities Search Refactor Rearranged the UI for Amenities Search Feature Added admin security to the Amenities Search results Feature Added icon edit routine Reactor Cleaned up some filenames Feature Added segemny dump routine Refactor Localized the delete business routine Featue added public source field to segment table, and edit thereof Feature In clean, added treim of the name fields Feature In clean, added code to check continity of segment reports Feature In clean, check for trailheads without parking Refactor changed useinprint bits to two varibles useonmaps, istrailhead Refactor improved the counting of amenity entries Refactor Dealt with iconNames that contain ticticktoe # =2019.04.26 = Refactor Change errorStart to ErrorBeg Refactor moved displayStuff from edit to map feature created, not tested edit-icons Refactor changed spelling of rrw_diretocry to rrw_directory Feature added business name to service table Feature Added creation fo the trailLines view Feature Reworked the segments display creation and edit Fix When bz changed from used to not used, remove from businessaccess table Fix update some duplicate error numbers Cleanup Removed some dead code Feature Added "notallowedToEdit" routne to improve security of who can make what changes Fix Added Camping to the trail dispay Fix changed offitters label cnt to work = 2019.04.20 = Feature Added code 11 to display link, with no update Feature Added option mode to the "cplumns" routine Feature Handled mode of zero and one in the "columnURLorId" routine Feature Added view and edit mode to the amenity search Refactor UI Moved edit from right side of screen to the left Feature Added display only, no edit to business display Feature Added control of who can edit the business data feature Added a force update to the "SearchWithPlaces" routine Fix Changed limits of the latitude to accomodate DC Fix Adjusted coordinates of the "emerald" region, removed specailtest Added second id to the "freewheeling_mapping_gatherSection" routine, but not used Fix Removed extra '(apostophe) from id= Fix Tried county backwards for removal of displayed items in attempt to fix column shift Feature changed version numbers to date git-rename edit-comment, eidt-seg-reports, edit-service = 2019-03-23 = Fix: revised code to handle ' and $ in the bizname Known Err: Does not handle + in the bixname Fix: the history for adding city/stret, so that google_update does not replace refactor: moved the wpdbExtra routine to mapping, to keep write-up happy Fix added setglobels to the setcookies routine Refactor: moved rrw_updateTheMenu to mapping Tweak Fixed latitude/longitude error message Fix googleupdate will only update the biznam, if it was blank Fix reduced timeout on the curl opt routine = 2019-03-22 = Featue: Added insert into history when adding city or sttreet to bizname Tweek Changed errorBeg to ErrorStart Feature: Added a delete bixId routine Feature: Added more table to the "delete me" name request Refactor: changed formatcell routines so the all funnel through one final display Feature: Added "city", "Street" opton to edit biz to append city and street name to bizname for handling duplicate biznames Feature: modiffied dup display do do a google-update on the latitude of a biz Refactor: Display of the edit option on suplicate display Clean-up: deleted more records form assciated table when deleing a bussiness Feature: Added rouine to control which reports an icon servies will appear Refactor: move rrwsetglobals from edit to map Refactor: sorted add_shortcodes Feature: added eader to count code rotine Feature: added more seletion to the google update toutine Feature: removed defalt seclection Feeatue: Added test not to update database of it had been updated with in the last day Feature: Added sqlClean routine to the wpdbExtra Refactor: major change in creating the amenities files Feature: implemented the selection bar for amenities