Optimisation, organisation, rentability

Month: April 2017

[Follow-Up] map of more IPs

This is a follow-up to Where is this IP from? There I explained how to find where a IP came from. Now the question is, where did the IPs of today come from. The answer is a couple lines of code

  • select the IPs
  • define the object-structure als template
  • set the selection to json and assign to the MaPagenda-subform

Draw more than one IP onto a map

The map is just another kind of display for data:

locations of many IPs drawn on the map

This map shows to much information. I need to dissect, subselect, analyse and understand what I’m seeing here. The very first enhancements will lead to a map like this:

different marker-colors

Where is this IP from?

I was parsing log-files from a webserver. Main interest are which IPs surfed to the site and where did they come from. I used the service of FreeGeoIP for the information.

Row 15 shows the request to FreeGeoIP. I want the result as JSON-object, why I send an object for the response. Did the request succeed (status = 200), I do read the coordinates from the Response_O and use MaPagenda-keywords to fill the mapObject. Finally the mapObject is converted into a JSON-string and delivered to the subform-variable.

this is the code

And this is how the results look like: the response_O and the map.

MaPagenda shows where

Powered by WordPress & Theme by Anders Norén