CN108960568A - A kind of method and device of map scheduling - Google Patents

A kind of method and device of map scheduling Download PDF

Info

Publication number
CN108960568A
CN108960568A CN201810548804.3A CN201810548804A CN108960568A CN 108960568 A CN108960568 A CN 108960568A CN 201810548804 A CN201810548804 A CN 201810548804A CN 108960568 A CN108960568 A CN 108960568A
Authority
CN
China
Prior art keywords
map
style
services
position information
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810548804.3A
Other languages
Chinese (zh)
Inventor
黄威
马国庆
王培培
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201810548804.3A priority Critical patent/CN108960568A/en
Publication of CN108960568A publication Critical patent/CN108960568A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Operations Research (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of method and devices of map scheduling, the method comprise the steps that obtaining the first map style in specified application;To the corresponding first such map requests Map Services of first map style;When failing to the first such map requests Map Services, current map style is switched to the second specified map style;To the corresponding second such map requests Map Services of second map style.The present invention can pass through map automatic switchover technology, scheduled personnel are made to be not only restricted to a certain Map Services request exception and business operation can not be carried out, after the failure of a certain Map Services, automatically switch Map Services, to improve the robustness of specified application, the normal operation of dispatch service has been ensured.

Description

A kind of method and device of map scheduling
Technical field
The present invention relates to scheduling of resource technical fields, method and a kind of map tune more particularly to a kind of scheduling of map The device of degree.
Background technique
In current visual scheduling terminal solution, carrying out visual scheduling technology based on map is support solution party The important technology of case feasibility and robustness.
In the prior art, when carrying out visual scheduling, the location information of scheduled object can be obtained by map, And the location information is sent to dispatching party, in order to which dispatching party determines the position of scheduled object, it is scheduled work.So And when map can not provide location-based service, then it will affect the process of entire traffic control.
Summary of the invention
The present invention provides a kind of method of map scheduling and a kind of device of map scheduling, to solve existing to work as map When location-based service can not be provided, then the problem of will affect the process of entire traffic control.
To solve the above-mentioned problems, the invention discloses a kind of methods of map scheduling, which comprises
In specified application, the first map style is obtained;
To the corresponding first such map requests Map Services of first map style;
When failing to the first such map requests Map Services, current map style is switched to the second specified ground Graph type;
To the corresponding second such map requests Map Services of second map style.
Preferably, the method also includes:
When failing to the second such map requests Map Services, determine without available Map Services;
It prompts the user with currently without available Map Services.
Preferably, after the corresponding first such map requests Map Services to first map style, further includes:
When detect the corresponding key value mistake of first map or server corresponding with first map connection Failure then determines to fail to the first such map requests Map Services.
Preferably, current map style is switched when failing to the first such map requests Map Services described Before the second specified map style, further includes:
When failing to the first such map requests Map Services, the prompting message of service request failure is generated;
Show the prompting message.
Preferably, described in specified application, obtain the first map style, comprising:
Obtain the log-on message that user logs in specified application;
The log-on message is sent to dispatching platform;
It receives the dispatching platform and is directed to the first map style that the log-on message returns, wherein first map The type dispatching platform obtains after finding the log-on message in preset allocation list, is initially the login letter Cease the map style of configuration.
Preferably, described in specified application, after the first map style of acquisition, further includes:
First map style is saved in a manner of key-value pair, wherein the corresponding key name of the key-value pair is MapStatus is worth for first map style.
It is preferably, described to the corresponding second such map requests Map Services of second map style, comprising:
Real-time position information is obtained to corresponding second map of second map style;
Show the real-time position information;And/or the real-time position information is uploaded to dispatching platform, described The real-time position information is shown in dispatching platform.
It is preferably, described that the real-time position information is uploaded to dispatching platform, comprising:
If the real-time position information is non-standard coordinate format, the real-time position information is converted into standard coordinate Dispatching platform is uploaded to after format.
The invention also discloses a kind of device of map scheduling, described device includes:
First map style obtains module, for obtaining the first map style in specified application;
First Map Services request module, for being taken to the corresponding first such map requests map of first map style Business;
Map Services switching module is used for when failing to the first such map requests Map Services, by current map Type is switched to the second specified map style;
Second Map Services request module, for being taken to the corresponding second such map requests map of second map style Business.
Preferably, described device further include:
First reminding module, for determining without available map when failing to the second such map requests Map Services Service, and prompt the user with currently without available Map Services.
Preferably, described device further include:
Request failure judgment module, for when detecting the corresponding key value mistake of first map or with described the The corresponding server connection failure of one map then determines to fail to the first such map requests Map Services.
Preferably, described device further include:
Second reminding module, for generating service request failure when failing to the first such map requests Map Services Prompting message, and show the prompting message.
Preferably, the first map style acquisition module includes:
Log-on message acquisition submodule logs in the log-on message of specified application for obtaining user;
Log-on message sending submodule, for the log-on message to be sent to dispatching platform;
Map style receiving submodule is directed to the first map that the log-on message returns for receiving the dispatching platform Type, wherein first map style is the dispatching platform after finding the log-on message in preset allocation list It obtains, is initially the map style of the log-on message configuration.
Preferably, described device further include:
Map style preserving module, for saving first map style in a manner of key-value pair, wherein the key assignments It is MapStatus to corresponding key name, is worth for first map style.
Preferably, the second Map Services request module includes:
Location information acquisition submodule, for obtaining real time position letter to corresponding second map of second map style Breath;
Position information process submodule, for showing the real-time position information;And/or by the real-time position information It is uploaded to dispatching platform, to show the real-time position information in the dispatching platform.
Preferably, the position information process submodule is also used to:
If the real-time position information is non-standard coordinate format, the real-time position information is converted into standard coordinate Dispatching platform is uploaded to after format.
Compared with prior art, the present invention includes the following advantages:
In embodiments of the present invention, when in specified application to initial corresponding first ground of the first map style Figure can carry out Map Services switching, current map style is switched to the second specified ground when request Map Services fail Graph type, and to the corresponding second such map requests Map Services of the second map style, by map automatic switchover technology, make to be adjusted Degree personnel are not only restricted to a certain Map Services request exception and can not carry out business operation, after the failure of a certain Map Services, from Dynamic switching Map Services have ensured the normal operation of dispatch service to improve the robustness of specified application.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the embodiment of the method for map scheduling of the embodiment of the present invention;
Fig. 2 is a kind of structural block diagram of the Installation practice of map scheduling of the embodiment of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of step flow chart of the embodiment of the method for map scheduling of the embodiment of the present invention, this hair are shown Bright embodiment, which can be applied to such as logistics, floor manager, dispatches, in on-site law-enforcing scene, and in the above scenario, dispatcher can It is conversed with the Map Services by terminal device Field Force, intercommunication, video, task management and video pictures report Operation.
The embodiment of the present invention may include steps of:
Step 101, in specified application, the first map style is obtained;
In the concrete realization, specified application can be to be capable of providing the application program of visual scheduling service.It is specified Application program can be connect with dispatching platform, and dispatching platform is assisted to realize visual scheduling.
In practice, specified application can be communicated by server with dispatching platform.
Specified application may be mounted on terminal device, wherein the terminal device can include but is not limited to mobile phone, PDA (Personal Digital Assistant, personal digital assistant), laptop computer, palm PC etc. are mobile eventually End, also may include PC terminal, which can support Windows, Android (Android), IOS, WindowsPhone Etc. operating systems, the embodiment of the present invention to this with no restriction.
After specified application starting, the first map style can be determined, wherein first map style can be preparatory The initial map style of configuration.
In a preferred embodiment of an embodiment of the present invention, step 101 can specifically include following sub-step:
Sub-step S11 obtains the log-on message that user logs in specified application;
In the concrete realization, user can be registered first when using specified application, determine corresponding login Information, when user logs in specified application using log-on message, specified application can obtain the log-on message.
As an example, which may include the information such as login account, login password and group's code.Its In, group's code is for distinguishing different scheduled groups.
The log-on message is sent to dispatching platform by sub-step S12;
Sub-step S13 receives the dispatching platform and is directed to the first map style that the log-on message returns.
Wherein, first map style is that the dispatching platform finds the log-on message from preset allocation list It obtains afterwards, is initially the map style of the log-on message configuration.
Specifically, the log-on message can be sent to dispatching platform after specified application obtains log-on message.It adjusts After degree platform receives the log-on message, which is parsed, obtains corresponding group's code.Then, scheduling is flat Platform can find group code in preset allocation list, if searching successfully, obtain the corresponding map style of group code, As the first map style.If lookup is unsuccessful, using the map style of default as the first map style.
In the concrete realization, it can store in above-mentioned preset allocation list in advance as the map class of each scheduling group configuration Type, the map style can be used as the initial map style of each user in the scheduling group.
In one embodiment, in order to save the storage resource of dispatching platform, the database of dispatching platform connection can be with It is stored in Cloud Server.
As an example, the first map style may include the map style that various Map Services quotient provide, for example, the One map style may include Baidu map type, Amap type etc..
In allocation list, map style can save as a String field, be worth for ' baidu ', ' gaode ' etc..
The map style that dispatching platform is found according to group's code, can be used as the first map class corresponding with log-on message Type.
In the concrete realization, dispatching platform can also obtain other categories of the user according to log-on message from database Property information, for example, other attribute informations may include the IMEI of the terminal device where specified application (International Mobile Equipment Identity, international mobile equipment identification number) code, the user use third Account name and password of square video intercommunication service etc..
After dispatching platform obtains corresponding first map style of currently logged on user and other attribute informations, it can incite somebody to action First map style and other attribute informations are encapsulated into JSON character string and return again to specified application.
Specified application parses JSON character string, obtains corresponding first map style.
In a preferred embodiment of an embodiment of the present invention, can also include the following steps:
First map style is saved in a manner of key-value pair, wherein the corresponding key name of the key-value pair is MapStatus is worth for first map style.
Specifically, first map style can be saved into end after specified application obtains the first map style In the SharedPreferences of end equipment, wherein SharedPreferences is a lightweight in Android platform Class is stored, for some common configurations, such as Activity state etc. for saving application.SharedPreferences is provided The saving interface of the categorical datas such as Long, Int, String of java routine.
SharedPreferences can save data in a manner of key-value pair, when SharedPreferences needs to protect When depositing the first map style, key name can be MapStatus (map style), be worth the first map style for acquisition.
Further, SharedPreferences can also save mark available " available " character string of map, The corresponding key name of the character string can be MapChangeStatus (map variable condition), log in specified application in user After success, the finger of MapChangeStatus can be set to " available ", and (" available " indicates that specified application can To use double maps or multiple map services).
Step 102, to the corresponding first such map requests Map Services of first map style;
After specified application logins successfully, the value saved in inquiry MapChangeStatus first, if it is " available " then inquires the map style saved in MapStatus.Then positioning service is started by Application class (Service)。
In the concrete realization, if specified application want using some map Map Services, it is necessary first in advance to The map application one key (key) value, the key value can from being obtained by way of registration packet name in map server, And it is stored in specified application.
When specified application is to some such map requests Map Services, the encapsulation class of the map can be used to the map Map server send key value.
In a preferred embodiment of an embodiment of the present invention, can also include the following steps:
When detect the corresponding key value mistake of first map or server corresponding with first map connection Failure then determines to fail to the first such map requests Map Services.
Specifically, can by the corresponding key value of the first map of detection whether mistake, alternatively, corresponding with the first map The mode of server connection failure, to judge whether fail to the first such map requests Map Services, but the first map of specific detection Corresponding key value whether mistake, alternatively, the mode of server connection failure corresponding from the first map is according to different map classes Type and it is different.
It in one implementation, can be in the activity radio receiver achieved above of map, specifically, can be The BroadcastReceiver interface of the activity of map android achieved above realizes onReceiver method, simultaneously The included registerReceiver method of android can be used in activity to register Receiver into activity In.
Radio receiver can be sentenced after listening to broadcast message by onReceiver method listening broadcast message Whether the Action that the intent in disconnected broadcast message is carried is that the key values of Map Services reports an error broadcast or server connection failure Broadcast.The broadcast if the key value that the broadcast message is Map Services reports an error, determines the key value mistake of map, if the broadcast Message is server connection failure broadcast, then determines server connection failure corresponding with map.If it is determined that the key value of map Mistake or server connection failure corresponding with map then can be determined that and fail to corresponding such map requests Map Services.
It, can be with the information of timely learning such map requests failure, to improve subsequent Map Switch by radio receiver Timeliness.
In another implementation, can also by realize address code monitor come determine key value whether mistake, or Whether person's server connection corresponding with the first map fails.Specifically, can be worked as by address code querying method to obtain The geocoding of front position, and answer code is returned the result according to the acquisition of corresponding callback method, and further code comes according to response Determine corresponding serv-fail type.
For example, for Baidu map, when the corresponding server of Baidu map receives specified application transmission After key value, which can be judged, if it is determined that failure, can return to failure information in specified application Map encapsulation class in, encapsulation class can be sent when receiving failure information key value authentication failed broadcast.
For another example, for Amap, Amap provides AMapException class, in AMapException class In, what ERROR_CONNECTION was indicated is high moral server connection failure, and that ERROR_FAILURE_AUTH is indicated is Gao De The key value of service judges incorrectly, and when the misjudgment of key value, or when with high moral server connection failure, Amap service is asked Ask failure.
More specifically, in current Baidu positioning version, when coming across Baidu's server connection failure, Baidu's key value When incorrect, it can not be positioned.And Amap positioning version in, when occur incorrect key value, http connection failure, When server is safeguarded, it can not be positioned.
And the Map Services jar packet of Baidu is when carrying out service request to server, can check whether key value correct, with The connection of Baidu's server, if there is key value is incorrect or Baidu's server connection failure, Baidu map jar packet meeting By error message by broadcast in a manner of return to specified application.The locating reporting of specified application is that backstage is obtained automatically Reporting position is taken, therefore realizes positioning function in a manner of Service.And in the Service of Baidu's positioning, to realize broadcast The mode of receiver monitors the broadcast of the such map requests failure of Baidu map jar packet sending, so as to the map of decision request Whether service fails.
But in Amap, since Amap jar packet will not the connection of key value is incorrect or Amap server The error message of failure returns in a broadcast manner, therefore in high moral positioning Service, by the address for realizing Amap Monitor GeocodeSearchListener monitor is encoded, and passes through the address code querying method of Amap GeocodeQuery obtains the geocoding of current location, and is obtained and returned according to onGeocodeSearched callback method As a result answer code respectively indicates in server updating, http connection failure, height if answer code is 2002,1086,1002 Moral key value is incorrect, i.e., high moral Location Request failure.
In a preferred embodiment of an embodiment of the present invention, can also include the following steps:
When failing to the first such map requests Map Services, the prompting message of service request failure is generated;Display institute State prompting message.
In the concrete realization, when failing to the first such map requests Map Services, mentioning for service request failure can be generated Awake information, for example, the prompting message generated can be " failure of Baidu map service request ", or " Amap service request Failure ".
After generating prompting message, the prompting message can be shown to user.In one embodiment, it specifies and applies journey Sequence can with auto-returned homepage, then in homepage by way of Toast display alarm information, wherein Toast is It is used to show a kind of mechanism of information in Android, Toast is that do not have focal, and the limited time that Toast is shown, mistake Regular hour will disappear automatically.
Step 103, when failing to the first such map requests Map Services, current map style is switched to specified The second map style;
It in the concrete realization, then can be true when radio receiver, which is listened to, to fail to the first such map requests Map Services Surely the second specified map style, and current map style is switched to the second specified map style.
In practice, which can be defaulted as the corresponding team's configuration of group's code for dispatching platform , the map style different from the first map style.It is also possible to select in the ground Figure List that user is shown by dispatching platform Map style, the embodiment of the present invention to this with no restriction.
Second map style can be one or more, can in advance be every when second map style has multiple A second map style configuration preference level, or weight is configured for each second map style, and according to weight calculation each the The priority of two map styles.When needing to replace map style, priority can be preferentially chosen most according to the sequence of priority High the second map style replaces the first map style.
In one embodiment, the second map style can be write into SharedPreferences Inside MapChangeStatus, current map style is switched to the second map style.Specifically, working as to the first map When requesting Map Services failure, then " available " in MapChangeStatus is replaced with into the second map style, and lead to It crosses Application class and closes the positioning Servcie of the first map, while checking the value saved in MapChangeStatus, root Start the positioning Service of corresponding second map style according to the map style saved in MapChangeStatus.
Step 104, to the corresponding second such map requests Map Services of second map style.
In the concrete realization, as the MapChangeStatus write into the second map style in SharedPreferences In after, the activity of corresponding second map of the second map style can be entered, with to the second such map requests Map Services.
In a preferred embodiment of an embodiment of the present invention, when failing to the second such map requests Map Services, this hair Bright embodiment may include steps of:
When failing to the second such map requests Map Services, determine without available Map Services;It prompts the user with and works as It is preceding without available Map Services.
Specifically, if failing to the second such map requests Map Services, such as key value mistake or limited and the second map pair Server connection failure answered etc., then specified application can automatically return to homepage, and " none " character string is saved Into in MapChangeStatus, to indicate currently available without Map Services, at this point, prompting the user with currently without available map The mode of service can be with are as follows: the ground map logo in homepage can be set to click, and user is reminded to exit Map Services.
If the value saved in MapChangeStatus is " none " character string, do not start any positioning service, and " positioning service can not start, and please contact administrator and exit for display in the interface of specified application or in the notification bar of emphasis Again it logs in." etc. prompting messages.According to the prompting message, developer can check failure cause, wait failure causes to solve with Afterwards, prompt user logs in specified application, MapChangeStatus and MapStatus until terminal login next time again Again assignment afterwards, and map button restores click function.
In a preferred embodiment of an embodiment of the present invention, if the Map Services of the second map are available, step 104 can be with Including following sub-step:
Real-time position information is obtained to corresponding second map of second map style;
Show the real-time position information;And/or the real-time position information is uploaded to dispatching platform, described The real-time position information is shown in dispatching platform.
If the Map Services of the second map are available, specified application can be by GPS module or network, to second Corresponding second map of map style obtains the current real-time position information of terminal, after obtaining the real-time position information, a side Face specified application can show the real-time position information in map, to show real-time positioning to user.
On the other hand, real-time position information can also be uploaded to dispatching platform by specified application, in dispatching platform In positioned.
In a preferred embodiment of an embodiment of the present invention, described that real-time position information is uploaded to dispatching platform, packet It includes:
If the real-time position information is non-standard coordinate format, the real-time position information is converted into standard coordinate Dispatching platform is uploaded to after format.
Specifically, if the real-time position information is non-standard coordinate format, it can be in specified platform using preset Coordinates transformation method transmits after the non-standard coordinate format is converted into standard coordinate format.In dispatching platform side, if into The map that line position sets positioning is the map of standard coordinate format, then the standard coordinate format can be directly positioned in dispatching platform Real-time position information;If the map for carrying out position positioning is the map of non-standard coordinate format, should in dispatching platform The real-time position information of standard coordinate format is positioned after being converted into non-standard coordinate format.
If the real-time position information is standard coordinate format, the real-time position information can be directly transmitted.It is adjusting Platform side is spent, if the map for carrying out position positioning is the map of standard coordinate format, can directly be positioned in dispatching platform The real-time position information of the standard coordinate format;If the map for carrying out position positioning is the map of non-standard coordinate format, It is positioned after the real-time position information of the standard coordinate format is converted into non-standard coordinate format in dispatching platform.
For example, Baidu map uses bd-09 coordinate system, which encrypted on the basis of GCJ-02 coordinate system The coordinate system for deviating formation afterwards, is only applicable to Baidu map.And Amap uses GCJ-02 original coordinate system, the coordinate The coordinate system that the longitude and latitude that the world Xi Shi GPS recorder is recorded is formed, therefore can be using high moral coordinate system as positioning Default coordinate.If specified application uses Baidu map, the real-time position information obtained is bd-09 coordinate grid Formula needs that preset coordinate transfer algorithm is called to be converted into the bd-09 coordinate format to be transmitted to scheduling after GCJ-02 coordinate at this time Platform.If specified application uses Amap, the real-time position information obtained is GCJ-02 coordinate format, this When the real-time position information directly can be transmitted to dispatching platform.In dispatching platform, if using Baidu map, need Display is in dispatching platform after GCJ-02 coordinate is converted into bd-09 coordinate format;It, can if using Amap Directly to be shown.
In embodiments of the present invention, real time position is obtained by way of Map Switch, and real time position is uploaded to Dispatching platform can make dispatcher obtain the accurate location of Field Force in time, to guarantee going on smoothly for scheduling, guarantee to adjust Spend the timeliness and accuracy of instruction.
In order to make those skilled in the art more fully understand the embodiment of the present invention, it is with Baidu map and Amap below Example illustrates, but it should be stated that, the embodiment of the present invention is not limited to Baidu map and Amap:
Example one: Baidu map API system upgrade: when the certain edition upgradings of official can incompatible previous application key value, For example the key value applied before 2.4.2 version is not available in a period of time after Baidu map API system upgrade.This feelings Condition is not in when not can guarantee Baidu map API system upgrade afterwards.If Field Force in the task of execution just Baidu map API system upgrade is encountered, then it is possible that causing Baidu map service to be unable to operate normally, so as to cause scheduling people Member can not be scheduled work, and if specified application can be realized double maps and automatically switch, when in Baidu map When system upgrade, Amap use can be automatic jumped to, normal schedule job will not be interfered.
Example two: the one-side function restriction of Baidu: the api interface of Baidu map opens for free at present, if but its answer For commercial object or indirect gain interests, the authorization business of Baidu map open platform need to be obtained.If only with hundred Degree is Map Services quotient, and when Baidu stops authorizing, Baidu will stop specified application by way of limiting key value Baidu map service.If but double map automatic switchover technologies that specified application uses are specified when Baidu limits key value Application program can jump automatically obtains Amap service.
Example three: the server connection failure with Baidu map: if specified application and Baidu map server connect Failure is connect, specified application also may be implemented to jump automatically to service using Amap.
The detailed process of above-mentioned double map automatic switchover technologies is:
When detecting that user clicks map button in specified application, judge in MapChangeStatus whether If being Baidu, then Baidu's request service is carried out if it is, reading the value in MapStatus for " available ".If For Gao De, then high moral request service is carried out.If Baidu or the failure of high moral service request at this time, automatically return to homepage Face, and another map style is write into MapChangeStatus.Again tapping on map button, (i.e. specified application is again Secondary request Map Services), if MapChangeStatus preservation is Baidu map, Baidu map can be entered Activity can then enter high moral activity if it is Amap.If the key value of the Map Services at this moment selected by Limit, or with map server connection failure, then homepage can be automatically returned to, and " none " character string is saved into In MapChangeStatus, the map of homepage is set as to click, when being logged on after user exits, button Restore click function, and MapChangeStatus is set to " available ".
In embodiments of the present invention, when in specified application to initial corresponding first ground of the first map style Figure can carry out Map Services switching, current map style is switched to the second specified ground when request Map Services fail Graph type, and to the corresponding second such map requests Map Services of the second map style, so that seamless progress Map Services switching, leads to Map automatic seamless handoff technique is crossed, scheduled personnel is made to be not only restricted to a certain Map Services request exception and business can not be carried out Operation automatically switches Map Services after the failure of a certain Map Services, to improve the robustness of specified application, protects The normal operation of dispatch service is hindered.
For the aforementioned method embodiment, for simple description, therefore, it is stated as a series of action combinations, still Those skilled in the art should understand that the present invention is not limited by the sequence of acts described, because according to the present invention, it is certain Step can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know that, it is described in the specification Embodiment belong to preferred embodiment, it is related that actions and modules are not necessarily necessary for the present invention.
Referring to Fig. 2, a kind of structural block diagram of the Installation practice of map scheduling of the embodiment of the present invention, the dress are shown It sets and can specifically include following module:
First map style obtains module 201, for obtaining the first map style in specified application;
First Map Services request module 202 is used for the corresponding first such map requests map of first map style Service;
Map Services switching module 203 is used for when failing to the first such map requests Map Services, by current ground Graph type is switched to the second specified map style;
Second Map Services request module 204 is used for the corresponding second such map requests map of second map style Service.
In a preferred embodiment of an embodiment of the present invention, described device can also include following module:
First reminding module, for determining without available map when failing to the second such map requests Map Services Service, and prompt the user with currently without available Map Services.
In a preferred embodiment of an embodiment of the present invention, described device can also include following module:
Broadcast message monitors module, is used for listening broadcast message;
Request failure judgment module, if for it is described broadcast message include key value mistake or with first map pair The message for the server connection failure answered then determines to fail to the first such map requests Map Services.
In a preferred embodiment of an embodiment of the present invention, described device can also include following module:
Second reminding module, for generating service request failure when failing to the first such map requests Map Services Prompting message, and show the prompting message.
In a preferred embodiment of an embodiment of the present invention, the first map style acquisition module 201 may include Following submodule:
Log-on message acquisition submodule logs in the log-on message of specified application for obtaining user;
Log-on message sending submodule, for the log-on message to be sent to dispatching platform;
Map style receiving submodule is directed to the first map that the log-on message returns for receiving the dispatching platform Type, wherein first map style is the dispatching platform after finding the log-on message in preset allocation list It obtains, is initially the map style of the log-on message configuration.
In a preferred embodiment of an embodiment of the present invention, described device can also include following module:
Map style preserving module, for saving first map style in a manner of key-value pair, wherein the key assignments It is MapStatus to corresponding key name, is worth for first map style.
In a preferred embodiment of an embodiment of the present invention, the second Map Services request module 204 may include Following submodule:
Location information acquisition submodule, for obtaining real time position letter to corresponding second map of second map style Breath;
Position information process submodule, for showing the real-time position information;And/or by the real-time position information It is uploaded to dispatching platform, to show the real-time position information in the dispatching platform.
In a preferred embodiment of an embodiment of the present invention, the position information process submodule is also used to:
If the real-time position information is non-standard coordinate format, the real-time position information is converted into standard coordinate Dispatching platform is uploaded to after format.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, commodity or the equipment that include a series of elements not only include that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, commodity or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in process, method, commodity or the equipment for including the element.
A kind of method and device of map scheduling provided by the present invention is described in detail above, it is used herein A specific example illustrates the principle and implementation of the invention, and the above embodiments are only used to help understand Method and its core concept of the invention;At the same time, for those skilled in the art is having according to the thought of the present invention There will be changes in body embodiment and application range, in conclusion the content of the present specification should not be construed as to the present invention Limitation.

Claims (16)

1. a kind of method of map scheduling, which is characterized in that the described method includes:
In specified application, the first map style is obtained;
To the corresponding first such map requests Map Services of first map style;
When failing to the first such map requests Map Services, current map style is switched to the second specified map class Type;
To the corresponding second such map requests Map Services of second map style.
2. the method according to claim 1, wherein further include:
When failing to the second such map requests Map Services, determine without available Map Services;
It prompts the user with currently without available Map Services.
3. method according to claim 1 or 2, which is characterized in that described to first map style corresponding After one such map requests Map Services, further includes:
It is lost when detecting that the corresponding key value mistake of first map or server corresponding with first map connect It loses, then determines to fail to the first such map requests Map Services.
4. according to the method described in claim 3, it is characterized in that, being lost described when to the first such map requests Map Services When losing, current map style is switched to before the second specified map style, further includes:
When failing to the first such map requests Map Services, the prompting message of service request failure is generated;
Show the prompting message.
5. the method according to claim 1, wherein described in specified application, the first map class of acquisition Type, comprising:
Obtain the log-on message that user logs in specified application;
The log-on message is sent to dispatching platform;
It receives the dispatching platform and is directed to the first map style that the log-on message returns, wherein first map style The dispatching platform obtains after finding the log-on message in preset allocation list, is initially the log-on message and matches The map style set.
6. according to the method described in claim 5, it is characterized in that, obtaining the first map described in specified application After type, further includes:
First map style is saved in a manner of key-value pair, wherein the corresponding key name of the key-value pair is MapStatus, Value is first map style.
7. the method according to claim 1, wherein described to corresponding second map of second map style Request Map Services, comprising:
Real-time position information is obtained to corresponding second map of second map style;
Show the real-time position information;And/or the real-time position information is uploaded to dispatching platform, in the scheduling The real-time position information is shown in platform.
8. the method according to the description of claim 7 is characterized in that described, that the real-time position information is uploaded to scheduling is flat Platform, comprising:
If the real-time position information is non-standard coordinate format, the real-time position information is converted into standard coordinate format After be uploaded to dispatching platform.
9. a kind of device of map scheduling, which is characterized in that described device includes:
First map style obtains module, for obtaining the first map style in specified application;
First Map Services request module is used for the corresponding first such map requests Map Services of first map style;
Map Services switching module is used for when failing to the first such map requests Map Services, by current map style It is switched to the second specified map style;
Second Map Services request module is used for the corresponding second such map requests Map Services of second map style.
10. device according to claim 9, which is characterized in that further include:
First reminding module, for determining without available Map Services when failing to the second such map requests Map Services, And it prompts the user with currently without available Map Services.
11. device according to claim 9 or 10, which is characterized in that further include:
Request failure judgment module, for when detect the corresponding key value mistake of first map or with first ground Scheme corresponding server connection failure, then determines to fail to the first such map requests Map Services.
12. device according to claim 11, which is characterized in that further include:
Second reminding module, for generating mentioning for service request failure when failing to the first such map requests Map Services Awake information, and show the prompting message.
13. device according to claim 9, which is characterized in that first map style obtains module and includes:
Log-on message acquisition submodule logs in the log-on message of specified application for obtaining user;
Log-on message sending submodule, for the log-on message to be sent to dispatching platform;
Map style receiving submodule is directed to the first map class that the log-on message returns for receiving the dispatching platform Type, wherein first map style is that the dispatching platform obtains after finding the log-on message in preset allocation list , it is initially the map style of the log-on message configuration.
14. device according to claim 13, which is characterized in that further include:
Map style preserving module, for saving first map style in a manner of key-value pair, wherein the key-value pair pair The key name answered is MapStatus, is worth for first map style.
15. device according to claim 9, which is characterized in that the second Map Services request module includes:
Location information acquisition submodule, for obtaining real-time position information to corresponding second map of second map style;
Position information process submodule, for showing the real-time position information;And/or the real-time position information is uploaded To dispatching platform, to show the real-time position information in the dispatching platform.
16. device according to claim 15, which is characterized in that the position information process submodule is also used to:
If the real-time position information is non-standard coordinate format, the real-time position information is converted into standard coordinate format After be uploaded to dispatching platform.
CN201810548804.3A 2018-05-31 2018-05-31 A kind of method and device of map scheduling Pending CN108960568A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810548804.3A CN108960568A (en) 2018-05-31 2018-05-31 A kind of method and device of map scheduling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810548804.3A CN108960568A (en) 2018-05-31 2018-05-31 A kind of method and device of map scheduling

Publications (1)

Publication Number Publication Date
CN108960568A true CN108960568A (en) 2018-12-07

Family

ID=64492675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810548804.3A Pending CN108960568A (en) 2018-05-31 2018-05-31 A kind of method and device of map scheduling

Country Status (1)

Country Link
CN (1) CN108960568A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101395646A (en) * 2006-03-08 2009-03-25 通腾科技股份有限公司 A method and device for map switching
CN103605553A (en) * 2013-11-29 2014-02-26 小米科技有限责任公司 Map loading method, device and terminal equipment
US20140316691A1 (en) * 2013-04-23 2014-10-23 Xiaomi Inc. Method and terminal for providing electronic map
CN105245587A (en) * 2015-09-28 2016-01-13 武汉钢铁(集团)公司 Dispatch scheduling method and electronic device
CN106855881A (en) * 2016-12-16 2017-06-16 北京奇鱼时代科技有限公司 A kind of method and apparatus of many Map Switchs based on mobile device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101395646A (en) * 2006-03-08 2009-03-25 通腾科技股份有限公司 A method and device for map switching
US20140316691A1 (en) * 2013-04-23 2014-10-23 Xiaomi Inc. Method and terminal for providing electronic map
CN103605553A (en) * 2013-11-29 2014-02-26 小米科技有限责任公司 Map loading method, device and terminal equipment
CN105245587A (en) * 2015-09-28 2016-01-13 武汉钢铁(集团)公司 Dispatch scheduling method and electronic device
CN106855881A (en) * 2016-12-16 2017-06-16 北京奇鱼时代科技有限公司 A kind of method and apparatus of many Map Switchs based on mobile device

Similar Documents

Publication Publication Date Title
CN104899952B (en) Work attendance method and device based on instant messaging application
US6871076B2 (en) Method and system for automatically adjusting location based system information in a mobile computer
US9699016B2 (en) Sign-in method and system
CN102804144B (en) Remotely location and order mobile device
US9443255B2 (en) Dynamic resource matching system
CN101179769B (en) LBS position service based community rectification work management method
US8838486B2 (en) Method and apparatus for timekeeping
CN103473826B (en) Register method, system and server automatically in a kind of classroom based on wifi
US20170070874A1 (en) System and method for requesting and providing location-based assitance
CN107241336B (en) Identity verification method and device
WO2014101521A1 (en) Geographical location-based communication method, mobile terminal, server, and system
US20210035062A1 (en) Information prompt
CN107872440B (en) Identity authentication method, device and system
JP2010273045A (en) Server apparatus
US20240224223A1 (en) Evaluating IP Location On A Client Device
US9386437B2 (en) Determination of order of transmission destination
US20170118591A1 (en) Configuring and Managing Mobile Devices in Predefined Geographic Locations
US20170091712A1 (en) Apparatus and Method for Employee Time Entry and Accounting
CN108960568A (en) A kind of method and device of map scheduling
US8818324B1 (en) Location capability provisioning
CN101262643A (en) Community correction management method
CN112711518B (en) Log uploading method and device
US8199890B2 (en) Camp on location
CN111338642A (en) Method, device, terminal and storage medium for determining application downloading path
US10924933B2 (en) System and method for monitoring the integrity of a virtual assistant

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207