Re: [Dev] [Siddhi] "Over Query Limit" error in geocode(stream function) in Siddhi

2018-10-17 Thread Gangani Ariyarathne
I've obtained a billing account through Infra team. I've used the
constructor of the Geocoder which uses the client id and the client key.
But I'm not sure what the geocoder constructer expects for the client key.
I generated the client key by following the guide[1].  The changed code can
be found here [2].

[1]
https://developers.google.com/maps/documentation/geocoding/get-api-key#digital-signature-premium
[2]
https://github.com/GANGANI/Siddhi-geo/blob/master/src/main/java/org/wso2/extension/siddhi/execution/geo/GeocodeStreamFunctionProcessor.java

On Wed, Oct 17, 2018 at 9:40 PM Ramindu De Silva  wrote:

> [+] Anusha
>
> On Wed, Oct 17, 2018 at 9:38 PM Ramindu De Silva 
> wrote:
>
>> Hi Gagani,
>>
>> Did you go through the steps mentioned in created a billing account for
>> the cloud platform?
>> Could you please send the changed code? Did you do the code change to the
>> constructor of the Geocoder[2]?
>>
>> 1.
>> https://cloud.google.com/maps-platform/?__utma=102347093.1933502197.1539791031.1539792263.1539792263.1&__utmb=102347093.0.10.1539792263&__utmc=102347093&__utmx=-&__utmz=102347093.1539792263.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=132343310&_ga=2.9930102.252852657.1539791031-1933502197.1539791031#get-started
>> 2.
>> https://github.com/wso2-extensions/siddhi-execution-geo/blob/46408097bdf421e15765b339f7dba5d6fe5323b8/component/src/main/java/org/wso2/extension/siddhi/execution/geo/ReverseGeocodeStreamFunctionProcessor.java#L90
>>
>> Best regards,
>> Ramindu.
>>
>>
>> On Tue, Oct 16, 2018 at 1:40 PM Gangani Ariyarathne 
>> wrote:
>>
>>> Hi all,
>>>
>>> I've used geocode(stream function) of Geo-extension of Siddhi to find
>>> the latitude and longitude values by giving the location. That stream
>>> function doesn't work as expected and gives "OVER QUERY LIMIT" error after
>>> running my siddhi application a few times. I did a background search on
>>> this error and below are the results:
>>>
>>>- As I found Siddhi uses Google Map API for this and they use this
>>>without a developer's account.
>>>- This error normally happens due to exceeding the Google Maps
>>>Platform web services usage limits by sending too many requests per day,
>>>sending requests too fast, sending requests too fast for too long or
>>>otherwise abusing the web service [2]. But without these reasons also I'm
>>>receiving the same error message.
>>>- That Google's geocode provides another way to use that by
>>>configuring a paid developer's account for the Google Map API[3]. I tried
>>>that one also by fixing the siddhi function at the code level. But the
>>>error still remains the same.
>>>
>>> Below is the error that I encountered while executing the siddhi
>>> application which uses geocode function.
>>> [image: Screenshot from 2018-10-16 09-46-03.png]
>>>  I've posted a Git Issue[1] related to this error.
>>>
>>> Any help would be highly appreciated.
>>>
>>> [1] https://github.com/wso2-extensions/siddhi-execution-geo/issues/47
>>> [2]
>>> https://developers.google.com/maps/premium/previous-licenses/articles/usage-limits
>>> [3]
>>> https://developers.google.com/maps/documentation/maps-static/get-api-key
>>>
>>> Best regards,
>>> --
>>>
>>> *Gangani Chamika*
>>>
>>> *Intern - Software Engineering*
>>> *WSO2*
>>> 
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>> --
>> *Ramindu De Silva*
>> Senior Software Engineer
>> WSO2 Inc.: http://wso2.com
>> lean.enterprise.middleware
>>
>> email: ramin...@wso2.com 
>> mob: +94 719678895
>>
>
>
> --
> *Ramindu De Silva*
> Senior Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94 719678895
>


-- 

*Gangani Chamika*

*Intern - Software Engineering*
*WSO2*

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Siddhi] "Over Query Limit" error in geocode(stream function) in Siddhi

2018-10-17 Thread Ramindu De Silva
[+] Anusha

On Wed, Oct 17, 2018 at 9:38 PM Ramindu De Silva  wrote:

