CN105897927B - A method of parsing Google longitude and latitude - Google Patents

A method of parsing Google longitude and latitude Download PDF

Info

Publication number
CN105897927B
CN105897927B CN201610382024.7A CN201610382024A CN105897927B CN 105897927 B CN105897927 B CN 105897927B CN 201610382024 A CN201610382024 A CN 201610382024A CN 105897927 B CN105897927 B CN 105897927B
Authority
CN
China
Prior art keywords
webapi
latitude
longitude
parsing
information
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.)
Active
Application number
CN201610382024.7A
Other languages
Chinese (zh)
Other versions
CN105897927A (en
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.)
Sichuan Miwu Traceless Science And Technology Co Ltd
Original Assignee
Sichuan Miwu Traceless Science And 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 Sichuan Miwu Traceless Science And Technology Co Ltd filed Critical Sichuan Miwu Traceless Science And Technology Co Ltd
Priority to CN201610382024.7A priority Critical patent/CN105897927B/en
Publication of CN105897927A publication Critical patent/CN105897927A/en
Application granted granted Critical
Publication of CN105897927B publication Critical patent/CN105897927B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Abstract

The invention discloses a kind of methods for parsing Google longitude and latitude, comprising the following steps: S1: builds IIS Website server;S2: creation WebApi program is simultaneously deployed to IIS;S3: client program calls WebApi parsing longitude and latitude;The location information that S4: client program calls Google Maps control exposure Api parsing returns.Beneficial effects of the present invention are as follows: using the self-built parsing longitude and latitude api interface of Cloud Server, the direct access using the U.S. IP of Cloud Server to Google longitude and latitude parsing interface;The specific location of parsing is precisely shown;It is substantially reduced compared to payment interface cost;More preferable by Google server parsing longitude and latitude network for the third party API supplier of continent, server bearing capacity is stronger, and parsing data are more professional;It is more convenient when being parsed using this method to global longitude and latitude data.

Description

