George480 / geolite

GeoLite2 for San Andreas Multiplayer
MIT License
8 stars 4 forks source link

State province #2

Closed Walter-Correa closed 4 years ago

Walter-Correa commented 4 years ago

Can I get the state province with this include?

George480 commented 4 years ago

These are the data the original database provides with an example:

  1. geoname_id: 579870
  2. locale_code: en
  3. continent_code: EU
  4. continent_name: Europe
  5. country_iso_code: RU
  6. country_name: Russia
  7. subdivision_1_iso_code: MOW
  8. subdivision_1_name: Moscow
  9. subdivision_2_iso_code:
  10. subdivision_2_name:
  11. city_name: Babushkin
  12. metro_code:
  13. time_zone: Europe/Moscow
  14. is_in_european_union: 0
George480 commented 4 years ago

I can try creating a separate database but the file size will be increased.

Walter-Correa commented 4 years ago

I can try creating a separate database but the file size will be increased.

This include is so great! I don't care about file size, if you can, create it and I will use this include forever!

EDIT: The function need to be GetPlayerProvince because GetPlayerState is a samp function!

George480 commented 4 years ago

I decided not to include parts of city database (timezone for example) but only the province you requested for in a separate. geoname_id differs for many of them with same name so I will have to create a unique one myself. I will try to get it working for the next update on 3rd June.

Walter-Correa commented 4 years ago

I decided not to include parts of city database (timezone for example) but only the province you requested for in a separate. geoname_id differs for many of them with same name so I will have to create a unique one myself. I will try to get it working for the next update on 3rd June.

Thank you so much!

George480 commented 4 years ago

Added. For any upcoming issues, feel free to open a new issue.

Walter-Correa commented 4 years ago

Added. For any upcoming issues, feel free to open a new issue.

Woooow Great. Thank you so much!