My Business
4.3K members online now
4.3K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

what is the URL like for this value mapsUrl?

[ Edited ]
Top Contributor
# 1
Top Contributor

With 3.1 there is the ability to retrieve

mapsUrl
string

A link to the location on Maps. 

https://developers.google.com/my-business/reference/rest/v3/accounts.locations#Metadata

 

What is the stucture of that URL? What does it look like?

 

2 Expert replyverified_user

Re: what is the URL like for this value mapsUrl?

Google Employee
# 2
Google Employee

Hi @Mike Blumenthal,

 

In the Location object, please note that the mapsUrl field of the Metadata object that provides a link to the location on Maps is not editable by user.

 

Here is a sample response body that includes the mapsUrl field for the GET request to get the specified location via v3.1 of the Google My Business API:

{
 "languageCode": "en",
 "storeCode": "GMB-TEST",
 "openInfo": {
   "status": "OPEN"
 },
 "name": "accounts/account_name/locations/locationId",
 "locationKey": {
   "plusPageId": {plusPageId},
   "placeId": {placeId}
 },
 "latlng": {
   "latitude": 37.554727,
   "longitude": -122.265107
 },
 "locationName": "Family Day Care",
 "photos": {
   "interiorPhotoUrls": [
     {interiorPhotoUrl},
     {interiorPhotoUrl},
     {interiorPhotoUrl}
   ],
   "logoPhotoUrl": {logoPhotoUrl},
   "profilePhotoUrl": {profilePhotoUrl},
   "preferredPhoto": "PROFILE",
   "coverPhotoUrl": {coverPhotoUrl}
 },
 "primaryPhone": "(415) 696-9300",
 "address": {
   "postalCode": "94404",
   "country": "US",
   "administrativeArea": "California",
   "addressLines": [
     "905 Shell Boulevard #101"
   ],
   "locality": "Foster City"
 },
 "websiteUrl": "dolphin.com",
 "metadata": {
   "mapsUrl": "http://maps.google.com/maps/place?cid=12604156104899571504"
 },
 "primaryCategory": {
   "name": "Day Care Center",
   "categoryId": "gcid:day_care_center"
 },
 "locationState": {
   "canUpdate": true,
   "isVerified": true,
   "canDelete": true,
   "isPublished": true
 }
}

 

Thanks,

Terry