Close the details
Close the details
Close the details

About frotspot

frotspot is an open map showing free hotspots all around the world

You can add your own frotspots or search for frotspots wherever you want.

If you have some feedback or question you can contact us also via our Google+ Page



Imprint

everygain UG
Postfach 185205
D-45202 Essen

E-Mail: info@everygain.com
Telefon: 0049 157 50375472
Internet: http://www.everygain.com/

Geschäftsführerin: Tina Ostermann
Handelsregister: Amtsgericht Essen, HRB 25467
Steuernummer: 112/5781/2057

Disclaimer:

everygain.com übernimmt keinerlei Haftung für den Inhalt der verlinkten Webseiten. Für den Inhalt der verlinkten Seiten sind ausschließlich deren Betreiber verantwortlich.

Sollte auf everygain.com ein geltendes Markenrecht oder Copyright verletzt werden, kontaktieren Sie uns bitte unter der oben genannten E-Mail-Adresse.

Close the details
With the API of frotspot.com you have free read- and write-access to all frotspots in the world.
Please enter your email to get your private key for the API:

Overview

With the API of frotspot.com you have access to read all frotspots from the database and to add as many frotspots as you want.

There are two parameters you need to use in every request:

  • key
    • This is the key, which you can get at the top of this page
  • action
    • search
    • insert

Search frotspots

You can search for frotspots by using lat/lng-coordinates (and you will get the 10 frotspots next to your location) or by using a keyword

Search by lat/lng

For the search by lat/lng-coordinates you have to use the following parameters:

  • method
    • "latlng"
  • lat
  • lng

Search by keyword

For the search by lat/lng-coordinates you have to use the following parameters:

  • method
    • "keyword"
  • search
    • The keyword for which you are searching hotspots.

Insert a frotspot

You can insert frotspots by using the lat/lng-coordinates.

You need to use the lat/lng-coordinates, a title and a type:

  • lat
  • lng
  • title
  • type
    • 1 (=Café)
    • 2 (=Restaurant)
    • 3 (=Hotel)
    • 4 (=Public)
  • optional
    • description
    • creator_name
    • creator_email

Examples in php

Search for frotspots by lat/lng

Request:

  $api_url = "http://api.frotspot.com/";
  $apiData = array();
  $apiData["key"] = "YOUR-KEY";
  $apiData["action"] = "search";
  $apiData["method"] = "latlng";
  $apiData["lat"] = "50.966";
  $apiData["lng"] = "6.964";

  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $api_url);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $apiData);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  curl_setopt($ch, CURLOPT_TIMEOUT, 15);

  $myResponse = trim(curl_exec($ch));
  

Result:

  [
   {"id":"42","title":"Woyton","description":"super","distance":"3.38138015558737"
,"lat":"50.93688583374023","lng":"6.95006179809570","num_comments":"3","url":
"http://www.frotspot.com/f/42/"},
   {"id":"41","title":"Joe Champs","description":"American restaurant.","distance":
"3.71495092668259","lat":"50.93668746948242","lng":"6.93855476379395","num_comments":
"5","url":"http://www.frotspot.com/f/41/"}
  ]
  

Search for frotspots by keyword

Request:

  $api_url = "http://api.frotspot.com/";
  $apiData = array();
  $apiData["key"] = "YOUR-KEY";
  $apiData["action"] = "search";
  $apiData["method"] = "keyword";
  $apiData["keyword"] = "woyton";

  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $api_url);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $apiData);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  curl_setopt($ch, CURLOPT_TIMEOUT, 15);

  $myResponse = trim(curl_exec($ch));
  

Result:

  [
   {"id":"42","title":"Woyton","description":"super","distance":"3.38138015558737",
"lat":"50.93688583374023","lng":"6.95006179809570","num_comments":"3","url":
"http://www.frotspot.com/f/42/"},
  ]
  

Insert a frotspot

Request:

  $api_url = "http://api.frotspot.com/";
  $apiData = array();
  $apiData["key"] = "YOUR-KEY";
  $apiData["action"] = "insert";
  $apiData["lat"] = "51.468";
  $apiData["lng"] = "7.011";
  $apiData["title"] = "API-Test";
  $apiData["type"] = "1";
  $apiData["description"] = "This is a test of the API";
  $apiData["creator_name"] = "api";
  $apiData["creator_email"] = "api@frotspot.com";

  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $api_url);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $apiData);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  curl_setopt($ch, CURLOPT_TIMEOUT, 15);

  $myResponse = trim(curl_exec($ch));
  

Result:

  [
   {"status":"success","frotspot_id":55}
  ]
  
Close the details
In the frotspot toolbox you can find some tools and examples on using Google Maps.
Close the details
recent frotspots
Close the details