A method of parsing Google longitude and latitude
Technical field
The present invention relates to field of information security technology, in particular to a kind of method for parsing Google longitude and latitude.
Background technique
Some systems in smart phone are using there are location datas with third-party application, when these location datas include Between, original latitude and longitude information, in electronic evidence-collecting product often restore extract these location datas, then by profession solution Analysis obtains the more specific location information of location data and shows that label obtains whereabouts track in map, summarizes previous parsing longitude and latitude below Deficiency present in degree technology:
1, longitude and latitude parsing uses open interface, and as Baidu API is freely parsed, but external longitude and latitude can not parse Come.
2, using third company's payment interface, general by parsing item number charge, global longitude and latitude data can be parsed, but It is too high that cost is parsed when data volume is big.
3, it is inaccurate to show that the longitude and latitude of parsing is matched with current map displaying for map, as shown on Google Maps from Baidu The more specific location information that the longitude and latitude parsing interface of map obtains.
4, after Google exited China's Mainland market since 2010, the host of domestic IP can not access Google's Longitude and latitude parses interface.
Professional knowledge according to the present invention is as follows:
IIS is the abbreviation of Internet Information Services, means that Internet Information Service is a kind of Web (webpage) serviced component is respectively used to net including Web server, ftp server, NNTP server and smtp server Page browsing, file transmission, press service and mail transmission etc..The Web server of IIS is only used in this method.
Summary of the invention
The present invention in view of the drawbacks of the prior art, provides a kind of method for parsing Google longitude and latitude, can effectively solve Certainly the above-mentioned problems of the prior art.
A method of parsing Google longitude and latitude, comprising the following steps:
S1: IIS Website server is built;
S2: creation WebAPI program is simultaneously deployed to IIS;
S3: client program calls WebAPI parsing longitude and latitude;
The location information that S4: client program calls Google Maps control exposure WebAPI parsing returns;The S4's Detailed step is as follows:
S41: routine call Google Maps control;
S411: processing is packaged to ESRI.ArcGIS Map OCX;
S412: the offline map server load map picture of Google is accessed;
S413: operation ESRI.ArcGIS.Client loads global map, according to the automatic loading area offline map of scaling.
S42: the location information of display WebAPI parsing;
S421: by calculation of longitude & latitude and map match, the exact position on Google Maps is obtained;
S422: according to the attribute of location information: location information and base station information are identified on map with different icons;
S423: anchor point on map shows the attribute of current location, positioning time, longitude, latitude, specific street Location, base station operator, the information for carrying out self-application.
Preferably, the detailed step of S2 is as follows:
S21: an ASP.NET web application is created using Visual Studio;
S22: WebAPI is selected in procedure selection template;
S23: it opens and creates GET WebAPI in ValuesController.cs;
S24: validation verification is done to the Transfer Parameters for calling WebAPI;
S25: maps.Google.com/maps/api/geocode interface is called to obtain warp in the WebAPI of encapsulation Latitude information;
S26: the location information that will acquire carries out secondary assembling, and the street address information of positioning is extracted from location parameter Returned data as this WebAPI;
S27:WebAPI program in a manner of file system packing and issuing at file;
S28: the file of this WebAPI is uploaded on Cloud Server, this file is mounted to IIS with form of websites Upper publication;
S29: because of WebAPI anonymous access, so the authentication of website must enable anonymous access verifying.
Preferably, the detailed step of the S3 is as follows:
S31: the data structure feature of scanning position information and base station information in mobile phone after mobile phone is scanned, will have There is the bottom data of feature to extract;
By the base station information in bottom data, the warp where interface obtains base station is parsed by different operators base station information Latitude information constructs the location information of base station;
S32: the location information that bottom obtains is processed into IList<Trace>data link table, successively retrieves each Trace;
S33: it to the connection judgment of local network before calling interface, is successfully connected and recalls the parsing of WebAPI interface;
S34: by the latitude of location information, longitude is passed to the interface of WebAPI;Obtain the address information of a JSON format.
Compared with prior art the present invention has the advantages that using the self-built parsing longitude and latitude api interface of Cloud Server, utilize Direct access of the U.S. IP of Cloud Server to Google longitude and latitude parsing interface;Call Google Maps to from Google longitude and latitude The specific location of degree parsing interface parsing is precisely shown;Cloud Server not only extracts parsing API, and there are also updating, account is stepped on The API such as record are substantially reduced compared to payment interface cost;Longitude and latitude is parsed relative to continent third party by Google server Network is more preferable for API supplier, and server bearing capacity is stronger, and parsing data are more professional;Using this method to global longitude and latitude Degree is according to more convenient when being parsed.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, by the following examples, to the present invention do into One step is described in detail.
A method of parsing Google longitude and latitude, comprising the following steps:
S1: IIS Website server is built;
S2: creation WebAPI program is simultaneously deployed to IIS;
S3: client program calls WebAPI parsing longitude and latitude;
The location information that S4: client program calls Google Maps control exposure WebAPI parsing returns.
IIS is carried using Ali's Cloud Server in S1, but website deployment need to be manually opened
All programs are clicked in the beginning for opening 2008 system of WindowServer, click management tool, are clicked Internet information service (IIS) manager;
" website " right button of IIS manager drop-down menu is opened, newly-built, click website is clicked;
Website name, the file of local hard drive mapping, the information such as website port IP externally issued are successively filled by step; The access authority that website is arranged is that can be read.
Really access Google resolution server in the S2 is WebAPI program, but WebAPI must live with IIS On, so the WebAPI of creation must be deployed to IIS and could operate normally.
The detailed step of S2 is as follows:
S21: an ASP.NET web application is created using Visual Studio;
S22: WebAPI is selected in procedure selection template;
S23: it opens and creates GET WebAPI in ValuesController.cs;
S24: validation verification is done to the Transfer Parameters for calling WebAPI;
S25: maps.Google.com/maps/api/geocode interface is called to obtain warp in the WebAPI of encapsulation Latitude information;
S26: the location information that will acquire carries out secondary assembling, and the street address information of positioning is extracted from location parameter Returned data as this WebAPI;
S27:WebAPI program in a manner of file system packing and issuing at file;
S28: the file of this WebAPI is uploaded on Cloud Server, and referring to [building IIS] by this file with net The form of station is mounted on IIS and issues;
S29: because WebAPI can be with anonymous access, so the authentication of website must enable anonymous access verifying.
The original location information for needing bottom to parse in S3 includes location information and base station information, needs to be processed into specified Format normal unified could carry out retrieval access.
S31: the original location data of Treated Base scanning, the location data that bottom excavates include that location information and base station are believed The corresponding different data structure of breath.The data structure of location information is [time, document location, MD5 value, longitude, latitude], base station The data structure of information is [time, document location, network number, base station number, cell id];
The data structure feature of scanning position information and base station information in mobile phone, after mobile phone is scanned, will have spy The bottom data of sign extracts;
By the base station information (movement, connection, telecommunications) in bottom data, interface is parsed by different operators base station information The latitude and longitude information where base station is obtained, the location information of base station is constructed.Thus base station and location information are all unified for Data structure: [time, document location, MD5 value, longitude, latitude] and Trace object;
S32: the location information that bottom obtains is processed into IList<Trace>data link table, successively retrieves each Trace (location information object);
S33: it to the connection judgment of local network before calling interface, is successfully connected and recalls the parsing of WebAPI interface;
S34: by the latitude of location information, longitude is passed to the interface of WebAPI: http://xxx.xxx.xxx.xx:8888/ Api/geocode? lat=[latitude] &lng=[longitude] &language=zh_CN.Obtain the address letter of a JSON format Breath;
The detailed step of the S4 is as follows:
S41: routine call Google Maps control;
S411: processing is packaged to ESRI.ArcGIS Map OCX;
S412: the offline map server load map picture of Google is accessed;
S413: operation ESRI.ArcGIS.Client loads global map, according to the automatic loading area offline map of scaling.
S42: the location information of display WebAPI parsing;
S421: by calculation of longitude & latitude and map match, the exact position on Google Maps is obtained;
S422: according to the attribute of location information: location information and base station information are identified on map with different icons;
S423: anchor point on map shows the attribute of current location, positioning time, longitude, latitude, specific street The information such as self-application, are carried out at base station operator in location.
Those of ordinary skill in the art will understand that the embodiments described herein, which is to help reader, understands this hair Bright implementation method, it should be understood that protection scope of the present invention is not limited to such specific embodiments and embodiments.Ability The those of ordinary skill in domain disclosed the technical disclosures can make its various for not departing from essence of the invention according to the present invention Its various specific variations and combinations, these variations and combinations are still within the scope of the present invention.

Claims (1)

1. a kind of method for parsing Google longitude and latitude, it is characterised in that the following steps are included:
S1: IIS Website server is built;
S2: creation WebAPI program is simultaneously deployed to IIS;
S3: client program calls WebAPI parsing longitude and latitude;
The location information that S4: client program calls Google Maps control exposure WebAPI parsing returns, the S4's is detailed Steps are as follows:
S41: routine call Google Maps control;
S411: processing is packaged to ESRI.ArcGIS Map OCX;
S412: the offline map server load map picture of Google is accessed;
S413: operation ESRI.ArcGIS.Client loads global map, according to the automatic loading area offline map of scaling;
S42: the location information of display WebAPI parsing;
S421: by calculation of longitude & latitude and map match, the exact position on Google Maps is obtained;
S422: according to the attribute of location information: location information and base station information are identified on map with different icons;
S423: the anchor point on map shows attribute, positioning time, longitude, latitude, the specific street address, base of current location Stand operator, carry out the information of self-application;
The detailed step of S2 is as follows:
S21: an ASP.NET web application is created using Visual Studio;
S22: WebAPI is selected in procedure selection template;
S23: it opens and creates GET WebAPI in ValuesController.cs;
S24: validation verification is done to the Transfer Parameters for calling WebAPI;
S25: maps.Google.com/maps/api/geocode interface is called to obtain longitude and latitude in the WebAPI of encapsulation Information;
S26: the location information that will acquire carries out secondary assembling, and the street address information conduct of positioning is extracted from location parameter The returned data of this WebAPI;
S27:WebAPI program in a manner of file system packing and issuing at file;
S28: the file of this WebAPI is uploaded on Cloud Server, this file is mounted on IIS with form of websites and is sent out Cloth;
S29: because of WebAPI anonymous access, so the authentication of website must enable anonymous access verifying;
The detailed step of the S3 is as follows:
S31: the data structure feature of scanning position information and base station information in mobile phone after mobile phone is scanned, will have spy The bottom data of sign extracts;
By the base station information in bottom data, the longitude and latitude where interface obtains base station is parsed by different operators base station information Information constructs the location information of base station;
S32: the location information that bottom obtains is processed into IList<Trace>data link table, successively retrieves each Trace;
S33: it to the connection judgment of local network before calling interface, is successfully connected and recalls the parsing of WebAPI interface;
S34: by the latitude of location information, longitude is passed to the interface of WebAPI;Obtain the address information of a JSON format.
CN201610382024.7A 2016-05-31 2016-05-31 A method of parsing Google longitude and latitude Active CN105897927B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610382024.7A CN105897927B (en) 2016-05-31 2016-05-31 A method of parsing Google longitude and latitude

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610382024.7A CN105897927B (en) 2016-05-31 2016-05-31 A method of parsing Google longitude and latitude

