0

Is it possible to get the location of a place using the latitude and longitude with the C Language? If so how?

mouli
  • 21
  • 2
  • 4
  • I think it can be done in at least one language. Because there are softwares which do that, and those softwares are written in at least one language. I think it can be done in C also but why would you want to do it in C ? You want C program to display a map and to locate a place in that map ? Something like google map ? – sps Feb 21 '15 at 06:08

2 Answers2

0

the pair of values [latitude, longitude] can define any place on the earth.

What exactly are you looking for?

user3629249
  • 16,402
  • 1
  • 16
  • 17
0

I believe you need to usually be more explicit of what you need. For example getting the coordinates in C can be as simple as passing two float variables for latitude and longitude. You only added a reference to google-maps in the tags so in the future please add that also to the text here so it is easier to see and not miss.

The google-maps API does not support C by default, but you can make HTTP calls to the static API. A really quick search revealed this. You can write a simple C program that sends the coordinates via HTTP to the Google Maps static API and returns your location.

Here is how to access the static google-maps HTTP API: Google Maps Static API

Here is an example of how to do HTTP requests from C: HTTP requests from C

Here is a page from google that can help you decide what API for maps to use depending on you needs: Google Maps API Picker

Community
  • 1
  • 1
weaz
  • 35
  • 8