Add to favorites


Recalculation of geographical coordinates. Degree -> degree/minute/second:

Latitude: ° Longitude: °


Recalculation of geographical coordinates. Degree/minute/second -> degree:

Latitude: °'" Longitude: °'"




Determination of the height above sea level in the coordinates:

Latitude: ° Longitude: °




Search Form geographical coordinates of the object based on the mapping services of Google or Yandex.
Examples:Paris
Columbia, Missouri, USA
Unter den Linden 2, Berlin, Deutschland
55.7522,37.6156 (latitude,longitude)

use the service: Google Yandex
Recent searches:


Determination of geographical coordinates of the object on the map.
GoogleYandex


Link to this place:



Geo IP
Host / IP: My IP

Full version

Loading.




API

If you want to use geographical coordinates search on your site, you can use the service on a commercial basis LatLong.ru. The annual fee or 5 000 search queries is $25.
To do this you need to connect to your site script LatLong.ru one of two ways:

1. Using PHP's
You must pass a variable data at http://www.latlong.ru/latlongapi.php?ser={ser}&q={q}
It can be done, for example, using the library Curl.

$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, "http://www.latlong.ru/latlongapi.php?ser={ser}&q={q}");
curl_setopt ($ch, CURLOPT_HEADER, false);
curl_setopt ($ch, CURLOPT_REFERER, getenv("SERVER_NAME"));

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec ($ch);
curl_close ($ch);

As a result of this script in the variable $data will contain data in the format of json.
{"results":[{"lat" : "55.6088333", "long" : "38.8553333", "alt" : "126.8087997"}],"status" : "ОК", "date" : "2015-01-01", "hit" : "99999"}

2. Using the tools of javascript
Need to connect to your site script http://www.latlong.ru/latlongapi.js?ser={ser}&q={q}
<script src="http://www.latlong.ru/latlongapi.js?ser={ser}&q={q}"></script>

As a result, your script will be added javascript variable latlong with the data in the format of json.
latlong = '{"results":[{"lat" : "55.6088333", "long" : "38.8553333", "alt" : "126.8087997"}],"status" : "ОК", "date" : "2015-01-01", "hit" : "99999"}';

Customization service LatLong.ru.
ser={ser} - mandatory parameter. Instead {ser} insert name of the search engine. Possible values​​: yandex or google;
q={q} - mandatory parameter. Instead {q} insert your search request;
Encoding - utf-8
When first using the geographic service LatLong.ru are binding IP addresses to the site where the service was connected. This is done for security and protection against misuse of geographical service.

Explanation fields server response:
results - Array with results of geographical coordinates.
status - Status of the search query. OK - no errors.
date - End date of service.
hit - Remaining number of search queries.

Possible errors:
Access Denied from IP
With this IP address does not have access. Ability to change IP address of your website. Contact the administrator.
Access Denied from Host
With this host does not have access. Outdated Service or number of searches exceeded the norm. Contact the administrator.
server returned an empty result!
Search server returned an empty result.
In the search query contains illegal characters!
In the search query contains invalid characters.
Empty query!
Empty query.

On connection and use geographical LatLong.ru service, please contact by e-mail info@grishinmv.ru .







VkontakteFacebook ()
top