GooglePlaces

FREE
By dimas
Updated 5 months ago
Mapping
7.7/10
Popularity Score
229ms
Latency
100%
Success Rate

GooglePlaces API Documentation

Add location awareness for more contextual results.

View API Details
POSTaddPlace
POSTgetImageURL
POSTgetNearbyPlaces
POSTgetNearbyPlacesByName
POSTgetNearbyPlacesByType
POSTgetNearbyPlacesRadar
POSTgetPlaceDetails
POSTsearchPlacesByText
POSTaddPlace

Add a new place to Google Maps. The new place is available immediately in Nearby Searches initiated by your application. The new place also enters a moderation queue to be considered for Google Maps. A newly-added place does not appear in Text Search or Radar Search results, or to other applications, until it has been approved by the moderation process.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
languageSELECT
REQUIREDThe language in which the title is transferred to the place.
nameSTRING
REQUIREDThe full name of the place. No more than 255 characters.
typesSELECT
REQUIREDThe category to which this place.
accuracyNUMBER
REQUIREDThe accuracy of the location of the signal (in meters), which is based on the request.
apiKeyCREDENTIALS
REQUIREDThe api key obtained from Google Developers Console.
coordinateMAP
REQUIREDThe latitude nad longitude of place coma separated.
addressSTRING
REQUIREDIndicate the values in pixels for the maximum width of the returned image.
Optional Parameters
phoneNumberSTRING
OPTIONALThe phone number of the place.
websiteSTRING
OPTIONALThe URL-address of the official web site of the place, such as home organization page.
Code Snippet
unirest.post("https://GooglePlacesdimasV1.p.rapidapi.com/addPlace")
.header("X-RapidAPI-Host", "GooglePlacesdimasV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://GooglePlacesdimasV1.p.rapidapi.com/addPlace
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://GooglePlacesdimasV1.p.rapidapi.com/addPlace")
.header("X-RapidAPI-Host", "GooglePlacesdimasV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication