Summary of the invention
The embodiment of the present invention provides a kind of navigation guide method and apparatus, and having solved navigation guide system has a lot of versions, directly causes difficult management, confusion after sale, has also virtually increased the technical matters of the cost of work.
The embodiment of the invention discloses following technical scheme:
A kind of navigation guide method, comprises step:
Start before navigation, by external file template, obtain user terminal to guiding the guiding of reporting in module to report the custom parameter of mode;
While starting navigation, call the custom parameter of the guiding report mode in described external file template;
The custom parameter of reporting mode according to described guiding guides report.
Preferably, the custom parameter that mode is reported in described guiding comprises: report kind, report distance and report any one or any number of combinations in style, wherein:
Described report kind is used to indicate the guiding report kind that guides report;
The described distance of reporting is used to indicate the report distance that guiding report kind is guided to report;
Described report style is used to indicate the diction that guiding report kind is guided to report.
Preferably, starting after navigation, also comprising:
Guide the interface parameters of reporting module that the guiding report kind that guides report is activated or closed by setting, and the custom parameter of preserving guiding report mode is after changing to external file template;
The described custom parameter according to described guiding report mode guides to report and is specially: use the custom parameter of guiding report mode after changing to guide report.
Preferably, described by external file template, obtain user terminal the custom parameter of the guiding report mode in guiding report module is specifically comprised:
The guiding report mode that guiding is reported in module is classified according to road grade;
Sorted guiding report mode is showed to user terminal, so that by external file template, obtain the custom parameter of user terminal to the guiding report mode in guiding report module.
Preferably, described guiding report that kind comprises remote report, middle distance reports, the shortest report, closely reports, short distance is reported, arrive report, real-time broadcasting, report in advance, lane line is reported, slow down and go slowly that prompting is reported, dynamic traffic is reported, electronic eyes is reported, direct motion is reported, turn around to report and service area report.
A kind of navigation guide device, comprises parameter acquiring unit and parameter call unit:
Described parameter acquiring unit, for starting before navigation, by external file template, obtains the custom parameter of user terminal to the guiding report mode in guiding report module;
Described parameter call unit, while navigation, calls the custom parameter of the guiding broadcast mode in described external file template for starting;
Unit is reported in guiding, guides report for the custom parameter of reporting mode according to described guiding.
Preferably, the custom parameter that mode is reported in described guiding comprises: report kind, report distance and report any one or any number of combinations in style, wherein:
Described report kind is used to indicate the kind that guides report;
The described distance of reporting is used to indicate the report distance that guiding report kind is guided to report;
Described report style is used to indicate the diction that guiding report kind is guided to report.
Preferably, also comprise interface parameters control module:
Described interface parameters control module, the interface parameters of reporting module for guiding by setting activates or closes the guiding report kind that guides report, and the custom parameter of preserving guiding report mode is after changing to external file template;
Unit is reported in described guiding, guides report for the custom parameter that uses guiding report mode after changing.
Preferably, described parameter acquiring unit specifically comprises parametric classification subelement and shows subelement:
Described parametric classification unit, classifies according to road grade for the guiding report mode of guiding being reported to module;
Described displaying subelement, for sorted guiding report mode is showed to user terminal, so that by external file template, obtains the custom parameter of user terminal to the guiding report mode in guiding report module.
Preferably, described guiding report that kind comprises remote report, middle distance reports, the shortest report, closely reports, short distance is reported, arrive report, real-time broadcasting, report in advance, lane line is reported, slow down and go slowly that prompting is reported, dynamic traffic is reported, electronic eyes is reported, direct motion is reported, turn around to report and service area report.
As can be seen from the above-described embodiment, the present invention is on the basis without update routine source code, use the mode of external file and module interface setting parameter, the parameter development of reporting report distance, report content and the report kind of module for the guiding in navigation guide system goes out self-defined template, meet user's diversified demand, also facilitated administering and maintaining after sale.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
Embodiment mono-
Refer to Fig. 1, its method flow diagram that is a kind of navigation guide method of the present invention, the method comprises the following steps:
S101: start before navigation, by external file template, obtain user terminal to guiding the guiding of reporting in module to report the custom parameter of mode.
Preferably, described by external file template, obtain user terminal the custom parameter of the guiding report mode in guiding report module is specifically comprised:
The guiding report mode that guiding is reported in module is classified according to road grade, and shows user terminal.
It should be noted that, user is before startup onboard navigation system, can be by the interface setting via external file template, parameters in guiding report mode in navigation is carried out to the self-defined of personalization, simultaneously, in order not allow user produce the sensation of having no way of doing it to disposable in the face of numerous and diverse setting parameter, or certain customers and be bad at the software class operation of electronic product, external file template provides for the default option in different stage section and has set, so-called default option is set, be by applicable most of users' that user investigation and user feedback obtain many times the preferred set model of one, and, all guiding that external file template is reported the guiding of navigational system in module are reported kind according to guiding report mode to carry out the classification of system, make numerous and diverse data can be clear, representing to user of orderliness, and focus on guiding report realize mode, thereby reduce wrong generation.
Preferably, the custom parameter that mode is reported in described guiding comprises: report kind, report distance and report any one or any number of combinations in style, wherein:
Described report kind is used to indicate the guiding report kind that guides report;
The described distance of reporting is used to indicate the report distance that guiding report kind is guided to report;
Described report style is used to indicate the diction that guiding report kind is guided to report.
What need to further illustrate is, here report mode has only been enumerated report kind, reported distance and reported three kinds of parameters of style, this is a preferred example, can certainly be a kind of any one or multiple combination arbitrarily, and the present invention do not limit reporting the parameter kind of mode, can be to allow arbitrarily user carry out the parameter of personalized self-defining report mode.
Certainly, after each user uses external file template to modify to the parameters in guiding report mode, external file template can be stored described modification, and, while starting navigational system next time, all only read the guiding of up-to-date modification and report mode, namely such as, when user revises guiding report mode by external file template, navigational system is just used described amended guiding report mode to guide report, start before navigational system next time, user does not carry out revising in any guiding report mode, navigational system reads last described amended guiding report mode with regard to acquiescence and guides report, and afterwards all guide according to the method described above each time report, until user modifies to guiding report mode by external file template again.Certainly,, if user never carried out setting by external file template to guiding report mode, navigational system acquiescence reads the default option setting that external file template provides.
Special instruction, user also can set by guiding report mode to revert to original preferred set model, to prevent faulty operation or to forget the problem that operation steps causes by recovering default option.
The described guiding is here reported that kind comprises remote report, middle distance reports, the shortest report, closely reports, short distance is reported, is arrived report, real-time broadcasting, report in advance, lane line is reported, slow down and go slowly that prompting is reported, dynamic traffic is reported, electronic eyes is reported, direct motion is reported, turn around to report and service area report.
Certainly, this is a preferred kind of reporting, and the present invention reports kind to guiding and do not limit, can be in theory in attainable navigational system all guiding report kind.
S102: while starting navigation, call the custom parameter of the guiding broadcast mode in described external file template.
What need to further illustrate is, the mode that uses external file masterplate to customize the parameter in report mode to navigation, be easy to from now on the guiding of onboard navigation system be reported further modification and the expansion of content of module, for example, increase a new guiding and report function or kind etc., all need not revise source code or recompilate software, as long as revise some information on external file masterplate, in the time that navigation software moves again, will automatically read the new information in external file template, thereby dirigibility and the maintainability of navigational system are greatly improved.
S103: the custom parameter of reporting mode according to described guiding guides report.
Embodiment bis-
Refer to Fig. 2, its another method flow diagram that is a kind of navigation guide method of the present invention, the method comprises the following steps:
S201-S202 is referring to the S101-S102 in embodiment mono-.
S204: starting after navigation, guide the interface parameters of reporting module that the guiding report kind that guides report is activated or closed by setting, and the custom parameter that mode is reported in preservation guiding is after changing being to external file template, enters step S203,
S203 is specially: to use the custom parameter of guiding report mode after changing to guide report.
Passing through after step S201-S203, onboard navigation system guides report according to read the report mode parameter obtaining from external file template, on navigation software interface, have the OptionButton that guides the interface parameters of reporting module to obtain by setting, at this moment, if user thinks that some guiding report kind is unsatisfactory or does not want to have used, or while wanting to use some guiding to report kind, user can activate or close corresponding guiding report kind by clicking these OptionButtons.And above-mentioned change is saved in external file template.
It should be noted that, at every turn activate or close guiding by said method and report the guiding that change that kind causes is all considered as up-to-date modification and report mode.
It should be noted that, by step S204, the change meeting of guiding report mode is realized at once in navigational system here, and do not need to restart navigation software or other operation.
Embodiment tri-
Refer to Fig. 3, its structure drawing of device that is a kind of navigation guide device of the present invention, this device comprises parameter acquiring unit 31, parameter call unit 32 and guiding report unit 33:
Described parameter acquiring unit 31, for starting before navigation, by external file template, obtains the custom parameter of user terminal to the guiding report mode in guiding report module.
Preferably, described guiding report mode comprises: report kind, report distance and report any one or any number of combinations in style, wherein:
Described report kind is used to indicate the kind that guides report.
The described distance of reporting is used to indicate the report distance that guiding report kind is guided to report.
Described report style is used to indicate the diction that guiding report kind is guided to report.
Preferably, described guiding report that kind comprises remote report, middle distance reports, the shortest report, closely reports, short distance is reported, arrive report, real-time broadcasting, report in advance, lane line is reported, slow down and go slowly that prompting is reported, dynamic traffic is reported, electronic eyes is reported, direct motion is reported, turn around to report and service area report.
Certainly, this is a preferred kind of reporting, and the present invention reports kind to guiding and do not limit, can be in theory in attainable navigational system all guiding report kind.
Described parameter call unit 32, while navigation, calls the custom parameter of the guiding broadcast mode in described external file template for starting.
Unit 33 is reported in guiding, guides report for the custom parameter of reporting mode according to described guiding.
Embodiment tetra-
Refer to Fig. 4, its another structure drawing of device that is a kind of navigation guide device of the present invention, this device comprises parameter acquiring unit 41, parameter call unit 32, guiding report unit 33 and interface parameters control module 42:
Described parameter acquiring unit 41, for starting before navigation, by external file template, obtains the custom parameter of user terminal to the guiding report mode in guiding report module.
Described parameter acquiring unit 41 specifically comprises parametric classification subelement 43 and shows subelement 44:
Described parametric classification unit 43, classifies according to road grade for the guiding report mode of guiding being reported to module.
Described displaying subelement 44, for sorted guiding report mode is showed to user terminal, so that by external file template, obtains the custom parameter of user terminal to the guiding report mode in guiding report module.
Described parameter call unit 32 and guiding are reported unit 33 and in embodiment tri-, are described in detail, and repeat no more here.
Described interface parameters control module 42, the interface parameters of reporting module for guiding by setting activates or closes the guiding report kind that guides report, and the custom parameter of preserving guiding report mode is after changing to external file template;
Unit 33 is reported in described guiding, guides report for the custom parameter that uses guiding report mode after changing.
As can be seen from the above-described embodiment, the present invention is on the basis without update routine source code, use the mode of external file and module interface setting parameter, the parameter development of reporting report distance, report content and the report kind of module for the guiding in navigation guide system goes out self-defined template, meet user's diversified demand, also facilitated administering and maintaining after sale.
It should be noted that, one of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above a kind of navigation guide method and apparatus provided by the present invention is described in detail, applied specific embodiment herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.