필터 지우기
필터 지우기

Get GPS location from coordinates?

조회 수: 16 (최근 30일)
Jacqueline
Jacqueline 2013년 7월 29일
답변: Gholamreza Akbarizadeh 2019년 12월 11일
Is there anyway that I can get Matlab to tell me a location based on the input of GPS coordinates? So, for example, if I gave it the coordinates (42.3899, -89.0366), how can I get Matlab to tell me that that's Roscoe, Illinois?
  댓글 수: 4
Sakina Jafferi
Sakina Jafferi 2019년 1월 7일
can u provide me the code for GPS spoofing detection and mitigation
Walter Roberson
Walter Roberson 2019년 1월 7일
Sakina Jafferi: in theory anyone who is not banned by court order or government regulation from providing you with code, could provide the code you requested . In practice it is unlikely that anyone would bother. If the code is available through search engines then you can do the search since you are the person who needs the results. If the code is not available through search engine then providing the code would take significant research and coding and testing , and it is unlikely that anyone would volunteer to do all that work on behalf of someone who has given no indication that they have put in any effort themselves . The people who have the skills and experience to code that efficiently and who are frequent volunteers are likely to also have the experience to recognize the task as being typical of a topic assigned as a 4th year honours project .

댓글을 달려면 로그인하십시오.

채택된 답변

Cedric
Cedric 2013년 7월 29일
편집: Cedric 2013년 7월 29일
There are several solutions, depending the amount of data that you have to process, the time that you are willing to spend on coding, the time that you can afford spending on processing data, etc. You have two main options (there might be newer tools that I am not aware of though):
1. You can use e.g. a dataset of cities with their coordinates (Shapefile, Excel file, DBF file, etc), and just look for the minimal distance between a point and cities locations. This has the advantage that it is fast and local (no internet), but the disadvantage that you probably won't find a dataset with finer information than significant town/cities. You might also need to buy a license for using "high quality" datasets (I don't know if you could use ESRI datasets without a license for example). EDIT: here are a few relevant links:
  • ESRI Data and Maps (your university/company might have a site license for ArcGIS and DVDs for Data and Maps).
  • Boutell Zip/Lat/Lon Database: here.
  • Another "similar" here.
  • GeoNames, that could be placed in the next category of solutions, but their data is available here as text files.
2. You can use some online service/API and manage sending requests and processing responses (XML, etc). This has the disadvantage that it requires an internet connection and that sending/processing requests/responses can be time consuming, especially if you have a limited access to the API (number/rate of requests). It has the advantage though that you can get much more information, because APIs can give you access to very large databases (e.g. Google). Here are a few relevant links:
FEX (untested, because I usually build my own tools on this matter):
EDIT: to illustrate the issue with local datasets, here is the ESRI Data&Maps 9.3 dataset of 3557 cities. As you can see, if you have locations in e.g. Alaska, Montana, Nevada, chance is that the closest city will be quite far according to this dataset..
  댓글 수: 8
Jacqueline
Jacqueline 2013년 7월 30일
This works perfectly! Thanks so much, I really appreciate your help
Cedric
Cedric 2013년 7월 30일
You're welcome; let me know if you get stuck wrapping all that together. Parsing XML is not the easiest thing to do as it is based on tools which are not fully documented.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Gholamreza Akbarizadeh
Gholamreza Akbarizadeh 2019년 12월 11일
Hello all.
Using API keys is a restriction, and I think it is not an efficient way for an App. Is it another way to simply read the data form Google Map as a url, and get the location name specified by GPS coordinates?
Regrads.

카테고리

Help CenterFile Exchange에서 Mapping Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by