Answers.Body: <p>Number of locations isn't in the metadata of a book file, it's the Kindle's calculation based off the book length. That thread mentioned give's some guesses about what the calculation is, but they still appear to be guesses. Theoretically, if you know the formula you can just create a simple program in Excel, enter the variables for each book, and get your answers.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-13T04:19:48.300Z
Answers.LastActivityDate: 2019-04-13T04:19:48.300Z
Answers.UserDisplayName: b_q
Body: <p>I've been googling around for some time but couldn't find absolutely any clue. I have an ebook file in mobi format and would like get the number of locations of this ebook. I want to do it programatically so I could open a bunch of files and get that information in a second.</p>
  
  <p>I was looking for some information about mobi file format, opened the file in a hex editor but I can't see anything useful. Has anyone done that?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-10T13:18:06.043Z
Comments.Text: I haven't tested anything myself, but this discussion might be helpful: https://www.mobileread.com/forums/showthread.php?t=159357
Comments.UserDisplayName: thinkulum
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-20T16:35:23.487Z
Comments.Text: WHat is "the number of locations of this ebook" the number of placenames it mentions?
Comments.UserDisplayName: mmmmmm
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-21T04:18:45.233Z
Comments.Text: No, it's an equivalent of number of pages of a traditional, paper book. It can be displayed at the bottom of a screen.
Comments.UserDisplayName: mate00
Tags: <kindle><mobi>
Title: How to get number of locations of a Kindle ebook programatically?
UserDisplayName: mate00
ThreadText: # How to get number of locations of a Kindle ebook programatically?
  
  (Asked by: username_0 on 2019-04-10)
  
  I've been googling around for some time but couldn't find absolutely any clue. I have an ebook file in mobi format and would like get the number of locations of this ebook. I want to do it programatically so I could open a bunch of files and get that information in a second.
  
  I was looking for some information about mobi file format, opened the file in a hex editor but I can't see anything useful. Has anyone done that?
  
  **Tags:** kindle, mobi
  
  > **Comments:**
  > **username_1**: I haven't tested anything myself, but this discussion might be helpful: https://www.mobileread.com/forums/showthread.php?t=159357  
  > **username_2**: WHat is "the number of locations of this ebook" the number of placenames it mentions?  
  > **username_0**: No, it's an equivalent of number of pages of a traditional, paper book. It can be displayed at the bottom of a screen.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2019-04-13. Score: 0
  
  Number of locations isn't in the metadata of a book file, it's the Kindle's calculation based off the book length. That thread mentioned give's some guesses about what the calculation is, but they still appear to be guesses. Theoretically, if you know the formula you can just create a simple program in Excel, enter the variables for each book, and get your answers.
  
  
  ---
  
  