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 will get clear idea on this. What we are going to implement.
Thanks tharindu On Sat, Mar 5, 2016 at 11:21 AM, Akila Wicky <asak...@gmail.com> wrote: > Hi All, > > I have some questions with this project. I can't understand how this > Geographical based analytics different from the google maps API. > > So how this API is accessible to the end users? i mean will they have a > Mobile Application or Web interface. > > Other thing is about the accuracy.As i know in positioning their is about > 3m error in the Geo location.How we can overcome this problem. > > > On Mon, Feb 22, 2016 at 12:28 PM, Joseph Fonseka <jos...@wso2.com> wrote: > >> Please find the inline comments. >> >> On Mon, Feb 22, 2016 at 11:46 AM, Tharindu Dharmarathna < >> tharin...@wso2.com> 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 calls to resolve locations. Usually you only need to >> resolve the location when a new client connects. >> >> >>> >>> 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 will reduce the # of checks to get Location. >>> >> >> This seems to be the most appropriate place to do the resolution IMO. >> >> >>> 3. Running from the Graph side. >>> >> >> This is a no go since we cannot aggregate data when rendering on the >> client and even if we can will be costly. >> >> Also we might want to look for what levels of location data available >> (Ex. country, state, latlong) for ip address if possible we should support >> graphing at any level. >> >> Regards >> Jo >> >> >> >> >> I think from 2nd way is the best way to do this. >>> >>> >>> @ Mohan, >>> >>> Shall we make a Interface which people can plug any type of >>> implementation which can extract the location . As default we can use >>> MAXMIND database. >>> >>> Thanks >>> Tharindu >>> >>> On Sun, Feb 21, 2016 at 10:53 PM, Mohanadarshan Vivekanandalingam < >>> mo...@wso2.com> wrote: >>> >>>> 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 >>>> a free database by default would be good or can't we host a service in our >>>> end and use it in the pack ? >>>> >>>> Thanks, >>>> Mohan >>>> >>>> >>>> On Sun, Feb 21, 2016 at 10:34 PM, Joseph Fonseka <jos...@wso2.com> >>>> wrote: >>>> >>>>> 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 support that. And to ship with >>>>> the >>>>> product like suggested we can use a free database. >>>>> >>>>> Also when will the location be resolved ? will it be a background task >>>>> or are you planing to do it real-time ? >>>>> >>>>> Regards >>>>> Jo >>>>> >>>>> >>>>> >>>>> [1] http://dev.maxmind.com/geoip/geoip2/geolite2/ >>>>> >>>>> On Sun, Feb 21, 2016 at 8:27 PM, Tharindu Dharmarathna < >>>>> tharin...@wso2.com> wrote: >>>>> >>>>>> 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 at 8:23 PM, Nirmal Fernando <nir...@wso2.com> >>>>>> wrote: >>>>>> >>>>>>> @Seshika any thoughts? >>>>>>> >>>>>>> On Sun, Feb 21, 2016 at 8:19 PM, Nuwan Dias <nuw...@wso2.com> 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 availability (they can >>>>>>>> shutdown whenever they want). >>>>>>>> 3. They will only work if the stats visualizing agent >>>>>>>> (store/publisher) or DAS has access to internet. >>>>>>>> >>>>>>>> Can we look for a light-weight open-source database which has >>>>>>>> region information based on IP ranges? >>>>>>>> >>>>>>>> Thanks, >>>>>>>> NuwanD. >>>>>>>> >>>>>>>> On Sun, Feb 21, 2016 at 10:29 AM, Tharindu Dharmarathna < >>>>>>>> tharin...@wso2.com> wrote: >>>>>>>> >>>>>>>>> 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://www.telize.com/ >>>>>>>>> >>>>>>>>> This is another REST API which can used to extract location. >>>>>>>>> >>>>>>>>> *Thanks* >>>>>>>>> *Tharindu Dharmarathna* >>>>>>>>> Associate Software Engineer >>>>>>>>> WSO2 Inc.; http://wso2.com >>>>>>>>> lean.enterprise.middleware >>>>>>>>> >>>>>>>>> mobile: *+94779109091 <%2B94779109091>* >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Nuwan Dias >>>>>>>> >>>>>>>> Technical Lead - WSO2, Inc. http://wso2.com >>>>>>>> email : nuw...@wso2.com >>>>>>>> Phone : +94 777 775 729 >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Dev mailing list >>>>>>>> Dev@wso2.org >>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> Thanks & regards, >>>>>>> Nirmal >>>>>>> >>>>>>> Team Lead - WSO2 Machine Learner >>>>>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc. >>>>>>> Mobile: +94715779733 >>>>>>> Blog: http://nirmalfdo.blogspot.com/ >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> *Tharindu Dharmarathna*Associate Software Engineer >>>>>> WSO2 Inc.; http://wso2.com >>>>>> lean.enterprise.middleware >>>>>> >>>>>> mobile: *+94779109091 <%2B94779109091>* >>>>>> >>>>>> _______________________________________________ >>>>>> Dev mailing list >>>>>> Dev@wso2.org >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> -- >>>>> *Joseph Fonseka* >>>>> WSO2 Inc.; http://wso2.com >>>>> lean.enterprise.middleware >>>>> >>>>> mobile: +94 772 512 430 >>>>> skype: jpfonseka >>>>> >>>>> * <http://lk.linkedin.com/in/rumeshbandara>* >>>>> >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> *V. Mohanadarshan* >>>> *Senior Software Engineer,* >>>> *Data Technologies Team,* >>>> *WSO2, Inc. http://wso2.com <http://wso2.com> * >>>> *lean.enterprise.middleware.* >>>> >>>> email: mo...@wso2.com >>>> phone:(+94) 771117673 >>>> >>> >>> >>> >>> -- >>> >>> *Tharindu Dharmarathna*Associate Software Engineer >>> WSO2 Inc.; http://wso2.com >>> lean.enterprise.middleware >>> >>> mobile: *+94779109091 <%2B94779109091>* >>> >> >> >> >> -- >> >> -- >> *Joseph Fonseka* >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> mobile: +94 772 512 430 >> skype: jpfonseka >> >> * <http://lk.linkedin.com/in/rumeshbandara>* >> >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > > *Thanks and Regards,*Akila Wickramarachchi > > Undergraduate at University Of Peradeniya > <https://www.linkedin.com/profile/view?id=AAMAABg_m_sBqt7aECwMPaTfYpf-olFytcSylC4&trk=hp-identity-headline> > Email : asak...@gmail.com > Linkedin : Akila Wickramarachchi > <https://www.linkedin.com/profile/view?id=AAMAABg_m_sBqt7aECwMPaTfYpf-olFytcSylC4&trk=hp-identity-name> > Blog : http://akilacollection.blogspot.com/ > Github : https://github.com/akilawickey > -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev