CN105897927A - Method for analyzing Google longitude and latitude - Google Patents

Method for analyzing Google longitude and latitude Download PDF

Info

Publication number
CN105897927A
CN105897927A CN201610382024.7A CN201610382024A CN105897927A CN 105897927 A CN105897927 A CN 105897927A CN 201610382024 A CN201610382024 A CN 201610382024A CN 105897927 A CN105897927 A CN 105897927A
Authority
CN
China
Prior art keywords
latitude
longitude
google
api
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.)
Granted
Application number
CN201610382024.7A
Other languages
Chinese (zh)
Other versions
CN105897927B (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 MWH INFORMATION SAFETY TECHNOLOGY Co Ltd
Original Assignee
SICHUAN MWH INFORMATION SAFETY 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 MWH INFORMATION SAFETY TECHNOLOGY Co Ltd filed Critical SICHUAN MWH INFORMATION SAFETY 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 method for analyzing Google longitude and latitude. The method comprises the following steps of S1, setting up an IIS (Internet Information Services) web server; S2, creating a WebApi application and deploying the WebApi in the IIS; S3, calling the WebApi by a client program so as to analyze the longitude and latitude; S4, calling a Google map control by a client program so as to display position information returned by the Api after analysis. The method has the advantages that a longitude and latitude analyzing API interface is established by a cloud server itself; the Google longitude and latitude analyzing interface is directly accessed by use of an American IP of the cloud server; the analyzed specific position is precisely displayed; compared with a pay interface, the interface of the method has the advantage that the cost is greatly reduced; compared with a mainland third party API supplier, the network is better when the Google server is utilized to analyze the longitude and latitude; the bearing capability of the server is relatively high; the data is analyzed more professionally; and through adoption of the method, the global longitude and latitude data can be analyzed more conveniently and rapidly.

Description

A kind of method resolving Google longitude and latitude
Technical field
The present invention relates to field of information security technology, particularly to a kind of method resolving Google longitude and latitude.
Background technology
There are location data in the application of some system and third-party application in smart mobile phone, these position packet Containing time, original latitude and longitude information, often recover to extract these location data in electronic evidence-collecting product, Then obtain the more specific location information of location data by resolving of specialty and show that labelling must be gone on a journey at map Track track, below sums up and resolved deficiency present in longitude and latitude technology in the past:
1, longitude and latitude resolve use open interface, as Baidu API freely resolves, but external longitude and latitude without Method parses.
2, using third company's paying interface, general by resolving the charge of bar number, whole world longitude and latitude data are all Can resolve, but resolve cost when data volume is big the highest.
3, map shows that the longitude and latitude resolved mates inaccurate with current map displaying, as opened up on Google Maps Show and resolve, from the longitude and latitude of Baidu's map, the more specific location information that interface obtains.
4, Google after starting to exit market, China's Mainland for 2010, and the main frame of domestic IP cannot be visited Ask that the longitude and latitude of Google resolves interface.
Professional knowledge involved in the present invention is as follows:
IIS is the abbreviation of Internet Information Services, and it is a kind of for meaning Internet Information Service Web (webpage) serviced component, including Web server, ftp server, NNTP server and Smtp server, is respectively used to the aspect such as web page browsing, file transmission, press service and mail transmission. The most only use the Web server of IIS.
Summary of the invention
The present invention is directed to the defect of prior art, it is provided that a kind of method resolving Google longitude and latitude, energy The effective problem solving the existence of above-mentioned prior art.
A kind of method resolving Google longitude and latitude, comprises the following steps:
S1: build IIS Website server;
S2: create WebApi program and be deployed to IIS;
S3: client program calls WebApi resolves longitude and latitude;
S4: client program calls Google Maps control exposure Api resolves the positional information returned.
As preferably, the detailed step of S2 is as follows:
S21: utilize Visual Studio to create an ASP.NET web application;
S22: select Web API in procedure Selection template;
S23: open establishment GET API in ValuesController.cs;
S24: the Transfer Parameters calling API is done validation verification;
S25: call maps.Google.com/maps/api/geocode interface in the middle of the API of encapsulation and obtain Latitude and longitude information;
S26: the positional information of acquisition is carried out secondary assembling, extracts the street of location from location parameter Address information is as the return data of this Web API;
S27:WebApi program packing and issuing in the way of file system becomes file;
S28: upload on Cloud Server by the file of this API, by this file with form of websites carry Issue on IIS;
S29: because API can be with anonymous access, so the authentication of website must enable anonymous access checking.
As preferably, the detailed step of described S3 is as follows:
S31: the data structure feature of scanning position information and base station information in mobile phone, mobile telephone scanning is complete After, the bottom data with feature is extracted;
By the base station information in bottom data, resolve interface by different operators base station information and obtain base station institute Latitude and longitude information, construct the positional information of base station;
The positional information that S32: bottom obtains is processed into an IList<Trace>data link table, retrieves successively Each Trace;
S33: connection judgment to local network before calling interface, is successfully connected and recalls WebApi interface Resolve;
S34: by the latitude of positional information, the interface of longitude incoming Web API;Obtain JSON lattice The address information of formula.
As preferably, the detailed step of described S4 is as follows:
41: routine call Google Maps control;
411: be packaged ESRI.ArcGIS Map OCX processing;
412: the off-line map server accessing Google loads map picture;
413: run ESRI.ArcGIS.Client and load global map, according to scaling automatic loading area off-line Map.
42: the positional information that display API resolves;
421: by calculation of longitude & latitude and map match, draw the exact position on Google Maps;
422: according to the attribute of positional information: location information and base station information, with different figures on map Mark mark;
423: anchor point the display attribute of current location, positioning time, longitude, latitude, the tool on map Body street address, base station operator, carry out the information of self-application.
Compared with prior art it is an advantage of the current invention that: use Cloud Server self-built parsing longitude and latitude API to connect Mouthful, utilize American I P of Cloud Server that Google longitude and latitude resolves the direct access of interface;Call Google The particular location resolving interface parsing from Google longitude and latitude is precisely shown by map;Cloud Server is not The API such as only extraction resolves API, also has and updates, account login, compare paying interface cost and are substantially reduced; Longitude and latitude network for the third party API supplier of continent is resolved more preferable by Google server, Server bearing capacity is higher, resolves data more professional;Use this method that whole world longitude and latitude data are solved During analysis more convenient.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearer, by the following examples, to this Invention is described in further details.
A kind of method resolving Google longitude and latitude, comprises the following steps:
S1: build IIS Website server;
S2: create WebApi program and be deployed to IIS;
S3: client program calls WebApi resolves longitude and latitude;
S4: client program calls Google Maps control exposure Api resolves the positional information returned.
S1 uses Ali's Cloud Server carry IIS, but website deployment needs manually opened
Open the beginning of WindowServer 2008 system, click on all programs, click on management instrument, point Hit Internet information service (IIS) manager;
Open " website " right button of IIS manager drop-down menu, click on newly-built, click website;
Website name is inserted successively by step, the file that local hard drive maps, the website IP end externally issued The information such as mouth;The access rights of website are set for can read.
In described S2, real access Google resolution server is WebApi program, but WebApi must Must live with on IIS, thus the Webapi created must be deployed to IIS could be properly functioning.
The detailed step of S2 is as follows:
S21: utilize Visual Studio to create an ASP.NET web application;
S22: select Web API in procedure Selection template;
S23: open establishment GET API in ValuesController.cs;
S24: the Transfer Parameters calling API is done validation verification;
S25: call maps.Google.com/maps/api/geocode interface in the middle of the API of encapsulation and obtain Latitude and longitude information;
S26: the positional information of acquisition is carried out secondary assembling, extracts the street of location from location parameter Address information is as the return data of this Web API;
S27:WebApi program packing and issuing in the way of file system becomes file;
S28: the file of this API is uploaded on Cloud Server, and with reference to [building IIS] by this file Press from both sides and be mounted on IIS issue with form of websites;
S29: because API can be with anonymous access, so the authentication of website must enable anonymous access checking.
The original location information needing bottom to parse in S3 comprises positional information and base station information, needs to add The carrying out retrieval that work becomes specified format normally to unify accesses.
The original location data of S31: Treated Base scanning, the location packet that bottom excavates is containing positional information Different data structure corresponding with base station information.The data structure of positional information be [time, document location, MD5 value, longitude, latitude], the data structure of base station information be [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 telephone scanning, will The bottom data with feature extracts;
By the base station information (movement, UNICOM, telecommunications) in bottom data, believed by different operators base station Breath resolves interface and obtains the latitude and longitude information at place, base station, constructs the positional information of base station.Thus by base Stand and positional information all unified as data structure: [time, document location, MD5 value, longitude, latitude], And Trace object;
The positional information that S32: bottom obtains is processed into an IList<Trace>data link table, retrieves successively Each Trace (positional information object);
S33: connection judgment to local network before calling interface, is successfully connected and recalls WebApi interface Resolve;
S34: by the latitude of positional information, the interface of longitude incoming Web API: http://xxx.xxx. xxx.xx:8888/api/geocode?Lat=[latitude] &lng=[longitude] &language=zh_CN.Obtain The address information of one JSON form;
The detailed step of described S4 is as follows:
41: routine call Google Maps control;
411: be packaged ESRI.ArcGIS Map OCX processing;
412: the off-line map server accessing Google loads map picture;
413: run ESRI.ArcGIS.Client and load global map, according to scaling automatic loading area off-line Map.
42: the positional information that display API resolves;
421: by calculation of longitude & latitude and map match, draw the exact position on Google Maps;
422: according to the attribute of positional information: location information and base station information, with different figures on map Mark mark;
423: anchor point the display attribute of current location, positioning time, longitude, latitude, the tool on map Body street address, base station operator, carry out the information such as self-application.
Those of ordinary skill in the art is it will be appreciated that embodiment described here is to aid in reader's reason Solve the implementation of the present invention, it should be understood that protection scope of the present invention is not limited to such the oldest State and embodiment.Those of ordinary skill in the art can make according to these technology disclosed by the invention enlightenment Various other various concrete deformation and combinations without departing from essence of the present invention, these deformation and combination are still at this In the protection domain of invention.

Claims (4)

1. the method resolving Google longitude and latitude, it is characterised in that comprise the following steps:
S1: build IIS Website server;
S2: create WebApi program and be deployed to IIS;
S3: client program calls WebApi resolves longitude and latitude;
S4: client program calls Google Maps control exposure Api resolves the positional information returned.
A kind of method resolving Google longitude and latitude the most according to claim 1, it is characterised in that S2 Detailed step as follows:
S21: utilize Visual Studio to create an ASP.NET web application;
S22: select Web API in procedure Selection template;
S23: open establishment GET API in ValuesController.cs;
S24: the Transfer Parameters calling API is done validation verification;
S25: call maps.Google.com/maps/api/geocode interface in the middle of the API of encapsulation and obtain Latitude and longitude information;
S26: the positional information of acquisition is carried out secondary assembling, extracts the street of location from location parameter Address information is as the return data of this Web API;
S27:WebApi program packing and issuing in the way of file system becomes file;
S28: upload on Cloud Server by the file of this API, by this file with form of websites carry Issue on IIS;
S29: because API can be with anonymous access, so the authentication of website must enable anonymous access checking.
A kind of method resolving Google longitude and latitude the most according to claim 2, it is characterised in that described The detailed step of S3 is as follows:
S31: the data structure feature of scanning position information and base station information in mobile phone, mobile telephone scanning is complete After, the bottom data with feature is extracted;
By the base station information in bottom data, resolve interface by different operators base station information and obtain base station institute Latitude and longitude information, construct the positional information of base station;
The positional information that S32: bottom obtains is processed into an IList<Trace>data link table, retrieves successively Each Trace;
S33: connection judgment to local network before calling interface, is successfully connected and recalls WebApi interface Resolve;
S34: by the latitude of positional information, the interface of longitude incoming Web API;Obtain JSON lattice The address information of formula.
A kind of method resolving Google longitude and latitude the most according to claim 3, it is characterised in that described The detailed step of S4 is as follows:
41: routine call Google Maps control;
411: be packaged ESRI.ArcGIS Map OCX processing;
412: the off-line map server accessing Google loads map picture;
413: run ESRI.ArcGIS.Client and load global map, according to scaling automatic loading area off-line Map.
42: the positional information that display API resolves;
421: by calculation of longitude & latitude and map match, draw the exact position on Google Maps;
422: according to the attribute of positional information: location information and base station information, with different figures on map Mark mark;
423: anchor point the display attribute of current location, positioning time, longitude, latitude, the tool on map Body street address, base station operator, carry out the information of self-application.
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 true CN105897927A (en) 2016-08-24
CN105897927B 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)

Cited By (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
JASON LEE 等: "生成和打包Web应用项目", 《MICROSOFT》 *
ROBERT MCMURRAY 等: "从Windows Phone8调用Web API应用程序(C#)", 《MICROSOFT》 *
ZKDEMON: "Google API进行地址解析和反向地址解析", 《CSDN》 *

Cited By (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

Also Published As

Publication number Publication date
CN105897927B (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN104980997B (en) Network access method and mobile communication terminal
CN105392178B (en) A kind of method and apparatus for being used to obtain the access information of WAP
CN110798445B (en) Public gateway interface testing method and device, computer equipment and storage medium
CN105183899A (en) Collection function sharing system and method
CN103685354A (en) Method and device for testing based on RMI protocol
CN106878361A (en) A kind of adjustment method of the terminal applies page, device and client
CN107220000A (en) Picture compression method and picture compression device
CN105703908A (en) Verification code input method and verification code input device
CN102185917A (en) Method and system for adaptation between server and mobile terminal, and server adaptation device
CN109450733A (en) A kind of network-termination device recognition methods and system based on machine learning
CN101867932A (en) Harmful information filtration system based on mobile Internet and method thereof
CN105897927A (en) Method for analyzing Google longitude and latitude
CN106658666B (en) Method and equipment for establishing wireless connection
CN108345606A (en) The acquisition methods and device of web page resources
WO2012144124A1 (en) Captured image processing system, captured image processing method, mobile terminal and information processing apparatus
CN104104556B (en) Carry out the method and system that recommendation information shows
CN105262876B (en) Call handling method, provide telephone number number information method and apparatus
CN107888451B (en) Method and device for testing Web server
CN109429262A (en) A kind of detection method of hot spot, the network equipment and computer readable storage medium
CN102156866A (en) Road sign recognition system and method
CN109816462A (en) A kind of recognition methods of invoice information and device
CN105578512A (en) Mobile terminal flow calibration method and apparatus thereof, and flow server
CN105787789A (en) Method and apparatus for displaying currency exchange rate
CN201365256Y (en) Network performance test equipment
CN103279754A (en) Business card cloud identification method and system

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
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.

GR01 Patent grant
GR01 Patent grant