> Hi Gagani,
>
> Did you go through the steps mentioned in created a billing account for
> the cloud platform?
> Could you please send the changed code? Did you do the code change to the
> constructor of the Geocoder[2]?
>
> 1.
> https://cloud.google.com/maps-platform/?__utma=102347093.1933502197.1539791031.1539792263.1539792263.1&__utmb=102347093.0.10.1539792263&__utmc=102347093&__utmx=-&__utmz=102347093.1539792263.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=132343310&_ga=2.9930102.252852657.1539791031-1933502197.1539791031#get-started
> 2.
> https://github.com/wso2-extensions/siddhi-execution-geo/blob/46408097bdf421e15765b339f7dba5d6fe5323b8/component/src/main/java/org/wso2/extension/siddhi/execution/geo/ReverseGeocodeStreamFunctionProcessor.java#L90
>
> Best regards,
> Ramindu.
>
>
> On Tue, Oct 16, 2018 at 1:40 PM Gangani Ariyarathne 
> wrote:
>
>> Hi all,
>>
>> I've used geocode(stream function) of Geo-extension of Siddhi to find the
>> latitude and longitude values by giving the location. That stream function
>> doesn't work as expected and gives "OVER QUERY LIMIT" error after running
>> my siddhi application a few times. I did a background search on this error
>> and below are the results:
>>
>>- As I found Siddhi uses Google Map API for this and they use this
>>without a developer's account.
>>- This error normally happens due to exceeding the Google Maps
>>Platform web services usage limits by sending too many requests per day,
>>sending requests too fast, sending requests too fast for too long or
>>otherwise abusing the web service [2]. But without these reasons also I'm
>>receiving the same error message.
>>- That Google's geocode provides another way to use that by
>>configuring a paid developer's account for the Google Map API[3]. I tried
>>that one also by fixing the siddhi function at the code level. But the
>>error still remains the same.
>>
>> Below is the error that I encountered while executing the siddhi
>> application which uses geocode function.
>> [image: Screenshot from 2018-10-16 09-46-03.png]
>>  I've posted a Git Issue[1] related to this error.
>>
>> Any help would be highly appreciated.
>>
>> [1] https://github.com/wso2-extensions/siddhi-execution-geo/issues/47
>> [2]
>> https://developers.google.com/maps/premium/previous-licenses/articles/usage-limits
>> [3]
>> https://developers.google.com/maps/documentation/maps-static/get-api-key
>>
>> Best regards,
>> --
>>
>> *Gangani Chamika*
>>
>> *Intern - Software Engineering*
>> *WSO2*
>> 
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> *Ramindu De Silva*
> Senior Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94 719678895
>


-- 
*Ramindu De Silva*
Senior Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com 
mob: +94 719678895
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Siddhi] "Over Query Limit" error in geocode(stream function) in Siddhi

2018-10-17 Thread Ramindu De Silva
Hi Gagani,

Did you go through the steps mentioned in created a billing account for the
cloud platform?
Could you please send the changed code? Did you do the code change to the
constructor of the Geocoder[2]?

1.
https://cloud.google.com/maps-platform/?__utma=102347093.1933502197.1539791031.1539792263.1539792263.1&__utmb=102347093.0.10.1539792263&__utmc=102347093&__utmx=-&__utmz=102347093.1539792263.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&__utmv=-&__utmk=132343310&_ga=2.9930102.252852657.1539791031-1933502197.1539791031#get-started
2.
https://github.com/wso2-extensions/siddhi-execution-geo/blob/46408097bdf421e15765b339f7dba5d6fe5323b8/component/src/main/java/org/wso2/extension/siddhi/execution/geo/ReverseGeocodeStreamFunctionProcessor.java#L90

Best regards,
Ramindu.


On Tue, Oct 16, 2018 at 1:40 PM Gangani Ariyarathne 
wrote:

> Hi all,
>
> I've used geocode(stream function) of Geo-extension of Siddhi to find the
> latitude and longitude values by giving the location. That stream function
> doesn't work as expected and gives "OVER QUERY LIMIT" error after running
> my siddhi application a few times. I did a background search on this error
> and below are the results:
>
>- As I found Siddhi uses Google Map API for this and they use this
>without a developer's account.
>- This error normally happens due to exceeding the Google Maps
>Platform web services usage limits by sending too many requests per day,
>sending requests too fast, sending requests too fast for too long or
>otherwise abusing the web service [2]. But without these reasons also I'm
>receiving the same error message.
>- That Google's geocode provides another way to use that by
>configuring a paid developer's account for the Google Map API[3]. I tried
>that one also by fixing the siddhi function at the code level. But the
>error still remains the same.
>
> Below is the error that I encountered while executing the siddhi
> application which uses geocode function.
> [image: Screenshot from 2018-10-16 09-46-03.png]
>  I've posted a Git Issue[1] related to this error.
>
> Any help would be highly appreciated.
>
> [1] https://github.com/wso2-extensions/siddhi-execution-geo/issues/47
> [2]
> https://developers.google.com/maps/premium/previous-licenses/articles/usage-limits
> [3]
> https://developers.google.com/maps/documentation/maps-static/get-api-key
>
> Best regards,
> --
>
> *Gangani Chamika*
>
> *Intern - Software Engineering*
> *WSO2*
> 
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Ramindu De Silva*
Senior Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com 
mob: +94 719678895
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Siddhi] "Over Query Limit" error in geocode(stream function) in Siddhi

2018-10-16 Thread Gangani Ariyarathne
Hi all,

I've used geocode(stream function) of Geo-extension of Siddhi to find the
latitude and longitude values by giving the location. That stream function
doesn't work as expected and gives "OVER QUERY LIMIT" error after running
my siddhi application a few times. I did a background search on this error
and below are the results:

   - As I found Siddhi uses Google Map API for this and they use this
   without a developer's account.
   - This error normally happens due to exceeding the Google Maps Platform
   web services usage limits by sending too many requests per day, sending
   requests too fast, sending requests too fast for too long or otherwise
   abusing the web service [2]. But without these reasons also I'm receiving
   the same error message.
   - That Google's geocode provides another way to use that by configuring
   a paid developer's account for the Google Map API[3]. I tried that one also
   by fixing the siddhi function at the code level. But the error still
   remains the same.

Below is the error that I encountered while executing the siddhi
application which uses geocode function.
[image: Screenshot from 2018-10-16 09-46-03.png]
 I've posted a Git Issue[1] related to this error.

Any help would be highly appreciated.

[1] https://github.com/wso2-extensions/siddhi-execution-geo/issues/47
[2]
https://developers.google.com/maps/premium/previous-licenses/articles/usage-limits
[3] https://developers.google.com/maps/documentation/maps-static/get-api-key

Best regards,
-- 

*Gangani Chamika*

*Intern - Software Engineering*
*WSO2*

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev