Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function getEndpoint(): string |
||
17 | { |
||
18 | // Retrieve a city's zip code by inputting it's place ID |
||
19 | $query = $this->place_id ?? $this->query; |
||
20 | |||
21 | $endpoint = 'https://maps.googleapis.com/maps/api/place/details/json?placeid=' . $query; |
||
22 | $endpoint .= '&language=en_EN'; |
||
23 | $endpoint .= '®ion=us'; |
||
24 | $endpoint .= '&fields=address_component'; |
||
25 | $endpoint .= '&key=' . env('GOOGLE_API_KEY'); |
||
26 | return $endpoint; |
||
27 | } |
||
45 |