Publications (2)

Publication Number Publication Date
CN105897927A CN105897927A (en) 2016-08-24
CN105897927B true CN105897927B (en) 2019-10-11

Family

ID=56709973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610382024.7A Active CN105897927B (en) 2016-05-31 2016-05-31 A method of parsing Google longitude and latitude

Country Status (1)

Country Link
CN (1) CN105897927B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392252A (en) * 2017-07-26 2017-11-24 上海城诗信息科技有限公司 Computer deep learning characteristics of image and the method for quantifying perceptibility
CN107832441A (en) * 2017-11-17 2018-03-23 北京锐安科技有限公司 A kind of method and device for parsing address

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036959A (en) * 2012-12-07 2013-04-10 武汉邮电科学研究院 Realization method and realization system of distributed deployment application program based on input/output (IO) decoupling
CN103347049A (en) * 2013-06-08 2013-10-09 西安云井电子科技有限公司 System and method for automatic adaption starting between positions and application programs based on mobile terminal
CN104678412A (en) * 2014-12-12 2015-06-03 广西科技大学 Beidou or GPS dual-mode on-line positioning method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036959A (en) * 2012-12-07 2013-04-10 武汉邮电科学研究院 Realization method and realization system of distributed deployment application program based on input/output (IO) decoupling
CN103347049A (en) * 2013-06-08 2013-10-09 西安云井电子科技有限公司 System and method for automatic adaption starting between positions and application programs based on mobile terminal
CN104678412A (en) * 2014-12-12 2015-06-03 广西科技大学 Beidou or GPS dual-mode on-line positioning method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Google API进行地址解析和反向地址解析;zkdemon;《CSDN》;20111128;第1-9页 *
从Windows Phone8调用Web API应用程序(C#);Robert McMurray 等;《Microsoft》;20131009;第1-10页 *
生成和打包Web应用项目;Jason Lee 等;《Microsoft》;20120504;第1-2页 *

Also Published As

Publication number Publication date
CN105897927A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
US11244122B2 (en) Reformatting of context sensitive data
CN110119294A (en) The generation method of menu page, apparatus and system
US10612940B2 (en) Flow meter reading with image recognition secured with mask and software connected by mobile device
CN110798445B (en) Public gateway interface testing method and device, computer equipment and storage medium
CN103139761B (en) The method and communication terminal of a kind of information real-time show
CN105243407A (en) Method and device for reading and writing smart card
CN103685354A (en) Method and device for testing based on RMI protocol
CN105183899A (en) Collection function sharing system and method
US11386255B2 (en) Parameter extraction from digitized image of a schematic or block diagram for electrical designs
CN110266469A (en) A kind of remote online electronic signature method based on WEB script data stream operation
CN107220000A (en) Picture compression method and picture compression device
CN102752371A (en) Method for achieving splash on client side and client side
CN106658666B (en) Method and equipment for establishing wireless connection
CN105897927B (en) A method of parsing Google longitude and latitude
CN106778264A (en) The application program analysis method and analysis system of a kind of mobile client
CN108345606A (en) The acquisition methods and device of web page resources
US20160110531A1 (en) Information processing apparatus, terminal apparatus and information processing method
CN108011936A (en) Method and apparatus for pushed information
CN109816462A (en) A kind of recognition methods of invoice information and device
CN104331500A (en) Method and device for analyzing supervision video
CN113822036A (en) Privacy policy content generation method and device and electronic equipment
US11481760B2 (en) Systems and methods for push provisioning of a financial instrument to an electronic device from a browser
US20060050859A1 (en) Telephone system, server apparatus, information display method for use therewith and its program
CN105894180A (en) Stamp management method and system
RU2666283C1 (en) Method for distribution of advertising content through technologies of nfc-points and qr-code

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: No. 183 Songshan Road, Neijiang, Sichuan, Sichuan

Applicant after: Sichuan Miwu Traceless Science and Technology Co., Ltd.

Address before: No. 183 Songshan Road, Neijiang, Sichuan, Sichuan

Applicant before: SICHUAN MWH INFORMATION SAFETY TECHNOLOGY CO., LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant