Like Tree3Likes
  • 2 Post By Grumbler
  • 1 Post By Grumbler

Help with geocoding

Reply
  1. #1

    Join Date
    Oct 2012
    Posts
    151

    Help with geocoding

    Does someone have an easy way to automatically geocode about 400 japanese addresses as a one off? I need the long/lat for them to add to a kml file. Ideally I would want to use the google maps API but seems you now need an API key it seems and I don't particularly want to give them my credit card number for one (even if I'm below the free limit). I've tried some other services but they don't recognise the addresses. Here are a couple of examples:

    name, address
    Minshuku Shiho, ???????????14-144
    Kyukamura Rikuchu Miyako, ???????18-25-3
    Kimuraya, ?????2-26-6

    I could of course add them manually to google's my places and export the resulting kml, but it would take ages for 400 points.

    I'm helping somebody create a (free) hiking map.


  2. #2

    Join Date
    Jul 2012
    Posts
    1,334

    For 400 or so, if you don't mind, just write a program to input the address in the url and scrap the codes. Headless browsing. Probably some web services somewhere allow you to get the codes too.

    MandM! and lovehunter like this.

  3. #3

    Join Date
    Oct 2012
    Posts
    151

    Oh I see, smart! When I search for an address, the google maps URL becomes:

    http blabla !3m1!4b1!4m5!3m4!1s0x5f9b53430def6677:0x9b39d6f66c 1a5ed9!8m2!3d40.507397!4d141.6079895

    so I extract this part at the end. Is that what you are talking about?

    Time to brush up on python skills

    Thanks a lot!


  4. #4

    Join Date
    Jul 2012
    Posts
    1,334

    Yeah. For foreign address pay attention to encoding as I remember. I bet there are existing packages in python that does it already.

    MandM! likes this.