import React, { Component } from 'react';

var apiKey = 'AIzaSyDO4ikGkFBkBem1VzMZuFYJil43jPcVz_8';

var api = {
  getPlaces(lng,lat){
    var url = `https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=${lat},${lng}&radius=500&types=points_of_interest&key=${apiKey}`;
    return fetch(url).then((response) => response.json()); // promise
  },
};

export default api;

@@ -226,16 +226,34 @@
 ,$%7Blng%7D&
+rankby=prominence&
 radius=5
@@ -263,16 +263,14 @@
 type
-s
 =point
-s
 _of_

Add ranking by prominence