+ Reply to Thread
Results 1 to 1 of 1

XML web site return into Excel

  1. #1
    Forum Contributor
    Join Date
    04-03-2009
    Location
    Anchorage, Alaska, USA
    MS-Off Ver
    Office 365
    Posts
    126

    XML web site return into Excel

    Hi,

    I'm not sure what I'm doing at the moment. XML importing is all brand new to me, so I may be entirely off topic.

    Two questions:
    1. Am I doing this the right way?
    2. Why am I only getting partial results?

    https://geocode.maps.co/search?q=555...pi_key=PRIVATE API KEY&format=xml

    This is an address-to-lat/long request through OpenStreetMaps. I enter it into a browser address bar (with my private API key), and what's returned is an XML output, I guess. I'm not familiar with XML. In the link, it returns the lat/long of a Barnes & Noble bookstore in New York City - it's just an example. Take note that it returns a lot of data.

    XML Test.png

    Regarding question 1, I have a thousand of these to do. And I'm choosing OpenStreetMaps to convert addresses to lat/long because it actually returns lat/long in a format that I can keep on-hand, unlike Google Maps who do not share that data. So, with Google, each time I want to see the lat/long of an address, Google Maps gets the info again which will eventually become expensive whereas with OpenStreetMaps I only need to get the lat/long once and I can keep that info such as in the above screenshot.

    Ok, so I have a thousand of these to do. I'm trying to use the method presented at this site: https://geocode.maps.co/ where I URL-query an address every second, get the response into Excel automatically somehow and repeat. By the way, the above Barnes & Noble example is the example from that maps.co link.

    Am I doing this the right way one at a time with some sort of macro that gets XML into Excel somehow?

    And second question, when in Excel I choose Data > Get Data > From Other Sources > From Web, it only imports part of the XML data - like the first third of the data, and that's it. That's why I said to take note of the amount of data it returns. Most of it is not imported into Excel, including the lat/long info.

    Why?

    Thanks.
    Last edited by akedm; 07-20-2024 at 11:49 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need to return the worker site, based on a table with his working hours
    By Bruno Trafaria in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-22-2022, 09:31 PM
  2. VLOOKUP Formula to Update Map and Code based on Site name and site ID
    By gcolegcole42 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2022, 05:21 AM
  3. V Lookup formula to capture site code against a site name
    By gcolegcole42 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2022, 12:50 PM
  4. Replies: 2
    Last Post: 01-28-2022, 08:41 AM
  5. Return site based on client
    By kris01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2020, 12:16 PM
  6. Return latest date for Site
    By bongielondy in forum Excel General
    Replies: 4
    Last Post: 08-26-2014, 10:55 AM
  7. How do I code VBA to return information from a web site to an excel workbook
    By Richard Mogy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2005, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1