Location search

Other discussions about CSPro
Post Reply
MrTaco
Posts: 128
Joined: November 18th, 2014, 1:55 am

Location search

Post by MrTaco »

Hi Guys

I need a code on how to search for location or area via GPS, instead of longitude?

i know longitude and latitude already

Thanks
Thabiso
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Location search

Post by josh »

I think you will need to explain what you mean.
MrTaco
Posts: 128
Joined: November 18th, 2014, 1:55 am

Re: Location search

Post by MrTaco »

Let's say am doing a survey in Ohio and i want to locate the area am at, and i want my tablet to search the automatically...
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Location search

Post by josh »

You want CSPro to tell you the name of the town you are in?
MrTaco
Posts: 128
Joined: November 18th, 2014, 1:55 am

Re: Location search

Post by MrTaco »

the function that i can use to extract to location
Something like this: execsystem("gps:38.8977,-77.0365,Cape Town");
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Location search

Post by josh »

Sorry, I still don't understand what you are asking to do. Does execsystem with gps coordinates like you wrote above not work?
Gregory Martin
Posts: 1792
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Location search

Post by Gregory Martin »

There is no way to directly lookup the city / location where you are located using the GPS coordinates. There are web services that will do this for you, but you could not call them directly from within CSEntry.

If your survey were in a location and you knew all the city names for that area, you could use the gps(distance,...) function, with the cities and the coordinates of those cities stored in a lookup file, to figure out the closest city to your position.
Post Reply