# WebMapLocation API

**URL:** <https://forum.xojo.com/t/webmaplocation-api/26595>\
**Category:** Web\
**Created:** [September 11, 2015, 9:40pm UTC](https://forum.xojo.com/t/webmaplocation-api/26595 "2015-09-11T21:40:48Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wayne\_Golding](https://forum.xojo.com/user_avatar/forum.xojo.com/wayne_golding/32/165_2.png) [@Wayne\_Golding](https://forum.xojo.com/u/Wayne_Golding)\
**Post date:** [September 11, 2015, 9:40pm UTC](https://forum.xojo.com/t/webmaplocation-api/26595/1 "2015-09-11T21:40:48Z")

</div>

I’m getting a NOE when adding an address to a webmaplocation object. The message is “Status: OVER\_QUERY\_LIMIT”. So I tried adding my google api key to the location first. Now I’m getting “Status: REQUEST\_DENIED” which I’m assuming means I haven’t enabled the correct api for the key supplied. Which API should I enable?

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [September 12, 2015, 5:01am UTC](https://forum.xojo.com/t/webmaplocation-api/26595/2 "2015-09-12T05:01:08Z")

</div>

File a bug report about that and we’ll look into it. It may be that Google has changed something on us.

---

<div class="post-metadata">

**Author:** ![Wayne\_Golding](https://forum.xojo.com/user_avatar/forum.xojo.com/wayne_golding/32/165_2.png) [@Wayne\_Golding](https://forum.xojo.com/u/Wayne_Golding)\
**Post date:** [September 12, 2015, 10:44pm UTC](https://forum.xojo.com/t/webmaplocation-api/26595/3 "2015-09-12T22:44:10Z")

</div>

Done \<[https://xojo.com/issue/40799](https://xojo.com/issue/40799)\>

---

<div class="post-metadata">

**Author:** ![Wayne\_Golding](https://forum.xojo.com/user_avatar/forum.xojo.com/wayne_golding/32/165_2.png) [@Wayne\_Golding](https://forum.xojo.com/u/Wayne_Golding)\
**Post date:** [September 13, 2015, 3:09am UTC](https://forum.xojo.com/t/webmaplocation-api/26595/4 "2015-09-13T03:09:23Z")

</div>

@Greg O’Lone does the api get called if the webmaplocation object is created with the latitude/longitude constructor?

I’ve created my own geocode class to convert the address to location using my api key, but still need to use webmaplocations to place the objects on the map.

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [September 13, 2015, 12:47pm UTC](https://forum.xojo.com/t/webmaplocation-api/26595/5 "2015-09-13T12:47:40Z")

</div>

[quote=213114:@Wayne Golding]@Greg O’Lone does the api get called if the webmaplocation object is created with the latitude/longitude constructor?

I’ve created my own geocode class to convert the address to location using my api key, but still need to use webmaplocations to place the objects on the map.[/quote]  
The only time Google is contacted is if you create a WebMapLocation directly with an address:

```auto
Dim loc as New WebMapLocation("123 Main Street, Jacksonville, FL 12345")
```

or if you decide to change the address:

```auto
loc.Address = "234 Main Street, Austin, TX 12345"
```

When you were using our WebMapLocations, did you try creating one this way?

`Dim loc as New WebMapLocation
loc.APIKey = "YourGoogleAPIKey"
loc.Address = "234 Main Street, Austin, TX 12345"`

---

<div class="post-metadata">

**Author:** ![Wayne\_Golding](https://forum.xojo.com/user_avatar/forum.xojo.com/wayne_golding/32/165_2.png) [@Wayne\_Golding](https://forum.xojo.com/u/Wayne_Golding)\
**Post date:** [September 13, 2015, 7:15pm UTC](https://forum.xojo.com/t/webmaplocation-api/26595/6 "2015-09-13T19:15:26Z")

</div>

[quote=213170:@Greg O’Lone]When you were using our WebMapLocations, did you try creating one this way?

Dim loc as New WebMapLocation  
loc.APIKey = “YourGoogleAPIKey”  
loc.Address = “234 Main Street, Austin, TX 12345”[/quote]

That’s exactly how I was doing it and getting request denied. At least in the short term I can roll my own geocoding module & pass the location details to the webmaplocation object to display on the site.

Thanks for your assistance Greg.

---

<div class="post-metadata">

**Author:** ![laurent\_MIQUEL](https://forum.xojo.com/letter_avatar_proxy/v4/letter/l/b5e925/32.png) [@laurent\_MIQUEL](https://forum.xojo.com/u/laurent_MIQUEL)\
**Post date:** [February 22, 2016, 9:02am UTC](https://forum.xojo.com/t/webmaplocation-api/26595/7 "2016-02-22T09:02:46Z")

</div>

Hello,  
What is the type of APIKEY we need for use in WebMapLocation.APIKEY ?  
Thanks

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [February 22, 2016, 1:20pm UTC](https://forum.xojo.com/t/webmaplocation-api/26595/8 "2016-02-22T13:20:28Z")

</div>

It’s a string.

---

<div class="post-metadata">

**Author:** ![laurent\_MIQUEL](https://forum.xojo.com/letter_avatar_proxy/v4/letter/l/b5e925/32.png) [@laurent\_MIQUEL](https://forum.xojo.com/u/laurent_MIQUEL)\
**Post date:** [February 23, 2016, 8:13am UTC](https://forum.xojo.com/t/webmaplocation-api/26595/9 "2016-02-23T08:13:38Z")

</div>

Hello Greg.  
My question was what options I have to take for the generation of the key?

Thanks

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [February 23, 2016, 1:50pm UTC](https://forum.xojo.com/t/webmaplocation-api/26595/10 "2016-02-23T13:50:43Z")

</div>

It’s a Google Maps Embed API key.

---

<div class="post-metadata">

**Author:** ![Underwriters\_Technologies](https://forum.xojo.com/letter_avatar_proxy/v4/letter/u/ed655f/32.png) [@Underwriters\_Technologies](https://forum.xojo.com/u/Underwriters_Technologies)\
**Post date:** [February 23, 2016, 3:27pm UTC](https://forum.xojo.com/t/webmaplocation-api/26595/11 "2016-02-23T15:27:12Z")

</div>

[https://developers.google.com/maps/documentation/javascript/get-api-key](https://developers.google.com/maps/documentation/javascript/get-api-key)

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:56pm UTC](https://forum.xojo.com/t/webmaplocation-api/26595/12 "2020-10-29T17:56:52Z")

</div>


