Re: [Dev] Implementing Geographical based Analytics in API Manager

2016-03-06 Thread Tharindu Dharmarathna
Hi Akila, This thread is not relevant to an API for Geo location from IP. This thread was started to get the most suitable way of getting location with respect to ip For show the Geographical representation of how APIs in API manager access from different cities in different countries. Hope you w

Re: [Dev] Implementing Geographical based Analytics in API Manager

2016-02-21 Thread Joseph Fonseka
Please find the inline comments. On Mon, Feb 22, 2016 at 11:46 AM, Tharindu Dharmarathna wrote: 1. When events publish from APIM to DAS we can extract the location and > send it through the stream > This is quite possible but you need to cache resolved locations to reduce the number of service

Re: [Dev] Implementing Geographical based Analytics in API Manager

2016-02-21 Thread Tharindu Dharmarathna
@Joe, We can done this from 3 ways. 1. When events publish from APIM to DAS we can extract the location and send it through the stream 2. When we running the spark script on top of stream data we can write a new function to extract this from DAS and do the sumarization As necessary. This way wil

Re: [Dev] Implementing Geographical based Analytics in API Manager

2016-02-21 Thread Mohanadarshan Vivekanandalingam
AFAIR, there is an external third party API used to find the location of IP address in fraud detection tool-kit.. But I think, it has many restrictions.. I agree with Jo where some customers might want to use paid services for that, we need to implement the feature in such a way.. Yes, going with

Re: [Dev] Implementing Geographical based Analytics in API Manager

2016-02-21 Thread Joseph Fonseka
Hi Tharindu They both use the same source of data from MaxMind. And the database is licensed under "CC Attribution-ShareAlike" thus we should attribute them if we are using it. see [1] On an on premise deployment customers might want to use a paid service to get the location so I think we should

Re: [Dev] Implementing Geographical based Analytics in API Manager

2016-02-21 Thread Tharindu Dharmarathna
HI Nuwan, There are two lightweight databases we can use as I found from [1] and [2] and those are open source projects. [1] - https://freegeoip.net/ [2] - http://gis.stackexchange.com/questions/88/how-can-i-determine-the-location-of-a-visitor-to-my-website Thanks Tharindu On Sun, Feb 21, 2016

Re: [Dev] Implementing Geographical based Analytics in API Manager

2016-02-21 Thread Nirmal Fernando
@Seshika any thoughts? On Sun, Feb 21, 2016 at 8:19 PM, Nuwan Dias wrote: > I have doubts on using an HTTP API to get these details because, > > 1. It will be costly in terms of performance to call these APIs (and they > might not be free as well). > 2. We have no control nor guarantee on their

Re: [Dev] Implementing Geographical based Analytics in API Manager

2016-02-21 Thread Nuwan Dias
I have doubts on using an HTTP API to get these details because, 1. It will be costly in terms of performance to call these APIs (and they might not be free as well). 2. We have no control nor guarantee on their availability (they can shutdown whenever they want). 3. They will only work if the sta

[Dev] Implementing Geographical based Analytics in API Manager

2016-02-20 Thread Tharindu Dharmarathna
Hi All, We are going to implement $Subject on latest release . I want to know is there any best way to extract Geographical location from IP . And here are my findings of the ways of do. [1] - http://www.geoplugin.com Thi will retrive all the data according to the location as json [2] - http://w